Skip to content

Commit

Permalink
Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Jan 7, 2022
1 parent 3c518ff commit a8f2992
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import java.util.Properties
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

group = "com.github.cs125-illinois"
version = "2021.12.2"
version = "2022.1.0"

plugins {
kotlin("jvm") version "1.6.10"
Expand All @@ -15,7 +15,7 @@ plugins {
checkstyle
id("com.github.sherter.google-java-format") version "0.9"

id("com.github.ben-manes.versions") version "0.39.0"
id("com.github.ben-manes.versions") version "0.41.0"
id("io.gitlab.arturbosch.detekt") version "1.19.0"
}
repositories {
Expand Down
7 changes: 5 additions & 2 deletions src/main/kotlin/Submission.kt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class Submission(val solution: Solution, val submission: Class<*>) {
if (submission.kotlin.isData && executable.isDataClassGenerated()) {
return@forEach
}
} catch (e: UnsupportedOperationException) {}
} catch (_: UnsupportedOperationException) {}
if (executable.name == "compareTo") {
return@forEach
}
Expand Down Expand Up @@ -285,7 +285,7 @@ class Submission(val solution: Solution, val submission: Class<*>) {
} else {
null
}?.value
if (customCompare != null && solution.returned != null && submission.returned != null) {
if (customCompare != null && submission.returned != null) {
@Suppress("TooGenericExceptionCaught")
try {
customCompare.invoke(null, solution.returned, submission.returned)
Expand Down Expand Up @@ -378,6 +378,9 @@ class Submission(val solution: Solution, val submission: Class<*>) {
var receiverGoalMet = false
@Suppress("UnusedPrivateMember")
for (unused in 0..(settings.receiverCount * settings.receiverRetries)) {
if (Thread.interrupted()) {
return runners.toResults(settings)
}
TestRunner(
runners.size,
this,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2021.12.2
version=2022.1.0

0 comments on commit a8f2992

Please sign in to comment.