Skip to content

Commit 59dc626

Browse files
autofix-ci[bot]lostiniceland
authored andcommitted
[autofix.ci] apply automated fixes
1 parent ffb287e commit 59dc626

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

libs/groovylib/package.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ object `package` extends MillPublishScalaModule with BuildInfo {
1414
override def testMvnDeps: T[Seq[Dep]] = super.testMvnDeps() ++ Seq(
1515
Deps.asmTree
1616
)
17-
17+
1818
def buildInfoPackageName = "mill.groovylib"
1919
def buildInfoObjectName = "Versions"
2020
def buildInfoMembers = Seq(

libs/groovylib/src/mill/groovylib/GroovyModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ trait GroovyModule extends JavaModule with GroovyModuleApi { outer =>
204204
val firstAndSecondStage = if (isMixed) {
205205
// only compile Java if Stubs are successfully generated
206206
compileGroovyStubs().flatMap(_ => compileJava)
207-
}else{
207+
} else {
208208
Result.Success
209209
}
210210

libs/groovylib/test/src/mill/groovylib/HelloGroovyTests.scala

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ object HelloGroovyTests extends TestSuite {
103103
override def jupiterVersion: T[String] = junit5Version
104104
override def junitPlatformVersion = "1.13.4"
105105
}
106-
106+
107107
object compileroptions extends GroovyModule {
108108
override def groovyVersion: T[String] = crossValue
109109
override def targetBytecode: Task.Simple[Option[String]] = Some("11")
@@ -221,8 +221,8 @@ object HelloGroovyTests extends TestSuite {
221221
val buffer = classReader.b
222222

223223
// Class file format: magic(4) + minor(2) + major(2) + ...
224-
val minor = ((buffer(4) & 0xFF) << 8) | (buffer(5) & 0xFF)
225-
val major = ((buffer(6) & 0xFF) << 8) | (buffer(7) & 0xFF)
224+
val minor = ((buffer(4) & 0xff) << 8) | (buffer(5) & 0xff)
225+
val major = ((buffer(6) & 0xff) << 8) | (buffer(7) & 0xff)
226226

227227
BytecodeVersion(major, minor)
228228
}
@@ -231,8 +231,9 @@ object HelloGroovyTests extends TestSuite {
231231
main.crossModules.foreach(m => {
232232
val Right(result) = eval.apply(m.compileroptions.compile): @unchecked
233233

234-
val compiledClassFile = os.walk(result.value.classes.path).find(_.last == "HelloCompilerOptions.class")
235-
234+
val compiledClassFile =
235+
os.walk(result.value.classes.path).find(_.last == "HelloCompilerOptions.class")
236+
236237
assert(
237238
compiledClassFile.isDefined
238239
)
@@ -241,7 +242,7 @@ object HelloGroovyTests extends TestSuite {
241242

242243
assert(bytecodeVersion.major == 55)
243244
assert(bytecodeVersion.is11PreviewEnabled)
244-
245+
245246
val Right(_) = eval.apply(m.compileroptions.run()): @unchecked
246247
})
247248
}

0 commit comments

Comments
 (0)