Skip to content

Commit 8761f21

Browse files
committed
increase level to 12
relative symlink? comment sptless
1 parent e359beb commit 8761f21

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

palantir-java-format-benchmarks/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ tasks.named('jmh', JMHTask.class) {
3333

3434
spotless {
3535
java {
36+
// symlinks to a test input file that shouldn't be formatted
3637
targetExclude 'src/test/resources/*'
3738
}
3839
}

palantir-java-format-benchmarks/src/jmh/java/com/palantir/javaformat/BenchmarkMultiFiles.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public final void runJar(BenchmarkState state) throws InterruptedException, IOEx
130130

131131
public static void main(String[] _args) throws RunnerException {
132132
new Runner(new OptionsBuilder()
133-
.include(BenchmarkMultiFiles.class.getSimpleName())
134-
.build())
133+
.include(BenchmarkMultiFiles.class.getSimpleName())
134+
.build())
135135
.run();
136136
}
137137
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/Volumes/git/palantir-java-format/palantir-java-format/src/test/resources/com/palantir/javaformat/java/testdata/palantir-deeply-nested-calls.input
1+
../../../../palantir-java-format/src/test/resources/com/palantir/javaformat/java/testdata/palantir-deeply-nested-calls.input

palantir-java-format/src/main/java/com/palantir/javaformat/doc/Level.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public final class Level extends Doc {
5454
/**
5555
* The depth of nested levels in the current level tree from which we explore both breaking vs not breaking the current level.
5656
*/
57-
private static final int LAST_LEVELS_TO_EXPLORE = 7;
57+
private static final int LAST_LEVELS_TO_EXPLORE = 12;
5858

5959
private static final Collector<Level, ?, Optional<Level>> GET_LAST_COLLECTOR = Collectors.reducing((u, v) -> v);
6060

0 commit comments

Comments
 (0)