Skip to content

Commit

Permalink
Fix Kotlin printing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Jun 30, 2021
1 parent c502cc3 commit 880d8ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import java.io.StringWriter
import java.util.Properties

group = "com.github.cs125-illinois"
version = "2021.6.6"
version = "2021.6.7"

plugins {
kotlin("jvm") version "1.5.20"
Expand Down
8 changes: 6 additions & 2 deletions src/main/kotlin/Solution.kt
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,16 @@ fun Executable.fullName(isKotlin: Boolean = false): String {
}
}.let {
if (it.isNotBlank()) {
"$it "
if (isKotlin) {
" $it"
} else {
"$it "
}
} else {
it
}
}
return if (isKotlin) {
return if (!isKotlin) {
"${visibilityModifier ?: ""}${
if (isStatic()) {
"static "
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2021.6.6
version=2021.6.7

0 comments on commit 880d8ba

Please sign in to comment.