Skip to content

Commit bbfd4d5

Browse files
committed
consistently link to latest LTS JLS version where possible
To keep the required adjustments of JLS links in Javadoc low, we decided to always link to the latest LTS JLS version where possible, instead of the latest available JLS version. If we need a concept only present in a newer JLS it is okay to simply link to the current JLS. When a new JLS is then released we will update all the links in one shot, including the ones that temporarily had to link to a newer version. Signed-off-by: Peter Gafert <[email protected]>
1 parent e53525f commit bbfd4d5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

archunit/src/main/java/com/tngtech/archunit/core/domain/AnnotationPropertiesFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public String apply(String input) {
134134

135135
/**
136136
* Configures that the identifier is omitted if the annotation is a
137-
* <a href="https://docs.oracle.com/javase/specs/jls/se14/html/jls-9.html#jls-9.7.3">single-element annotation</a>
137+
* <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-9.html#jls-9.7.3">single-element annotation</a>
138138
* and the identifier of the only element is "value".
139139
*
140140
* <ul><li>Example with this configuration: {@code @Copyright("2020 Acme Corporation")}</li>

archunit/src/main/java/com/tngtech/archunit/core/domain/JavaClass.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Optional<JavaClass> tryGetComponentType() {
262262
* Of all these class declarations only {@code TopLevel} is a top level class, since all
263263
* other classes are declared within the body of {@code TopLevel} and are thereby nested classes.
264264
* <br><br>
265-
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se13/html/jls-8.html">
265+
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html">
266266
* Java Language Specification</a>
267267
*
268268
* @see #isNestedClass()
@@ -300,7 +300,7 @@ public boolean isTopLevelClass() {
300300
* (which will have some generated name like {@code TopLevel$1})
301301
* are considered nested classes. {@code TopLevel} on the other side is no nested class.
302302
* <br><br>
303-
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se13/html/jls-8.html">
303+
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html">
304304
* Java Language Specification</a>
305305
*
306306
* @see #isTopLevelClass()
@@ -340,7 +340,7 @@ public boolean isNestedClass() {
340340
* (which will have some generated name like {@code TopLevel$1}), as well as {@code TopLevel}
341341
* itself, are not considered member classes.
342342
* <br><br>
343-
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se13/html/jls-8.html">
343+
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html">
344344
* Java Language Specification</a>
345345
*
346346
* @see #isTopLevelClass()
@@ -381,7 +381,7 @@ public boolean isMemberClass() {
381381
* are no inner classes, because the former two explicitly or implicitly have the
382382
* {@code static} modifier while the latter one is a top level class.
383383
* <br><br>
384-
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se13/html/jls-8.html">
384+
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html">
385385
* Java Language Specification</a>
386386
*
387387
* @see #isTopLevelClass()
@@ -421,7 +421,7 @@ public boolean isInnerClass() {
421421
* either are top level, directly declared within the body of {@code TopLevel} or are anonymous
422422
* and thus have no name.
423423
* <br><br>
424-
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se13/html/jls-8.html">
424+
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html">
425425
* Java Language Specification</a>
426426
*
427427
* @see #isTopLevelClass()
@@ -462,7 +462,7 @@ public boolean isLocalClass() {
462462
* All the other classes {@code TopLevel}, {@code InnerClass}, {@code NestedStaticClass} and
463463
* {@code LocalClass} are considered non-anonymous.
464464
* <br><br>
465-
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se13/html/jls-8.html">
465+
* Compare e.g. <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html">
466466
* Java Language Specification</a>
467467
*
468468
* @see #isTopLevelClass()

0 commit comments

Comments
 (0)