Skip to content

Commit 5ec355a

Browse files
committed
scalafmt
1 parent a683cd7 commit 5ec355a

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

tests/unit/src/main/scala/tests/SnapshotNormalizer.scala

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ object SnapshotNormalizer {
66
* Replace the JDK major version embedded in `semanticdb maven jdk N ...`
77
* symbols with a fixed placeholder so snapshots are stable across JDK
88
* versions. The runtime JDK leaks into indexer output via
9-
* `JdkPackage.forRuntime`, but unit/snapshot tests only care that the
10-
* symbol *structure* is correct — the actual JDK version is covered by the
11-
* Maven integration matrix.
9+
* `JdkPackage.forRuntime`, but unit/snapshot tests only care that the symbol
10+
* *structure* is correct — the actual JDK version is covered by the Maven
11+
* integration matrix.
1212
*/
13-
def normalizeJdkVersion(text: String): String =
14-
text.replaceAll("""jdk \d+""", "jdk N")
13+
def normalizeJdkVersion(text: String): String = text.replaceAll(
14+
"""jdk \d+""",
15+
"jdk N"
16+
)
1517
}

tests/unit/src/test/scala/tests/SnapshotCommandSuite.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ class SnapshotCommandSuite extends MopedSuite(ScipJava.app) {
5151
)
5252
assertEquals(snapshotExit, 0, clues(app.capturedOutput))
5353
assertNoDiff(
54-
SnapshotNormalizer.normalizeJdkVersion(FileLayout.asString(generatedpath)),
54+
SnapshotNormalizer.normalizeJdkVersion(
55+
FileLayout.asString(generatedpath)
56+
),
5557
"""|/main/Sample.java
5658
| package main;
5759
| /**

0 commit comments

Comments
 (0)