File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ scalaMajorVersion := {
50
50
}
51
51
}
52
52
53
- val addJava17Tests : Boolean = compareVersions( System .getProperty(" java.version" ), " 17.0.0 " ) >= 0
53
+ val addJava17Tests : Boolean = System .getProperty(" java.specification. version" ).toDouble >= 17
54
54
55
55
mimaPreviousArtifacts := {
56
56
if (scalaReleaseVersion.value > 2 )
@@ -254,22 +254,3 @@ mimaBinaryIssueFilters ++= Seq(
254
254
ProblemFilters .exclude[DirectMissingMethodProblem ](" com.fasterxml.jackson.module.scala.introspect.ScalaAnnotationIntrospector.findPropertiesToIgnore" )
255
255
)
256
256
257
- def compareVersions (version1 : String , version2 : String ): Int = {
258
- var comparisonResult = 0
259
- val version1Splits = version1.split(" \\ ." )
260
- val version2Splits = version2.split(" \\ ." )
261
- val maxLengthOfVersionSplits = Math .max(version1Splits.length, version2Splits.length)
262
- var i = 0
263
- while (comparisonResult == 0 && i < maxLengthOfVersionSplits) {
264
- val v1 = if (i < version1Splits.length) version1Splits(i).toInt
265
- else 0
266
- val v2 = if (i < version2Splits.length) version2Splits(i).toInt
267
- else 0
268
- val compare = v1.compareTo(v2)
269
- if (compare != 0 ) {
270
- comparisonResult = compare
271
- }
272
- i += 1
273
- }
274
- comparisonResult
275
- }
You can’t perform that action at this time.
0 commit comments