Skip to content

Commit

Permalink
Kotlin 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed May 26, 2024
1 parent 39af375 commit 6613a64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
[versions]
guava = "32.1.2-jre"
gson = "2.9.1"
jmlparser = "3.25.10-b3-SNAPSHOT"
jmlparser = "3.25.10-b5-SNAPSHOT"
logback = "1.4.12"
jupiter = "5.12.0"
clickt = "4.2.2"
jdk = "21"
kotlin = "1.9.20"
kotlin = "2.0.0"
ktor = "2.3.11"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Jml2JavaTranslator {
if (e.operators[0] == BinaryExpr.Operator.LESS_EQUALS) return e.expressions[0]
if (e.operators[0] == BinaryExpr.Operator.LESS) return BinaryExpr(
e.expressions[0],
IntegerLiteralExpr(1),
IntegerLiteralExpr("1"),
BinaryExpr.Operator.PLUS
)
throw IllegalStateException()
Expand All @@ -93,7 +93,7 @@ class Jml2JavaTranslator {
val result = pattern.find(n)
if (result != null) return BinaryExpr(
result["min"] as Expression?,
IntegerLiteralExpr(1),
IntegerLiteralExpr("1"),
BinaryExpr.Operator.PLUS
)
}
Expand All @@ -113,7 +113,7 @@ class Jml2JavaTranslator {
val result = pattern.find(n)
if (result != null) return BinaryExpr(
result["min"] as Expression?,
IntegerLiteralExpr(1),
IntegerLiteralExpr("1"),
BinaryExpr.Operator.PLUS
)
}
Expand Down Expand Up @@ -335,7 +335,7 @@ class Jml2JavaTranslator {
) {
if (e.operators[0] == BinaryExpr.Operator.LESS_EQUALS) return e.expressions[0]
if (e.operators[0] == BinaryExpr.Operator.LESS) return BinaryExpr(
e.expressions[0], IntegerLiteralExpr(1), BinaryExpr.Operator.PLUS
e.expressions[0], IntegerLiteralExpr("1"), BinaryExpr.Operator.PLUS
)
throw IllegalStateException()
}
Expand All @@ -357,7 +357,7 @@ class Jml2JavaTranslator {
val result = pattern.find(n)
if (result != null) return BinaryExpr(
result["min"] as Expression?,
IntegerLiteralExpr(1),
IntegerLiteralExpr("1"),
BinaryExpr.Operator.PLUS
)
}
Expand All @@ -377,7 +377,7 @@ class Jml2JavaTranslator {
val result = pattern.find(n)
if (result != null) return BinaryExpr(
result["min"] as Expression?,
IntegerLiteralExpr(1),
IntegerLiteralExpr("1"),
BinaryExpr.Operator.PLUS
)
}
Expand Down

0 comments on commit 6613a64

Please sign in to comment.