File tree Expand file tree Collapse file tree 8 files changed +22
-35
lines changed
buildSrc/resources/javadoc/java.se
main/java/io/jenetics/jpx
test/java/io/jenetics/jpx Expand file tree Collapse file tree 8 files changed +22
-35
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ gradle.projectsEvaluated {
7272
7373 plugins.withType<JavaPlugin > {
7474 configure<JavaPluginExtension > {
75- sourceCompatibility = JavaVersion .VERSION_21
76- targetCompatibility = JavaVersion .VERSION_21
75+ sourceCompatibility = JavaVersion .VERSION_25
76+ targetCompatibility = JavaVersion .VERSION_25
7777 }
7878
7979 configure<JavaPluginExtension > {
@@ -170,7 +170,7 @@ fun setupJavadoc(project: Project) {
170170 doclet.charSet = " UTF-8"
171171 doclet.linkSource(true )
172172 doclet.linksOffline(
173- " https://docs.oracle.com/en/java/javase/21 /docs/api/" ,
173+ " https://docs.oracle.com/en/java/javase/25 /docs/api/" ,
174174 " ${project.rootDir} /buildSrc/resources/javadoc/java.se"
175175 )
176176 doclet.windowTitle = " JPX ${project.version} "
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ module:java.base
22java.io
33java.lang
44java.lang.annotation
5+ java.lang.classfile
6+ java.lang.classfile.attribute
7+ java.lang.classfile.constantpool
8+ java.lang.classfile.instruction
59java.lang.constant
610java.lang.foreign
711java.lang.invoke
@@ -91,6 +95,7 @@ javax.print
9195javax.print.attribute
9296javax.print.attribute.standard
9397javax.print.event
98+ javax.sound
9499javax.sound.midi
95100javax.sound.midi.spi
96101javax.sound.sampled
@@ -210,7 +215,6 @@ com.sun.source.tree
210215com.sun.source.util
211216com.sun.tools.javac
212217module:jdk.crypto.cryptoki
213- module:jdk.crypto.ec
214218module:jdk.dynalink
215219jdk.dynalink
216220jdk.dynalink.beans
@@ -255,6 +259,7 @@ module:jdk.jstatd
255259module:jdk.localedata
256260module:jdk.management
257261com.sun.management
262+ jdk.management
258263module:jdk.management.agent
259264module:jdk.management.jfr
260265jdk.management.jfr
@@ -279,4 +284,4 @@ org.w3c.dom.css
279284org.w3c.dom.html
280285org.w3c.dom.stylesheets
281286org.w3c.dom.xpath
282- module:jdk.zipfs
287+ module:jdk.zipfs
Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ public final class Degrees
7676 * range of {@code [0..360]}
7777 */
7878 private Degrees (final double value ) {
79- if (value < MIN_VALUE || value >= MAX_VALUE ) {
79+ if (Double .compare (value , MIN_VALUE ) < 0 ||
80+ Double .compare (value , MAX_VALUE ) >= 0 )
81+ {
8082 throw new IllegalArgumentException (format (
8183 "%f not in the range [0, 360)." , value
8284 ));
@@ -140,8 +142,7 @@ public int hashCode() {
140142
141143 @ Override
142144 public boolean equals (final Object obj ) {
143- return obj == this ||
144- obj instanceof Degrees deg &&
145+ return obj instanceof Degrees deg &&
145146 Double .compare (deg ._value , _value ) == 0 ;
146147 }
147148
Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ public final class Latitude extends Number implements Serializable {
8484 * range of {@code [-90..90]}
8585 */
8686 private Latitude (final double value ) {
87- if (value < MIN_DEGREES || value > MAX_DEGREES ) {
87+ if (Double .compare (value , MIN_DEGREES ) < 0 ||
88+ Double .compare (value , MAX_DEGREES ) > 0 )
89+ {
8890 throw new IllegalArgumentException (format (
8991 "%f is not in range [-90, 90]." , value
9092 ));
@@ -143,8 +145,7 @@ public int hashCode() {
143145
144146 @ Override
145147 public boolean equals (final Object obj ) {
146- return obj == this ||
147- obj instanceof Latitude lat &&
148+ return obj instanceof Latitude lat &&
148149 Double .compare (lat ._value , _value ) == 0 ;
149150 }
150151
Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ public final class Longitude extends Number implements Serializable {
8484 * range of {@code [-180..180]}
8585 */
8686 private Longitude (final double value ) {
87- if (value < MIN_DEGREES || value > MAX_DEGREES ) {
87+ if (Double .compare (value , MIN_DEGREES ) < 0 ||
88+ Double .compare (value , MAX_DEGREES ) > 0 )
89+ {
8890 throw new IllegalArgumentException (format (
8991 "%f is not in range [-180, 180)." , value
9092 ));
@@ -143,8 +145,7 @@ public int hashCode() {
143145
144146 @ Override
145147 public boolean equals (final Object obj ) {
146- return obj == this ||
147- obj instanceof Longitude lng &&
148+ return obj instanceof Longitude lng &&
148149 Double .compare (lng ._value , _value ) == 0 ;
149150 }
150151
Original file line number Diff line number Diff line change 1919 */
2020package io .jenetics .jpx ;
2121
22- import nl .jqno .equalsverifier .EqualsVerifier ;
23-
2422import java .util .Random ;
2523import java .util .function .Supplier ;
2624
@@ -68,9 +66,4 @@ public void ofDegrees() {
6866 );
6967 }
7068
71- @ Test
72- public void equalsVerifier () {
73- EqualsVerifier .forClass (Degrees .class ).verify ();
74- }
75-
7669}
Original file line number Diff line number Diff line change 1919 */
2020package io .jenetics .jpx ;
2121
22- import nl .jqno .equalsverifier .EqualsVerifier ;
23-
2422import java .util .Random ;
2523import java .util .function .Supplier ;
2624
@@ -64,9 +62,4 @@ public void ofDegrees() {
6462 );
6563 }
6664
67- @ Test
68- public void equalsVerifier () {
69- EqualsVerifier .forClass (Latitude .class ).verify ();
70- }
71-
7265}
Original file line number Diff line number Diff line change 2222import static java .lang .Double .doubleToLongBits ;
2323import static java .lang .Double .longBitsToDouble ;
2424
25- import nl .jqno .equalsverifier .EqualsVerifier ;
26-
2725import java .util .Random ;
2826import java .util .function .Supplier ;
2927
@@ -76,9 +74,4 @@ public void ofDegrees() {
7674 );
7775 }
7876
79- @ Test
80- public void equalsVerifier () {
81- EqualsVerifier .forClass (Longitude .class ).verify ();
82- }
83-
8477}
You can’t perform that action at this time.
0 commit comments