Skip to content

Commit

Permalink
Fix fauxStatic detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Oct 11, 2022
1 parent 531b51b commit 3a36e49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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 = "2022.10.0"
version = "2022.10.1"

plugins {
kotlin("jvm") version "1.7.20"
Expand All @@ -28,7 +28,7 @@ dependencies {
implementation("io.github.classgraph:classgraph:4.8.149")
implementation("io.github.kostaskougios:cloning:1.10.3")

testImplementation("io.kotest:kotest-runner-junit5:5.4.2")
testImplementation("io.kotest:kotest-runner-junit5:5.5.1")
testImplementation("org.slf4j:slf4j-simple:2.0.3")
}
tasks.withType<JavaCompile> {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/Solution.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Solution(val solution: Class<*>) {
(receiverGenerators.size == 1 && receiverGenerators.first().parameters.isEmpty())
)

val fauxStatic = solution.superclass == Any::class.java &&
val fauxStatic = !skipReceiver && solution.superclass == Any::class.java &&
solution.declaredFields.all { it.isJenisol() || it.isStatic() } &&
solution.declaredMethods.all {
it.isJenisol() ||
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2022.10.0
version=2022.10.1

0 comments on commit 3a36e49

Please sign in to comment.