Skip to content

Commit b8cac9d

Browse files
author
Andriy Onyshchuk
committed
spotlessApply: reflow doc, drop stray blank line
1 parent 9c04e82 commit b8cac9d

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

pkl-config-scala/src/main/scala/org/pkl/config/scala/mapper/PStringToScalaEnum.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ import scala.collection.immutable.VectorMap
2828
*
2929
* Scala 3 enum cases implement `scala.reflect.Enum`. When the enum also extends `java.lang.Enum`
3030
* (the opt-in Java-compat form), `Class.isEnum` returns true and `pkl-config-java`'s
31-
* `PStringToEnum` already handles them; this factory returns `Optional.empty()` in that case so
32-
* the chain falls through to `PStringToEnum`. For the plain `enum Foo { case A, B }` form,
33-
* `isEnum` is false and this factory looks up the case via the companion module's synthetic
34-
* `values()` method.
31+
* `PStringToEnum` already handles them; this factory returns `Optional.empty()` in that case so the
32+
* chain falls through to `PStringToEnum`. For the plain `enum Foo { case A, B }` form, `isEnum` is
33+
* false and this factory looks up the case via the companion module's synthetic `values()` method.
3534
*/
3635
private[mapper] object PStringToScalaEnum extends ConverterFactory {
3736

pkl-config-scala/src/test/scala/org/pkl/config/scala/ScalaObjectMapperSpec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class ScalaObjectMapperSpec extends FixtureAnyFunSuite {
4242
}
4343

4444
test("evaluate scala types") { evaluator =>
45-
4645
val code = {
4746
"""
4847
|module ObjectMappingTestContainer

0 commit comments

Comments
 (0)