Skip to content

Commit 4ed2dc8

Browse files
committed
Rename "javax.annotation.*" to "jakarta.annotation.*"
1 parent fabe5e7 commit 4ed2dc8

28 files changed

+163
-39
lines changed

build.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
<!-- ========= Pattern sets used to control content of JAR files ========= -->
328328
<!-- Pattern sets for jar files in standard distributions -->
329329
<patternset id="files.annotations-api">
330-
<include name="javax/annotation/**" />
330+
<include name="jakarta/annotation/**" />
331331
</patternset>
332332

333333
<patternset id="files.servlet-api">
@@ -627,6 +627,12 @@
627627
<exclude name="build.properties" />
628628
</fileset>
629629
</checkstyle>
630+
<!-- jakarta package checks -->
631+
<checkstyle config="res/checkstyle/jakarta-checkstyle.xml">
632+
<fileset dir="java/jakarta" >
633+
<include name="**/*.java"/>
634+
</fileset>
635+
</checkstyle>
630636
<!-- javax package checks -->
631637
<checkstyle config="res/checkstyle/javax-checkstyle.xml">
632638
<fileset dir="java/javax" >
@@ -1879,7 +1885,7 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
18791885

18801886
<target name="javadoc" depends="dist-source"
18811887
description="Create the Tomcat javadoc" >
1882-
<javadoc packagenames="javax.annotation.*"
1888+
<javadoc packagenames="jakarta.annotation.*"
18831889
sourcepath="${tomcat.dist}/src/java"
18841890
destdir="${tomcat.dist}/webapps/docs/annotationapi"
18851891
version="true"

java/javax/annotation/Generated.java renamed to java/jakarta/annotation/Generated.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation;
17+
package jakarta.annotation;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;

java/javax/annotation/ManagedBean.java renamed to java/jakarta/annotation/ManagedBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation;
17+
package jakarta.annotation;
1818

1919
import java.lang.annotation.ElementType;
2020
import java.lang.annotation.Retention;

java/javax/annotation/PostConstruct.java renamed to java/jakarta/annotation/PostConstruct.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation;
17+
package jakarta.annotation;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;

java/javax/annotation/PreDestroy.java renamed to java/jakarta/annotation/PreDestroy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation;
17+
package jakarta.annotation;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;

java/javax/annotation/Priority.java renamed to java/jakarta/annotation/Priority.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation;
17+
package jakarta.annotation;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;

java/javax/annotation/Resource.java renamed to java/jakarta/annotation/Resource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation;
17+
package jakarta.annotation;
1818

1919
import java.lang.annotation.ElementType;
2020
import java.lang.annotation.Retention;

java/javax/annotation/Resources.java renamed to java/jakarta/annotation/Resources.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation;
17+
package jakarta.annotation;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;

java/javax/annotation/security/DeclareRoles.java renamed to java/jakarta/annotation/security/DeclareRoles.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation.security;
17+
package jakarta.annotation.security;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;

java/javax/annotation/security/DenyAll.java renamed to java/jakarta/annotation/security/DenyAll.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package javax.annotation.security;
17+
package jakarta.annotation.security;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;

0 commit comments

Comments
 (0)