Skip to content

Commit 6f7be83

Browse files
committed
fix according to review
1 parent 377c868 commit 6f7be83

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

utbot-junit-contest/src/main/kotlin/org/utbot/contest/ContestEstimator.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import org.utbot.features.FeatureExtractorFactoryImpl
2929
import org.utbot.features.FeatureProcessorWithStatesRepetitionFactory
3030
import org.utbot.framework.PathSelectorType
3131
import org.utbot.framework.UtSettings
32-
import org.utbot.framework.plugin.api.util.UtContext
3332
import org.utbot.framework.plugin.api.util.id
3433
import org.utbot.framework.plugin.api.util.withUtContext
3534
import org.utbot.framework.plugin.services.JdkInfoService
@@ -47,7 +46,7 @@ private val javaHome = System.getenv("JAVA_HOME")
4746
private val javacCmd = "$javaHome/bin/javac"
4847
private val javaCmd = "$javaHome/bin/java"
4948

50-
private const val triesToCompile = 2
49+
private const val compileAttempts = 2
5150

5251
private data class UnnamedPackageInfo(val pack: String, val module: String)
5352

@@ -64,7 +63,7 @@ private fun compileClass(testDir: String, classPath: String, testClass: String):
6463
val exports = mutableSetOf<UnnamedPackageInfo>()
6564
var exitCode = 0
6665

67-
repeat(triesToCompile) { tryNumber ->
66+
repeat(compileAttempts) { attemptNumber ->
6867
val cmd = arrayOf(
6968
javacCmd,
7069
*exports.flatMap {
@@ -76,7 +75,7 @@ private fun compileClass(testDir: String, classPath: String, testClass: String):
7675
"-XDignore.symbol.file",
7776
testClass
7877
)
79-
logger.debug { "Compile try ${tryNumber + 1}" }
78+
logger.debug { "Compile attempt ${attemptNumber + 1}" }
8079

8180
logger.trace { cmd.toText() }
8281

0 commit comments

Comments
 (0)