From b5412570e61a0de094db57eec3e96e15909036af Mon Sep 17 00:00:00 2001 From: Dan Sanduleac Date: Thu, 17 Oct 2019 16:01:17 +0100 Subject: [PATCH 1/5] reflow strings as part of baseline format --- .../palantir/baseline/plugins/BaselineFormat.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineFormat.java b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineFormat.java index 0f1b9da92..cebf0ea8c 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineFormat.java +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineFormat.java @@ -18,18 +18,12 @@ import com.diffplug.gradle.spotless.SpotlessExtension; import com.diffplug.spotless.FormatterFunc; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.Iterables; -import com.google.common.collect.Range; -import com.palantir.javaformat.java.FormatterService; +import com.palantir.javaformat.java.Formatter; import com.palantir.javaformat.java.JavaFormatterOptions; import com.palantir.javaformat.java.JavaFormatterOptions.Style; -import com.palantir.javaformat.java.JavaOutput; -import com.palantir.javaformat.java.Replacement; import java.io.File; import java.nio.file.Files; import java.nio.file.Path; -import java.util.ServiceLoader; import org.gradle.api.GradleException; import org.gradle.api.Project; import org.gradle.api.Task; @@ -128,14 +122,10 @@ static Path eclipseConfigFile(Project project) { private static class PalantirJavaFormatterFunc implements FormatterFunc { private static final JavaFormatterOptions OPTIONS = JavaFormatterOptions.builder().style(Style.PALANTIR).build(); - private final FormatterService formatterService = - Iterables.getOnlyElement(ServiceLoader.load(FormatterService.class)); @Override public String apply(String input) throws Exception { - ImmutableList replacements = formatterService.getFormatReplacements( - OPTIONS, input, ImmutableList.of(Range.closedOpen(0, input.length()))); - return JavaOutput.applyReplacements(input, replacements); + return Formatter.createFormatter(OPTIONS).formatSourceAndFixImports(input); } } } From 80310f31093fb5a3a4cebb0dc5c7477174bc2fe3 Mon Sep 17 00:00:00 2001 From: Dan Sanduleac Date: Thu, 17 Oct 2019 16:42:29 +0100 Subject: [PATCH 2/5] bump javaformat to pick up fix --- versions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions.props b/versions.props index a4658cce4..7d0fb0e6e 100644 --- a/versions.props +++ b/versions.props @@ -7,7 +7,7 @@ com.google.errorprone:error_prone_test_helpers = 2.3.3 com.google.guava:guava = 27.1-jre com.netflix.nebula:nebula-dependency-recommender = 9.0.0 com.palantir.configurationresolver:gradle-configuration-resolver-plugin = 0.4.0 -com.palantir.javaformat:* = 0.2.1 +com.palantir.javaformat:* = 0.2.3 com.palantir.safe-logging:* = 1.11.0 org.apache.maven.shared:maven-dependency-analyzer = 1.11.1 org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.11 = 1.0.1 From e3839645f80b5b8f405d09545871ac8051442015 Mon Sep 17 00:00:00 2001 From: Dan Sanduleac Date: Thu, 17 Oct 2019 15:42:29 +0000 Subject: [PATCH 3/5] Add generated changelog entries --- changelog/@unreleased/pr-982.v2.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 changelog/@unreleased/pr-982.v2.yml diff --git a/changelog/@unreleased/pr-982.v2.yml b/changelog/@unreleased/pr-982.v2.yml new file mode 100644 index 000000000..c093cb506 --- /dev/null +++ b/changelog/@unreleased/pr-982.v2.yml @@ -0,0 +1,6 @@ +type: improvement +improvement: + description: For users who opted into palantir-java-format, we now reflow strings + and reorder imports. + links: + - https://github.com/palantir/gradle-baseline/pull/982 From 18f6c19877f78206a6b4e2d081e527aa74355d15 Mon Sep 17 00:00:00 2001 From: Dan Sanduleac Date: Thu, 17 Oct 2019 17:01:30 +0100 Subject: [PATCH 4/5] move stuff to 'eclipse-formatter-expected', delete many integration tests --- .../BaselineFormatIntegrationTest.groovy | 32 +- .../BlankLines.java | 0 .../Correct.java | 0 .../Invalid.java | 0 .../Multicatch.java | 0 .../MultilineStringConstant.java | 0 .../baseline/googlejavaformat-expected/A.java | 458 ---------- .../baseline/googlejavaformat-expected/B.java | 17 - .../googlejavaformat-expected/B112853497.java | 12 - .../googlejavaformat-expected/B124394008.java | 9 - .../googlejavaformat-expected/B126411718.java | 10 - .../googlejavaformat-expected/B18479811.java | 38 - .../googlejavaformat-expected/B19950219.java | 9 - .../googlejavaformat-expected/B19950468.java | 5 - .../googlejavaformat-expected/B19950815.java | 17 - .../googlejavaformat-expected/B19996259.java | 16 - .../googlejavaformat-expected/B20128174.java | 14 - .../googlejavaformat-expected/B20128588.java | 157 ---- .../googlejavaformat-expected/B20128760.java | 105 --- .../googlejavaformat-expected/B20128921.java | 10 - .../googlejavaformat-expected/B20341001.java | 694 -------------- .../googlejavaformat-expected/B20524742.java | 5 - .../googlejavaformat-expected/B20529113.java | 10 - .../googlejavaformat-expected/B20531711.java | 16 - .../googlejavaformat-expected/B20535125.java | 146 --- .../googlejavaformat-expected/B20567842.java | 45 - .../googlejavaformat-expected/B20569245.java | 43 - .../googlejavaformat-expected/B20577626.java | 16 - .../googlejavaformat-expected/B20578077.java | 16 - .../googlejavaformat-expected/B20580212.java | 15 - .../googlejavaformat-expected/B20701054.java | 183 ---- .../googlejavaformat-expected/B20844369.java | 31 - .../googlejavaformat-expected/B20915776.java | 9 - .../googlejavaformat-expected/B21031147.java | 8 - .../googlejavaformat-expected/B21105569.java | 11 - .../googlejavaformat-expected/B21185365.java | 5 - .../googlejavaformat-expected/B21192435.java | 15 - .../googlejavaformat-expected/B21278211.java | 23 - .../googlejavaformat-expected/B21283374.java | 68 -- .../googlejavaformat-expected/B21305044.java | 40 - .../googlejavaformat-expected/B21327412.java | 3 - .../googlejavaformat-expected/B21329312.java | 7 - .../googlejavaformat-expected/B21331232.java | 20 - .../googlejavaformat-expected/B21465217.java | 11 - .../googlejavaformat-expected/B21465477.java | 13 - .../googlejavaformat-expected/B21585653.java | 5 - .../googlejavaformat-expected/B21608216.java | 113 --- .../googlejavaformat-expected/B21647014.java | 12 - .../googlejavaformat-expected/B21954779.java | 49 - .../googlejavaformat-expected/B22166687.java | 19 - .../googlejavaformat-expected/B22169269.java | 10 - .../googlejavaformat-expected/B22424362.java | 8 - .../googlejavaformat-expected/B22469536.java | 6 - .../googlejavaformat-expected/B22488373.java | 11 - .../googlejavaformat-expected/B22610221.java | 11 - .../googlejavaformat-expected/B22815364.java | 86 -- .../googlejavaformat-expected/B22848286.java | 8 - .../googlejavaformat-expected/B22873322.java | 14 - .../googlejavaformat-expected/B22913048.java | 9 - .../googlejavaformat-expected/B23349153.java | 29 - .../googlejavaformat-expected/B23514513.java | 8 - .../googlejavaformat-expected/B23626035.java | 3 - .../googlejavaformat-expected/B23708487.java | 10 - .../googlejavaformat-expected/B23749160.java | 51 -- .../googlejavaformat-expected/B23804934.java | 31 - .../googlejavaformat-expected/B24202287.java | 26 - .../googlejavaformat-expected/B24494875.java | 4 - .../googlejavaformat-expected/B24543625.java | 76 -- .../googlejavaformat-expected/B24702438.java | 66 -- .../googlejavaformat-expected/B24862959.java | 9 - .../googlejavaformat-expected/B24909927.java | 403 --------- .../googlejavaformat-expected/B24988078.java | 7 - .../googlejavaformat-expected/B25372815.java | 32 - .../googlejavaformat-expected/B25749989.java | 7 - .../googlejavaformat-expected/B25787055.java | 40 - .../googlejavaformat-expected/B25811323.java | 5 - .../googlejavaformat-expected/B26159561.java | 6 - .../googlejavaformat-expected/B26207047.java | 107 --- .../googlejavaformat-expected/B26275739.java | 20 - .../googlejavaformat-expected/B26293162.java | 43 - .../googlejavaformat-expected/B26694550.java | 21 - .../googlejavaformat-expected/B26884608.java | 33 - .../googlejavaformat-expected/B26928842.java | 10 - .../googlejavaformat-expected/B26952926.java | 51 -- .../googlejavaformat-expected/B27078833.java | 19 - .../googlejavaformat-expected/B27246427.java | 11 - .../googlejavaformat-expected/B27602933.java | 7 - .../googlejavaformat-expected/B28066276.java | 13 - .../googlejavaformat-expected/B28774859.java | 3 - .../googlejavaformat-expected/B28786284.java | 5 - .../googlejavaformat-expected/B28788559.java | 7 - .../googlejavaformat-expected/B29368546.java | 60 -- .../googlejavaformat-expected/B29618429.java | 13 - .../googlejavaformat-expected/B29705613.java | 8 - .../googlejavaformat-expected/B30153869.java | 26 - .../googlejavaformat-expected/B30223986.java | 45 - .../googlejavaformat-expected/B30764810.java | 16 - .../googlejavaformat-expected/B30789352.java | 6 - .../googlejavaformat-expected/B32114928.java | 7 - .../googlejavaformat-expected/B32284705.java | 8 - .../googlejavaformat-expected/B32397217.java | 7 - .../googlejavaformat-expected/B32729600.java | 5 - .../googlejavaformat-expected/B33358723.java | 21 - .../googlejavaformat-expected/B35644813.java | 19 - .../googlejavaformat-expected/B35797074.java | 4 - .../googlejavaformat-expected/B36194204.java | 5 - .../googlejavaformat-expected/B37629610.java | 13 - .../googlejavaformat-expected/B37895033.java | 20 - .../googlejavaformat-expected/B38203081.java | 5 - .../googlejavaformat-expected/B38241237.java | 7 - .../googlejavaformat-expected/B38352414.java | 2 - .../googlejavaformat-expected/B64493529.java | 10 - .../googlejavaformat-expected/B65214682.java | 15 - .../googlejavaformat-expected/B72507902.java | 6 - .../baseline/googlejavaformat-expected/C.java | 110 --- .../CL240367479.java | 5 - .../baseline/googlejavaformat-expected/D.java | 75 -- .../baseline/googlejavaformat-expected/E.java | 342 ------- .../EnumAnnotation.java | 8 - .../baseline/googlejavaformat-expected/F.java | 284 ------ .../googlejavaformat-expected/Fields.java | 7 - .../googlejavaformat-expected/ForMany.java | 6 - .../baseline/googlejavaformat-expected/I.java | 129 --- .../googlejavaformat-expected/I1.java | 55 -- .../googlejavaformat-expected/I12.java | 19 - .../googlejavaformat-expected/I13.java | 10 - .../googlejavaformat-expected/I202.java | 6 - .../googlejavaformat-expected/I365.java | 10 - .../baseline/googlejavaformat-expected/L.java | 10 - .../LocalAnnotations.java | 10 - .../baseline/googlejavaformat-expected/M.java | 848 ------------------ .../googlejavaformat-expected/M1.java | 22 - .../googlejavaformat-expected/M2.java | 2 - .../googlejavaformat-expected/M3.java | 6 - .../MarkerAnnotation.java | 4 - .../Multivariables.java | 18 - .../baseline/googlejavaformat-expected/N.java | 13 - .../NormalAnnotation.java | 56 -- .../baseline/googlejavaformat-expected/P.java | 21 - .../googlejavaformat-expected/Pair.java | 12 - .../PairedArguments.java | 67 -- .../baseline/googlejavaformat-expected/Q.java | 15 - .../baseline/googlejavaformat-expected/R.java | 42 - .../baseline/googlejavaformat-expected/S.java | 101 --- .../SingleMemberAnnotation.java | 5 - .../SuperQualifier.java | 18 - .../baseline/googlejavaformat-expected/T.java | 19 - .../TryWithResources.java | 24 - .../baseline/googlejavaformat-expected/U.java | 53 -- .../googlejavaformat-expected/UnaryMinus.java | 5 - .../Unformatted.java | 58 -- .../Unformatted2.java | 16 - .../Unformatted3.java | 9 - .../baseline/googlejavaformat-expected/V.java | 13 - .../baseline/googlejavaformat-expected/W.java | 8 - .../googlejavaformat-expected/WildBound.java | 5 - .../googlejavaformat-expected/i100.java | 7 - .../googlejavaformat-expected/i101.java | 1 - .../googlejavaformat-expected/i155.java | 5 - .../googlejavaformat-expected/i176.java | 7 - .../googlejavaformat-expected/i221.java | 8 - .../googlejavaformat-expected/i281.java | 25 - .../googlejavaformat-expected/i282.java | 16 - .../googlejavaformat-expected/i55.java | 13 - .../googlejavaformat-expected/i59.java | 12 - .../googlejavaformat-expected/i60.java | 9 - .../googlejavaformat-expected/i65.java | 5 - .../googlejavaformat-expected/i66.java | 7 - .../googlejavaformat-expected/i71.java | 19 - .../googlejavaformat-expected/i95.java | 3 - .../googlejavaformat-expected/i98.java | 7 - .../baseline/googlejavaformat-in/A.java | 84 -- .../baseline/googlejavaformat-in/B.java | 18 - .../googlejavaformat-in/B112853497.java | 12 - .../googlejavaformat-in/B124394008.java | 8 - .../googlejavaformat-in/B126411718.java | 10 - .../googlejavaformat-in/B18479811.java | 15 - .../googlejavaformat-in/B19950219.java | 8 - .../googlejavaformat-in/B19950468.java | 5 - .../googlejavaformat-in/B19950815.java | 12 - .../googlejavaformat-in/B19996259.java | 16 - .../googlejavaformat-in/B20128174.java | 8 - .../googlejavaformat-in/B20128588.java | 84 -- .../googlejavaformat-in/B20128760.java | 107 --- .../googlejavaformat-in/B20128921.java | 10 - .../googlejavaformat-in/B20341001.java | 54 -- .../googlejavaformat-in/B20524742.java | 3 - .../googlejavaformat-in/B20529113.java | 12 - .../googlejavaformat-in/B20531711.java | 16 - .../googlejavaformat-in/B20535125.java | 146 --- .../googlejavaformat-in/B20567842.java | 10 - .../googlejavaformat-in/B20569245.java | 35 - .../googlejavaformat-in/B20577626.java | 18 - .../googlejavaformat-in/B20578077.java | 13 - .../googlejavaformat-in/B20580212.java | 16 - .../googlejavaformat-in/B20701054.java | 185 ---- .../googlejavaformat-in/B20844369.java | 31 - .../googlejavaformat-in/B20915776.java | 10 - .../googlejavaformat-in/B21031147.java | 6 - .../googlejavaformat-in/B21105569.java | 9 - .../googlejavaformat-in/B21185365.java | 5 - .../googlejavaformat-in/B21192435.java | 12 - .../googlejavaformat-in/B21278211.java | 23 - .../googlejavaformat-in/B21283374.java | 57 -- .../googlejavaformat-in/B21305044.java | 32 - .../googlejavaformat-in/B21327412.java | 3 - .../googlejavaformat-in/B21329312.java | 6 - .../googlejavaformat-in/B21331232.java | 13 - .../googlejavaformat-in/B21465217.java | 12 - .../googlejavaformat-in/B21465477.java | 10 - .../googlejavaformat-in/B21585653.java | 6 - .../googlejavaformat-in/B21608216.java | 56 -- .../googlejavaformat-in/B21647014.java | 15 - .../googlejavaformat-in/B21954779.java | 46 - .../googlejavaformat-in/B22166687.java | 18 - .../googlejavaformat-in/B22169269.java | 14 - .../googlejavaformat-in/B22424362.java | 8 - .../googlejavaformat-in/B22469536.java | 6 - .../googlejavaformat-in/B22488373.java | 11 - .../googlejavaformat-in/B22610221.java | 12 - .../googlejavaformat-in/B22815364.java | 46 - .../googlejavaformat-in/B22848286.java | 8 - .../googlejavaformat-in/B22873322.java | 14 - .../googlejavaformat-in/B22913048.java | 9 - .../googlejavaformat-in/B23349153.java | 28 - .../googlejavaformat-in/B23514513.java | 7 - .../googlejavaformat-in/B23626035.java | 1 - .../googlejavaformat-in/B23708487.java | 10 - .../googlejavaformat-in/B23749160.java | 43 - .../googlejavaformat-in/B23804934.java | 34 - .../googlejavaformat-in/B24202287.java | 35 - .../googlejavaformat-in/B24494875.java | 4 - .../googlejavaformat-in/B24543625.java | 76 -- .../googlejavaformat-in/B24702438.java | 54 -- .../googlejavaformat-in/B24862959.java | 8 - .../googlejavaformat-in/B24909927.java | 353 -------- .../googlejavaformat-in/B24988078.java | 7 - .../googlejavaformat-in/B25372815.java | 32 - .../googlejavaformat-in/B25749989.java | 4 - .../googlejavaformat-in/B25787055.java | 30 - .../googlejavaformat-in/B25811323.java | 5 - .../googlejavaformat-in/B26159561.java | 6 - .../googlejavaformat-in/B26207047.java | 49 - .../googlejavaformat-in/B26275739.java | 18 - .../googlejavaformat-in/B26293162.java | 43 - .../googlejavaformat-in/B26694550.java | 21 - .../googlejavaformat-in/B26884608.java | 34 - .../googlejavaformat-in/B26928842.java | 9 - .../googlejavaformat-in/B26952926.java | 51 -- .../googlejavaformat-in/B27078833.java | 19 - .../googlejavaformat-in/B27246427.java | 7 - .../googlejavaformat-in/B27602933.java | 11 - .../googlejavaformat-in/B28066276.java | 13 - .../googlejavaformat-in/B28774859.java | 3 - .../googlejavaformat-in/B28786284.java | 5 - .../googlejavaformat-in/B28788559.java | 7 - .../googlejavaformat-in/B29368546.java | 60 -- .../googlejavaformat-in/B29618429.java | 13 - .../googlejavaformat-in/B29705613.java | 8 - .../googlejavaformat-in/B30153869.java | 26 - .../googlejavaformat-in/B30223986.java | 45 - .../googlejavaformat-in/B30764810.java | 16 - .../googlejavaformat-in/B30789352.java | 6 - .../googlejavaformat-in/B32114928.java | 9 - .../googlejavaformat-in/B32284705.java | 8 - .../googlejavaformat-in/B32397217.java | 6 - .../googlejavaformat-in/B32729600.java | 5 - .../googlejavaformat-in/B33358723.java | 24 - .../googlejavaformat-in/B35644813.java | 19 - .../googlejavaformat-in/B35797074.java | 4 - .../googlejavaformat-in/B36194204.java | 5 - .../googlejavaformat-in/B37629610.java | 16 - .../googlejavaformat-in/B37895033.java | 20 - .../googlejavaformat-in/B38203081.java | 5 - .../googlejavaformat-in/B38241237.java | 7 - .../googlejavaformat-in/B38352414.java | 2 - .../googlejavaformat-in/B64493529.java | 10 - .../googlejavaformat-in/B65214682.java | 17 - .../googlejavaformat-in/B72507902.java | 6 - .../baseline/googlejavaformat-in/C.java | 81 -- .../googlejavaformat-in/CL240367479.java | 6 - .../baseline/googlejavaformat-in/D.java | 20 - .../baseline/googlejavaformat-in/E.java | 87 -- .../googlejavaformat-in/EnumAnnotation.java | 5 - .../baseline/googlejavaformat-in/F.java | 61 -- .../baseline/googlejavaformat-in/Fields.java | 7 - .../baseline/googlejavaformat-in/ForMany.java | 6 - .../baseline/googlejavaformat-in/I.java | 77 -- .../baseline/googlejavaformat-in/I1.java | 49 - .../baseline/googlejavaformat-in/I12.java | 19 - .../baseline/googlejavaformat-in/I13.java | 10 - .../baseline/googlejavaformat-in/I202.java | 6 - .../baseline/googlejavaformat-in/I365.java | 10 - .../baseline/googlejavaformat-in/L.java | 11 - .../googlejavaformat-in/LocalAnnotations.java | 7 - .../baseline/googlejavaformat-in/M.java | 399 -------- .../baseline/googlejavaformat-in/M1.java | 22 - .../baseline/googlejavaformat-in/M2.java | 2 - .../baseline/googlejavaformat-in/M3.java | 6 - .../googlejavaformat-in/MarkerAnnotation.java | 4 - .../googlejavaformat-in/Multivariables.java | 17 - .../baseline/googlejavaformat-in/N.java | 13 - .../googlejavaformat-in/NormalAnnotation.java | 56 -- .../baseline/googlejavaformat-in/P.java | 21 - .../baseline/googlejavaformat-in/Pair.java | 12 - .../googlejavaformat-in/PairedArguments.java | 40 - .../baseline/googlejavaformat-in/Q.java | 15 - .../baseline/googlejavaformat-in/R.java | 13 - .../baseline/googlejavaformat-in/S.java | 46 - .../SingleMemberAnnotation.java | 5 - .../googlejavaformat-in/SuperQualifier.java | 18 - .../baseline/googlejavaformat-in/T.java | 19 - .../googlejavaformat-in/TryWithResources.java | 21 - .../baseline/googlejavaformat-in/U.java | 47 - .../googlejavaformat-in/UnaryMinus.java | 5 - .../googlejavaformat-in/Unformatted.java | 43 - .../googlejavaformat-in/Unformatted2.java | 16 - .../googlejavaformat-in/Unformatted3.java | 9 - .../baseline/googlejavaformat-in/V.java | 13 - .../baseline/googlejavaformat-in/W.java | 9 - .../googlejavaformat-in/WildBound.java | 5 - .../baseline/googlejavaformat-in/i100.java | 7 - .../baseline/googlejavaformat-in/i101.java | 1 - .../baseline/googlejavaformat-in/i155.java | 5 - .../baseline/googlejavaformat-in/i176.java | 6 - .../baseline/googlejavaformat-in/i221.java | 8 - .../baseline/googlejavaformat-in/i281.java | 8 - .../baseline/googlejavaformat-in/i282.java | 11 - .../baseline/googlejavaformat-in/i55.java | 13 - .../baseline/googlejavaformat-in/i59.java | 10 - .../baseline/googlejavaformat-in/i60.java | 9 - .../baseline/googlejavaformat-in/i65.java | 5 - .../baseline/googlejavaformat-in/i66.java | 7 - .../baseline/googlejavaformat-in/i71.java | 16 - .../baseline/googlejavaformat-in/i95.java | 3 - .../baseline/googlejavaformat-in/i98.java | 8 - 336 files changed, 1 insertion(+), 11125 deletions(-) rename gradle-baseline-java/src/test/resources/com/palantir/baseline/{formatter-expected => eclipse-formatter-expected}/BlankLines.java (100%) rename gradle-baseline-java/src/test/resources/com/palantir/baseline/{formatter-expected => eclipse-formatter-expected}/Correct.java (100%) rename gradle-baseline-java/src/test/resources/com/palantir/baseline/{formatter-expected => eclipse-formatter-expected}/Invalid.java (100%) rename gradle-baseline-java/src/test/resources/com/palantir/baseline/{formatter-expected => eclipse-formatter-expected}/Multicatch.java (100%) rename gradle-baseline-java/src/test/resources/com/palantir/baseline/{formatter-expected => eclipse-formatter-expected}/MultilineStringConstant.java (100%) delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/A.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B112853497.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B124394008.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B126411718.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B18479811.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950219.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950468.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950815.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19996259.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128174.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128588.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128760.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128921.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20341001.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20524742.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20529113.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20531711.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20535125.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20567842.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20569245.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20577626.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20578077.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20580212.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20701054.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20844369.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20915776.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21031147.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21105569.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21185365.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21192435.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21278211.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21283374.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21305044.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21327412.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21329312.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21331232.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21465217.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21465477.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21585653.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21608216.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21647014.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21954779.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22166687.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22169269.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22424362.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22469536.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22488373.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22610221.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22815364.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22848286.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22873322.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22913048.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23349153.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23514513.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23626035.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23708487.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23749160.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23804934.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24202287.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24494875.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24543625.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24702438.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24862959.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24909927.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24988078.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25372815.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25749989.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25787055.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25811323.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26159561.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26207047.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26275739.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26293162.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26694550.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26884608.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26928842.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26952926.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27078833.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27246427.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27602933.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28066276.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28774859.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28786284.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28788559.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29368546.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29618429.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29705613.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30153869.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30223986.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30764810.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30789352.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32114928.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32284705.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32397217.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32729600.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B33358723.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B35644813.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B35797074.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B36194204.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B37629610.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B37895033.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38203081.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38241237.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38352414.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B64493529.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B65214682.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B72507902.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/C.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/CL240367479.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/D.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/E.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/EnumAnnotation.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/F.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Fields.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/ForMany.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I1.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I12.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I13.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I202.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I365.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/L.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/LocalAnnotations.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M1.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M2.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M3.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/MarkerAnnotation.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Multivariables.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/N.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/NormalAnnotation.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/P.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Pair.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/PairedArguments.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Q.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/R.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/S.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/SingleMemberAnnotation.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/SuperQualifier.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/T.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/TryWithResources.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/U.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/UnaryMinus.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted2.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted3.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/V.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/W.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/WildBound.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i100.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i101.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i155.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i176.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i221.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i281.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i282.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i55.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i59.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i60.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i65.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i66.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i71.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i95.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i98.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/A.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B112853497.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B124394008.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B126411718.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B18479811.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950219.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950468.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950815.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19996259.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128174.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128588.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128760.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128921.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20341001.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20524742.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20529113.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20531711.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20535125.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20567842.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20569245.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20577626.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20578077.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20580212.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20701054.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20844369.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20915776.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21031147.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21105569.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21185365.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21192435.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21278211.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21283374.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21305044.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21327412.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21329312.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21331232.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21465217.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21465477.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21585653.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21608216.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21647014.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21954779.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22166687.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22169269.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22424362.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22469536.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22488373.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22610221.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22815364.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22848286.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22873322.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22913048.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23349153.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23514513.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23626035.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23708487.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23749160.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23804934.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24202287.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24494875.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24543625.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24702438.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24862959.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24909927.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24988078.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25372815.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25749989.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25787055.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25811323.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26159561.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26207047.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26275739.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26293162.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26694550.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26884608.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26928842.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26952926.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27078833.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27246427.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27602933.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28066276.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28774859.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28786284.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28788559.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29368546.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29618429.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29705613.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30153869.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30223986.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30764810.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30789352.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32114928.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32284705.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32397217.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32729600.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B33358723.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B35644813.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B35797074.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B36194204.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B37629610.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B37895033.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38203081.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38241237.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38352414.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B64493529.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B65214682.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B72507902.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/C.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/CL240367479.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/D.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/E.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/EnumAnnotation.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/F.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Fields.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/ForMany.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I1.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I12.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I13.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I202.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I365.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/L.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/LocalAnnotations.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M1.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M2.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M3.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/MarkerAnnotation.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Multivariables.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/N.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/NormalAnnotation.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/P.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Pair.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/PairedArguments.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Q.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/R.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/S.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/SingleMemberAnnotation.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/SuperQualifier.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/T.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/TryWithResources.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/U.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/UnaryMinus.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted2.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted3.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/V.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/W.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/WildBound.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i100.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i101.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i155.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i176.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i221.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i281.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i282.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i55.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i59.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i60.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i65.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i66.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i71.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i95.java delete mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i98.java diff --git a/gradle-baseline-java/src/test/groovy/com/palantir/baseline/BaselineFormatIntegrationTest.groovy b/gradle-baseline-java/src/test/groovy/com/palantir/baseline/BaselineFormatIntegrationTest.groovy index 48735036b..61f237e80 100644 --- a/gradle-baseline-java/src/test/groovy/com/palantir/baseline/BaselineFormatIntegrationTest.groovy +++ b/gradle-baseline-java/src/test/groovy/com/palantir/baseline/BaselineFormatIntegrationTest.groovy @@ -87,7 +87,7 @@ class BaselineFormatIntegrationTest extends AbstractPluginTest { def 'eclipse formatter integration test'() { def inputDir = new File("src/test/resources/com/palantir/baseline/formatter-in") - def expectedDir = new File("src/test/resources/com/palantir/baseline/formatter-expected") + def expectedDir = new File("src/test/resources/com/palantir/baseline/eclipse-formatter-expected") def testedDir = new File(projectDir, "src/main/java") FileUtils.copyDirectory(inputDir, testedDir) @@ -133,36 +133,6 @@ class BaselineFormatIntegrationTest extends AbstractPluginTest { assertThatFilesAreTheSame(testedDir, expectedDir) } - def 'eclipse formatter googlejavaformat test cases'() { - def excludedFiles = [ - "B19996259.java", // this causes an OOM - ] - - def inputDir = new File("src/test/resources/com/palantir/baseline/googlejavaformat-in") - def expectedDir = new File("src/test/resources/com/palantir/baseline/googlejavaformat-expected") - - def testedDir = new File(projectDir, "src/main/java") - FileUtils.copyDirectory(inputDir, testedDir, new NotFileFilter(new NameFileFilter(excludedFiles))) - - buildFile << """ - plugins { - id 'java' - id 'com.palantir.baseline-format' - } - """.stripIndent() - file('gradle.properties') << """ - com.palantir.baseline-format.eclipse=true - """.stripIndent() - - when: - BuildResult result = with(':format').build() - result.task(":format").outcome == TaskOutcome.SUCCESS - result.task(":spotlessApply").outcome == TaskOutcome.SUCCESS - - then: - assertThatFilesAreTheSame(testedDir, expectedDir) - } - private static void assertThatFilesAreTheSame(File outputDir, File expectedDir) throws IOException { Collection files = listJavaFilesRecursively(outputDir) diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/BlankLines.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/BlankLines.java similarity index 100% rename from gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/BlankLines.java rename to gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/BlankLines.java diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/Correct.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/Correct.java similarity index 100% rename from gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/Correct.java rename to gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/Correct.java diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/Invalid.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/Invalid.java similarity index 100% rename from gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/Invalid.java rename to gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/Invalid.java diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/Multicatch.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/Multicatch.java similarity index 100% rename from gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/Multicatch.java rename to gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/Multicatch.java diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/MultilineStringConstant.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/MultilineStringConstant.java similarity index 100% rename from gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-expected/MultilineStringConstant.java rename to gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/MultilineStringConstant.java diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/A.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/A.java deleted file mode 100644 index cc9b4a53d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/A.java +++ /dev/null @@ -1,458 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for AbstractTypeDeclarations, AnnotationTypeDeclarations, AnnotationTypeMemberDeclarations, - * Annotations, AnonymousClassDeclarations, ArrayAccesses, ArrayCreations, ArrayInitializers, - * ArrayTypes, AssertStatements, and Assignments. - */ -class A { - public @interface X { - int x(); - - int y() default 1 + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1; - } - - @X(x = 1) - private @interface Y {} - - // TODO(jdd): Add annotation declaration with empty body. - - @X(x = 1) - @Y - protected @interface Z {} - - // TODO(jdd): Include type annotations once we can include a higher language level. - - int[] array1 = new int[5]; - int[] array2 = - new int[] { - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31 - }; - int[] array3 = { - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31 - }; - int[][] array4 = { - {0, 1}, - {2, 3}, - {4, 5}, - {6, 7}, - {8, 9}, - {10, 11}, - {12, 13}, - {14, 15}, - {16, 17}, - {18, 19}, - {20, 21}, - {22, 23} - }; - int[][][] arrayWithLongName = - new int[0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0][0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0][]; - - A a1 = - new A() { - int x = - array1[0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0] - + array2[0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0] - + array3[0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0] - + array4[0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0][0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0]; - }; - - void f(int something) { - assert 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 == 1 + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1; - assert 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 == 1 + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 : "that was certainly unexpected!"; - arrayWithLongName[0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0] = - arrayWithLongName[0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0]; - something = - 2 + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2 - + 2; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B.java deleted file mode 100644 index cb9c43d9f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for Blocks, BodyDeclarations, BooleanLiterals, and BreakStatements. */ -class B { - int x; - private int y; - public int z; - - void f() { - LABEL: while (true != false) { - if (false == true) - break; - if (false == false) - break LABEL; - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B112853497.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B112853497.java deleted file mode 100644 index 7ad810c98..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B112853497.java +++ /dev/null @@ -1,12 +0,0 @@ -class B112853497 { - { - XxxxxxxxxxXxxx xxxXxxxx = - xxxXxxxx - .xxxxXxXxxxx(xxxxXxxx, XXXXXX_XXXX_XXXXXXXX_XX_XXXXXXXX) - .toBuilder() - .xxxXxxxxXxxxXx(xxxxxXx.xxxXxxxxXxxxXx()) - .xxxXxxxxXxxxXx(xxxxxXx.xxxXxxxxXxxxXx()) - .xxxXxxxxx(xxxxxx.xxxXxxxxxXxxx()) - .xxxxx(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B124394008.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B124394008.java deleted file mode 100644 index ddb437975..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B124394008.java +++ /dev/null @@ -1,9 +0,0 @@ -class B124394008 { - { - LocalReviewProto.Builder newReview = - readProfileResponse.flatMap(authorExtractor::extract) - .map(luReviewsExtractor::toLocalReviewProto) - .orElse(LocalReviewProto.getDefaultInstance()) - .toBuilder(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B126411718.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B126411718.java deleted file mode 100644 index 0c934282b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B126411718.java +++ /dev/null @@ -1,10 +0,0 @@ -class B126411718 { - { - logger - .atDebug() - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B18479811.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B18479811.java deleted file mode 100644 index 5f9e90ad5..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B18479811.java +++ /dev/null @@ -1,38 +0,0 @@ -class Test { - public void testPrimitiveFields() { - ConverterVerifier.verifyFieldsAreAnnotatedWithToPojo( - Contact.class, - DomainContact.class, - new ImmutableList.Builder().add( - "address1", - "address2", - "assistant", - "assistantPhone", - "birthDate", - "committed", - "createdBy", - "createdDate", - "deleted", - "department", - "description", - "domainObjId", - "email1", - "email2", - "emailOptOut", - "firstName", - "lastName", - "leadSource", - "level", - "modifiedBy", - "modifiedDate", - "phoneFax", - "phoneHome", - "phoneMobile", - "phoneOther", - "phoneWork", - "salutation", - "title" - - ).build()); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950219.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950219.java deleted file mode 100644 index 04d2f049b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950219.java +++ /dev/null @@ -1,9 +0,0 @@ -class B19950219 { - @Override - String normalizeWord(String word) { - return Ascii.toLowerCase(word); - } - - @Override - String convert(CaseFormat format, String s) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950468.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950468.java deleted file mode 100644 index 334c34e3a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950468.java +++ /dev/null @@ -1,5 +0,0 @@ -class B19950468 { - int code() {} - - // comment -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950815.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950815.java deleted file mode 100644 index af7c123f5..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19950815.java +++ /dev/null @@ -1,17 +0,0 @@ -class B19950815 { - void m() { - checkArgument( - truncationLength >= 0, - "maxLength (%s) must be >= length of the truncation indicator (%s)", - maxLength, - truncationIndicator.length()); - } - - private String finishCollapseFrom( - CharSequence sequence, - int start, - int end, - char replacement, - StringBuilder builder, - boolean inMatchingGroup) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19996259.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19996259.java deleted file mode 100644 index f0584c23a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B19996259.java +++ /dev/null @@ -1,16 +0,0 @@ -class B19996259 { - void g( // line comment - int x) {} - - void // - g // - ( // - int // - x // - , // - int // - y // - ) // - { // - } // -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128174.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128174.java deleted file mode 100644 index 165345a0b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128174.java +++ /dev/null @@ -1,14 +0,0 @@ -class B20128174 { - - enum Suit { - DIAMONDS, HEARTS, CLUBS, SPADES - }; - - enum Suit { - DIAMONDS, HEARTS, CLUBS, SPADES; - }; - - enum Suit { - DIAMONDS, HEARTS, CLUBS, SPADES,; - }; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128588.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128588.java deleted file mode 100644 index 8bbaec460..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128588.java +++ /dev/null @@ -1,157 +0,0 @@ -@Foo -@Bar -@Baz -package edu.oswego.cs.dl.util.concurrent; - -@Foo -@Bar -@Baz -class Test { - - @Foo - @Bar - @Baz - Object f() {} - - @Foo - @Bar - @Baz - public Object f() {} - - @Foo - @Bar - @Baz - void f() {} - - @Foo - @Bar - @Baz - static Object field; - - static @Foo @Bar @Baz Object field; - - @Foo - @Bar - @Baz - Object field; - - @Foo(xs = 42) - @Bar - @Baz - Object field; - - { - @Foo - @Bar - @Baz - final Object var; - - final @Foo @Bar @Baz Object var; - - @Foo - @Bar - @Baz - Object var; - - @Foo(xs = 42) - @Bar - @Baz - Object var; - } - - void f( - @Foo @Bar @Baz final Object var, - final @Foo @Bar @Baz Object var, - @Foo @Bar @Baz Object var, - @Foo(xs = 42) @Bar @Baz Object var) {} - - <@TA T extends @TA Object> @TA T f(List a, List b) throws @TA Exception {} - - @FooXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - @BarXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - @BazXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - int x; - - @FooXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - @BarXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - @BazXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - int x; - - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - Object var; - - @Deprecated - @Deprecated - @Deprecated - @Deprecated - @Deprecated - Object var; - - @Deprecated(x = 42) - @Deprecated - @Deprecated - @Deprecated - @Deprecated - Object var; - - @Deprecated( - x = 42, - y = { - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - }) - Object var; - - @Deprecated( - y = { - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - }) - Object var; -} - - -@Frozzle({ - @Mirror(in = edu.oswego.cs.dl.util.concurrent.F.class, methods = "foo"), - @Mirror(in = edu.oswego.cs.dl.util.concurrent.F.class, methods = "foo"), - @Mirror(in = edu.oswego.cs.dl.util.concurrent.F.class, enable = false, methods = { - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - "foo", - }), - @Mirror( - in = edu.oswego.cs.dl.util.concurrent.F.class, - enable = false, - methods = {"foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo"}), - @Mirror(in = edu.oswego.cs.dl.util.concurrent.F.class, methods = "foo"), -}) -class C {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128760.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128760.java deleted file mode 100644 index 7983e1f4c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128760.java +++ /dev/null @@ -1,105 +0,0 @@ -class B20128760 { - void f() { - x = - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - XxxxxxxxxXxx.xxxxxxx() - .xxx(XxxxxxxxxXxxXxxx.Xxxxx.XXXXX, "Xxxxx xxxxxxxxx xxxxx") - .xxx( - XxxxxxxxxXxxXxxx.Xxxxx.XXXXXxXXXXX, - XxxxXxxxxxxxxx.xxxXxxxxxxxxXxxxxXxxxxXxXxxxxx(Xxxxxxxxxx.xxxXxxxXxxxx(x))) - .xxxxx(); - - xxxxxxXxxx( - xxx - .xxxXxXxxxxxxx( - new XxxxxxxxxXxxxxxxx.Xxxxxxx() - .xxxxXxxxXxx( - Xxxxx.xxxXxxxxXxxx( - new XxxxXx( - xxxxxxxxx1.xxxXxxxXx().xxxXxxxx() - + xxxxxxxxx2.xxxXxxxXx().xxxXxxxx()))) - .xxxxx()) - .xxxXxxxxxx()) - .xxxxxxxxXxxxxxx(); - - XXxxxx xxxxxxxxxXxxXxxXxXxxxxxxxXx = - XX - .xxxxXxxXxxx2( - "XxxxXxxxxxxxXxxxXxxxXxxxxxxxXxxxXxxXxxxxxxXxxxxxxxx", - xxxxxxxxXxxxXxXxxxxxxxXx, - xxxxxxxxXxxxXxxxxXxxxXxXxxxxxxxXx) - .xxxxxxxxXx( - "XxxxxxxxXxxxxxxxxXxx", - xxxxxxxxXxxxxxxxxXxxXx, - XX.xxxxxXx(XX.xxxxx(), XX.xxxxxx(XxxxxxxXxxxxxxxxxxXxxxxxxxx.xxxxx))); - - xxXxxxxxxxXxxxXxxx = - (XxxxXxxx) xxxxxxxxXxxxxxxxxx.xxx().xxxxxXxxxxxx - .xxxXxxxxxxx(xxxxxxxxXxxxxxxxxx.xxx().xxxxXxxxx.xxxXxxxxxxXxxx() - 1) - .xxxXxxx() - .xxxxXxxxXxXx(X.xx.xxxxxxxxxxxxxxxxxxxxxxxxxxx); - - xxxxxxXxxx( - xxxxxxxxxx - .xxxXxxxXxxxxXxxxxxxxxxxXxxxXxxxXxxxxXxxx(XXXxXXXXxXX, XXXXXXxXXXxXXXXxXX, XXXXXxXX) - .xxxxxxxxxxxXxxxXxxxXxxxxx()) - .xxxxxxxxXxxxxxx( - xxxxXxxxxxxxxxxXxxxXxxxXxxxx(xxxx1Xxxx, Xxxxx.XXxXXX), - xxxxXxxxxxxxxxxXxxxXxxxXxxxx(xxxx2Xxxx, Xxxxx.XXxXXX)); - - xxxx( - xxxx( - xxxx( - xxxx( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)))); - - assertThat( - main - .format("--offset", "0", "--length", String.valueOf(input.length()), path.toString())) - .isEqualTo(0); - } - - private static class GenerateDashboardRowFn - extends - XX.XxXx< - Xxxx< - Xxxx, - Xxxxx2.XxxXxxxXxxxxxxxxxx>>, - Xxxx> {} - - public class XxxxxxxXxxxxxxxXxxxXxxxxXxxxxxx - extends - XxxxxxxXxxxxxxxXxxxXxxxxXxxxxxx< - XxxxxxxXxxxxxxxXxxxXxxxxXxxxxxx, XxxxXxxxxxxXxxxxxxxx>> {} - - public class Foo - extends - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} - - public class Foo - extends - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - implements - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} - - public class Foo - extends - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - implements - Xxxxxxxxxxxxx, - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} - - { - Stream itemIdsStream = stream(members) - .flatMap(m -> m.getFieldValues() - .entrySet() - .stream() - .filter(fv -> itemLinkFieldIds.contains(fv.getKey())) - .flatMap(fv -> FieldDTO.deserializeStringToListOfStrings(fv.getValue()) - .stream() - .map(id -> new ItemKey(fieldsById.get(fv.getKey()).getItemTypeId(), id)))); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128921.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128921.java deleted file mode 100644 index 79390fae9..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20128921.java +++ /dev/null @@ -1,10 +0,0 @@ -public class B20128921 { - - void m(Iterable ax) { - - for (T a : ax) { - - System.err.println(x); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20341001.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20341001.java deleted file mode 100644 index 3bc6069ec..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20341001.java +++ /dev/null @@ -1,694 +0,0 @@ -public class B20341001 { - int[] xs = { - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - }; - int[] xs = { - Foo.CONSTxx, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - }; - int[] xs = { - Foo_CONST, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - }; - int[] xs = { - "foo", - "0123456", - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - }; - int[] xs = { - "foo", - "01234567", - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - }; - { - return ImmutableList.of( - item1, - item2, - item3, - item4, - item5, - item6, - item7, - item8, - item9, - item10, - item11, - item12, - item13); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20524742.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20524742.java deleted file mode 100644 index 936f13d67..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20524742.java +++ /dev/null @@ -1,5 +0,0 @@ -class Test { - { - int x; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20529113.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20529113.java deleted file mode 100644 index 8bb3d0ca0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20529113.java +++ /dev/null @@ -1,10 +0,0 @@ -@BugPattern(category = GUAVA, severity = NOT_A_PROBLEM, maturity = EXPERIMENTAL) -@BugPattern( - name = "AsyncFunctionReturnsImmediate", summary = SIMPLIFY, - category = GUAVA, severity = NOT_A_PROBLEM, maturity = EXPERIMENTAL) -@BugPattern( - name = "AsyncFunctionReturnsImmediate", summary = SIMPLIFY, - explanation = "If an AsyncFunction always returns immediateFuture() and never throws, it can " - + "be replaced with a Function.", - category = GUAVA, severity = NOT_A_PROBLEM, maturity = EXPERIMENTAL) -class Test {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20531711.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20531711.java deleted file mode 100644 index 26253cf55..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20531711.java +++ /dev/null @@ -1,16 +0,0 @@ -class B20531711 { - void m() { - when(mLoginHelper.getAllAccounts()).thenReturn( - new Account[] { - new Account("test1", "test1"), - new Account("test2", "test2"), - }); - - when(mLoginHelper.getAllAccounts()).thenReturn( - new Account[] { - new Account("test1", "test1"), - new Account("test2", "test2"), - // asd - }); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20535125.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20535125.java deleted file mode 100644 index 7a1c8783b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20535125.java +++ /dev/null @@ -1,146 +0,0 @@ -package com.google.googlejavaformat.java.test; - -class Test { - void m() { - if (!metadata.ignoreOutputTransformations() - && Producers.isListenableFutureMapKey(outputKey)) { - ImmutableList> nodes = createMapNodes((ProducerNode) node); - checkCollectionNodesAgainstWhitelist(nodes, whitelist); - return nodes; - - } else if (!metadata.ignoreOutputTransformations() - && Producers.isListenableFutureListKey(outputKey)) { - ImmutableList> nodes = createListNodes((ProducerNode) node); - return nodes; - } - - Set shorts = new HashSet<>(); - for (short i = 0; i < 99; ++i) { - - shorts.add(i); - shorts.remove(i - 1); - - } - - short i = 0; - do { - - shorts.add(i); - shorts.remove(i - 1); - i++; - - } while (i < 99); - - if (true) { - - System.err.println("Hi"); - - } - - if (true) { - - System.err.println("Hi"); - - } else { - - System.err.println("Hi"); - - } - - if (true) { - - System.err.println("Hi"); - - } else if (true) { - - System.err.println("Hi"); - - } else { - - System.err.println("Hi"); - - } - - try { - - throw new Exception(); - - } catch (Exception e) { - - System.err.println("Hi"); - - } - - try { - - throw new Exception(); - - } finally { - - System.err.println("Hi"); - - } - - try { - - throw new Exception(); - - } catch (Exception e) { - - System.err.println("Hi"); - - } finally { - - System.err.println("Hi"); - - } - - try { - - throw new Exception(); - - } catch (Exception e) { - - System.err.println("Hi"); - - } catch (Exception e) { - - System.err.println("Hi"); - - } finally { - - System.err.println("Hi"); - - } - - try (Lock l = lock.lock()) {} - - try (Lock l = lock.lock()) {} finally {} - - for (;;) {} - - while (true) {} - - do {} while (true); - - if (true) {} - - if (true) {} else if (true) {} - - if (true) {} else if (true) {} else if (true) {} - - if (true) {} else if (true) {} else {} - - if (true) {} else if (true) {} else if (true) {} else {} - - try {} catch (Exception e) {} catch (Exception e) {} finally {} - - try {} catch (Exception e) {} finally {} - - try {} catch (Exception e) {} catch (Exception e) {} - - try {} catch (Exception e) {} - - } - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20567842.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20567842.java deleted file mode 100644 index 082acda62..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20567842.java +++ /dev/null @@ -1,45 +0,0 @@ -public class B20567842 { - // don't try to wrap the rhs as '{1, 2, 3}', go to block-like initializer style: - int[] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = {1, 2, 3}; - - // force block style, but not one-per-line for trailing ',': - int[] x = {a.b, true ? 1 : 2, CONST,}; - - // don't format one-per-line here: - int[] x = {1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1}; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20569245.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20569245.java deleted file mode 100644 index 134f33a3b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20569245.java +++ /dev/null @@ -1,43 +0,0 @@ -class B20569245 { - void m() { - if (true) - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else if (true) - System.err.println("asd"); - else - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else if (true) - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else - System.err.println("asd"); - - if (true) - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else if (true) - System.err.println("asd"); - else - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else if (true) - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else - System.err.println("asd"); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20577626.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20577626.java deleted file mode 100644 index 4d6f67741..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20577626.java +++ /dev/null @@ -1,16 +0,0 @@ -class B20577626 { - private @Mock GsaConfigFlags mGsaConfig; - - @Foo - @Bar - private @Mock GsaConfigFlags mGsaConfig; - - @Foo - abstract @Bar - void m() {} - - @Foo - @Baz - abstract @Bar - void m() {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20578077.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20578077.java deleted file mode 100644 index c738ea8c6..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20578077.java +++ /dev/null @@ -1,16 +0,0 @@ -class B20578077 { - { - new IteratorTester( - 4, - MODIFIABLE, - newArrayList(1, 2), - IteratorTester.KnownOrder.KNOWN_ORDER) { - @Override - protected Iterator newTargetIterator() { - Iterator iterator = Lists.newArrayList(1, 2).iterator(); - return new IteratorWithSunJavaBug6529795(iterator); - } - } - .test(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20580212.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20580212.java deleted file mode 100644 index 340e05b22..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20580212.java +++ /dev/null @@ -1,15 +0,0 @@ -class B20580212 { - void m() { - GroupExpansionReply mockIsgReply = - buildRecipientListSubGroupReply( - RECIPIENT1, - alternatives /* isgExpansions */, - alternativesDeltas /* isgExpansionsScoreDeltas */, - false /* withRecipient */, - 0 /* recipientScoreDelta */); - - try {} catch (IllegalStateException e) { /* expected */ } - } - - static class ThrowsAtEndException extends RuntimeException { /* nothing */ } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20701054.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20701054.java deleted file mode 100644 index 90081bf85..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20701054.java +++ /dev/null @@ -1,183 +0,0 @@ -class B20701054 { - void m() { - ImmutableList x = ImmutableList.builder().add(1).build(); - OptionalBinder.newOptionalBinder(binder(), InputWhitelist.class) - .setBinding() - .to( - AllInputWhitelist.class); - - Foo z = Foo.INSTANCE.field; - Foo z = Foo.INSTANCE.field.field; - Foo z = Foo.INSTANCE.field.field.field; - Foo z = Foo.INSTANCE.field.field.field.field; - Foo z = Foo.INSTANCE.field.field.field.field.field; - - ImmutableList x = ImmutableList.INSTANCE.add(1).build(); - ImmutableList x = ImmutableList.INSTANCE.add(1).add(2).build(); - ImmutableList x = ImmutableList.INSTANCE.add(1).add(2).add(3).build(); - ImmutableList x = ImmutableList.INSTANCE.add(1).add(2).add(3).add(4).build(); - - ImmutableList x = ImmutableList.builder().add(1).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).add(3).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).add(3).add(4).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).add(3).add(4).add(5).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).add(3).add(4).add(5).add(6).build(); - - ImmutableList x = - new ImmutableList.Builder<>() - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .build(); - - ImmutableList x = - ImmutableList.new Builder<>() - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .build(); - - System.err.println( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - Class.my.contrived.example.function( - veryLongArgumentxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - PTable> latestResults = - FJ.joinOneShot2(accountSummaryProvider.get(), results) - .parallelDo( - "extractPageSpeedUrls", - new ExtractPageSpeedUrlsFn(false)); - - PTable adImpressionsByAccount = - impressionExtractor.getImpressionBreakdownByAccountId() - .parallelDo( - "rekeyAdImpressionsByAccountId", - new ExtractTotalImpressionsFn()); - - PTable crawlerErrorsByCode = - crawlReportSource.read("readCrawlReportTable") - .parallelDo( - "reKeyErrorsByPropertyCode", - new RekeyErrorsByPropertyCodeFn()); - - if (ImmutableList.builder().add(1).add(2).add(3)) {} - - if (ImmutableList.builder() - .add(1) - .add(2) - .add(3) - .add(4)) {} - - if (value.fst.name.toString().equals("value")) {} - - analysis().analyze(compilationUnit, context, configuration, new DescriptionListener() { - @Override - public void onDescribed(Description description) { - listener.onDescribed(description.filterFixes(new Predicate() { - @Override - public boolean apply(Fix fix) { - return compiles(fix, (JCCompilationUnit) compilationUnit, context); - } - })); - } - }); - - (test ? xxx : yyy).zzz(xxx); - - (test ? xxx : yyy) - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - (test - ? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - : yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy) - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - zzzzzzzzzzzzzzzzzzzz.zzzzzzzzzzzzzzzzzzzzzzzzzzz.zzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field - .method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - (test - ? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - : yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy).field.field.field.field.field.field.field.field.field.field.field.field.field - .method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - (test - ? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - : yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy).field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field - .method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - field.field.field.field.field.field.method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - field.field.field.field.field.field.method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx).yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - .yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy(); - - edu.oswego.cs.dl.util.concurrent.misc.ImmutableList.builder( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz); - - edu.oswego.cs.dl.util.concurrent.misc.zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.ImmutableList - .builder( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz); - - int u = - edu.oswego.cs.dl.util.concurrent.misc.zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.ImmutableList - .builder( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz).zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz; - - for (String configured : errorProneOptions().getSeverityMap().keySet()) {} - - return fffffffffff( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - return fffffffffff( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - .fffffffffffff( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20844369.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20844369.java deleted file mode 100644 index 8838d23b8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20844369.java +++ /dev/null @@ -1,31 +0,0 @@ -public class B20844369 { - private static final String ID_PATTERN = - // TODO(daw): add min/max lengths for the numbers here, e.g. android ID - "(?:(?\\d+)\\+)?" // optional Android ID - + "(?\\d+)" // type - + ":" - + "(?\\d+)" // timestamp - + "(?%" // begin optional subtype - + "(?:(?\\d+)#)?" // subtype's optional user ID, followed by a hash - + "(?[0-9a-fA-F]{8})" // subtype's category hash - + "(?[0-9a-fA-F]{8})" // subtype's token hash - + ")?"; // end optional subtype - - int x = //foo - 42 + //bar - 1; - - int x = - //foo - 42 + //bar - 1; - - int x = /*foo*/ - 42 + //bar - 1; - - int x = - /*foo*/ - 42 + //bar - 1; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20915776.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20915776.java deleted file mode 100644 index f1cfdc6e1..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B20915776.java +++ /dev/null @@ -1,9 +0,0 @@ -class B20915776 { - @Inject - void ChunkAnalysis( - // TODO(user) ... - @Parent DatasetSource supporters, - @Child DatasetSource children, - @Parent Provider parentSupportsDecider, - @Child Provider childSupportsDecider) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21031147.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21031147.java deleted file mode 100644 index 8d2ff50e4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21031147.java +++ /dev/null @@ -1,8 +0,0 @@ -public class B21031147 { - { - return new StringBuilder(maxLength) - .append(seq, 0, truncationLength) - .append(truncationIndicator) - .toString(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21105569.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21105569.java deleted file mode 100644 index f7ca4ad6c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21105569.java +++ /dev/null @@ -1,11 +0,0 @@ -class B21105569 { - void f() { - // asd - } - - void g() { - /* asd */ - } - - void h() { /* asd */ } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21185365.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21185365.java deleted file mode 100644 index 21e5fcbcd..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21185365.java +++ /dev/null @@ -1,5 +0,0 @@ -class B21185365 { - { - for (int i = 0; i < s.length();) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21192435.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21192435.java deleted file mode 100644 index d7fd41439..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21192435.java +++ /dev/null @@ -1,15 +0,0 @@ -package testdata.output; - -public class B21192435 { - - static class Test extends Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx implements Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} - - static class Testxxxxxxxxx extends Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - implements Xxxxx {} - - static class Testxxxxxxxxx extends Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - implements Xxxxxxxxxxxxxxxx {} - - static class Test - extends Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx implements Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21278211.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21278211.java deleted file mode 100644 index 4c13c0673..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21278211.java +++ /dev/null @@ -1,23 +0,0 @@ -class B21278211 { - void m() { - return names.isEmpty() || names.size() == 1 && names.get(0).toString().isEmpty(); - - // use unified breaks for all chained dereferences - - x.f().g(); - x.fzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz() - .gzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz(); - - x.f().g().h(); - x - .f() - .g() - .hzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz(); - - x - .f() - .g() - .h() - .i(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21283374.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21283374.java deleted file mode 100644 index 68f6020de..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21283374.java +++ /dev/null @@ -1,68 +0,0 @@ -class B21283374 { - void f( - boolean flagA, - boolean flagB, - boolean flagC, - boolean flagD, - boolean flagE, - boolean flagF, - boolean flagG, - boolean flagH, - boolean flagI, - boolean flagJ, - boolean flagK) {} - - { - f( - /*flagA=*/Boolean.TRUE, - /*flagB=*/Boolean.FALSE, - /*flagC=*/Boolean.FALSE, - /*flagD=*/Boolean.FALSE, - /*flagE=*/Boolean.FALSE, - /*flagF=*/Boolean.FALSE, - /*flagG=*/Boolean.FALSE, - /*flagH=*/Boolean.FALSE, - /*flagI=*/Boolean.FALSE, - /*flagJ=*/Boolean.FALSE, - /*flagK=*/Boolean.FALSE); - - f( - /*flagA=*/ Boolean.TRUE, - /*flagB=*/ Boolean.FALSE, - /*flagC=*/ Boolean.FALSE, - /*flagD=*/ Boolean.FALSE, - /*flagE=*/ Boolean.FALSE, - /*flagF=*/ Boolean.FALSE, - /*flagG=*/ Boolean.FALSE, - /*flagH=*/ Boolean.FALSE, - /*flagI=*/ Boolean.FALSE, - /*flagJ=*/ Boolean.FALSE, - /*flagK=*/ Boolean.FALSE); - - assertThat(foo.barAndBaz(/*paramName=*/false, thingy)).isEqualTo(new Something("")); - assertThat(foo.barAndBaz( /*paramName=*/false, thingy)).isEqualTo(new Something("")); - assertThat(foo.barAndBaz(/*paramName=*/ false, thingy)).isEqualTo(new Something("")); - - f(/*paramName=*/ false); - - assertThat__________________________________________________________(/*paramName=*/ false, thingy); - assertThat__________________________________________________________( - /*paramName=*/ false, - thingy); - - f( - arg1, /* which arg is this attached to? */ - arg2, - arg3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - f( - /* paramName1 */ arg1, - /* paramName2 */ arg2, - arg3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - f( - arg1, /* paramName1 */ - arg2, /* paramName2 */ - arg3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21305044.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21305044.java deleted file mode 100644 index 668cb53f0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21305044.java +++ /dev/null @@ -1,40 +0,0 @@ -class B21305044 { - - class T<@Nullable X extends @Nullable Object, - @Nullable Y extends @Nullable Object, - @Nullable Z extends @Nullable Object> - extends Function<@Nullable X, @Nullable Y> - implements Predicate<@Nullable Z> { - public T(@Nullable T this, List<@Nullable X> xs) {} - - public T(@Nullable T B21305044.this, List<@Nullable X> xs) {} - - List<@Nullable ?> a; - List<@Nullable ? extends @Nullable Object> b; - List<@Nullable ? super @Nullable Object> c; - - List c; - } - - Function f = com.foo.bar.Baz::func; - Function g = new Baz()::func; - Function h = Baz::new; - Function i = - com.foo.bar.VeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongBaz::new; - - { - Function f = () -> moderatelyLongResult; - Function f = () -> breakableResult + breakableResult - + breakableResult - + breakableResult - + breakableResult - + breakableResult - + breakableResult - + breakableResult - + breakableResult; - Function f = () -> System.err.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); - Function f = - (someParam) -> System.err.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21327412.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21327412.java deleted file mode 100644 index 3776ef4d6..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21327412.java +++ /dev/null @@ -1,3 +0,0 @@ -class B21327412 { - int i = Data._ID; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21329312.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21329312.java deleted file mode 100644 index 5bc78e4d8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21329312.java +++ /dev/null @@ -1,7 +0,0 @@ -public class B21329312 { - boolean test() { - return wasEdited || didContactsChange - || medicalInfoManager.getTemporaryProfilePicture() != null - || inMemoryAccessMedicalProfileAboveKeyguard != originalAccessMedicalProfileAboveKeyguard; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21331232.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21331232.java deleted file mode 100644 index 63d22dd5e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21331232.java +++ /dev/null @@ -1,20 +0,0 @@ -class B21331232 { - private < - SF, S> - S - instantiate( - Class wrapperType, - Type t, - FailureStrategy fs, - SF factory, - Iterable data) {} - - public < - T, C extends Iterable> - IterableSubject, T, C> - that(@Nullable Iterable target) { - return IterableSubject.create(getFailureStrategy(), target); - } - - boolean mightContain(T object, Funnel funnels, int numHashFunctions, BitArray bits); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21465217.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21465217.java deleted file mode 100644 index 304ae6c2d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21465217.java +++ /dev/null @@ -1,11 +0,0 @@ -class B21465217 { - void m() { - try (JimfsOutputStream out2 = newOutputStream(false); - BufferedOutputStream bout = new BufferedOutputStream(out2); - OutputStreamWriter writer = new OutputStreamWriter(bout, UTF_8___________________________)) {} - - try (Writer sourceWriter = env.getFiler().createSourceFile(qualifiedNamezzzzzzzz).openWriter()) { - sourceWriter.append(fileContents); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21465477.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21465477.java deleted file mode 100644 index 4e442fc75..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21465477.java +++ /dev/null @@ -1,13 +0,0 @@ -class B21465477 { - - @Nullable - private final String simpleFieldName; - @Nullable - private final String shortFlagName; - private final String containerClassName; - private final String type; - private final String doc; - private final DocLevel docLevel; - @Nullable - private final String altName; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21585653.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21585653.java deleted file mode 100644 index 9f56def7a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21585653.java +++ /dev/null @@ -1,5 +0,0 @@ -class B21585653 { - { - try (X x = x;) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21608216.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21608216.java deleted file mode 100644 index a9b5689a5..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21608216.java +++ /dev/null @@ -1,113 +0,0 @@ -@PluginInfo(shortName = "chromesuggestions", - owner = "mathp", - demoLink = "unspecified", - modules = {BackendsModule.class, - CommonBackendsModule.class, - ChromeSuggestionsPlugin.ChromeSuggestionsModule.class}) -@Module(library = true, complete = false) -@Module(library = true, complete = false, injects = {ClassInfoTracker.class, JslayoutMetaProto.class}) -@Module( - library = true, - complete = false, - injects = { - ClassInfoTracker.class, - JslayoutMetaProto.class, - JslayoutMetaProto.class, - JslayoutMeta.class - }) -@Module( - library = true, - complete = false, - injects = { - ClassInfoTracker.class, - JslayoutMetaProto.class, - JslayoutMetaProto.class, - JslayoutMeta.class, - JslayoutMeta.class - }) -@Module(injects = {One.class, Two.class}, includes = {Three.class, Four.class}) -@Module( - library = true, - complete = false, - numbers = {1, 2, 3}) -@Module( - library = true, - complete = false, - numbers = { - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26 - }) -@Module( - library = true, - complete = false, - numbers = { - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30 - }) -@Module({ClassInfoTracker.class, JslayoutMetaProto.class, JslayoutMetaProto.class}) -@Module({ - ClassInfoTracker.class, - JslayoutMetaProto.class, - JslayoutMetaProto.class, - JslayoutMeta.class -}) -@Module({ - ClassInfoTracker.class, - JslayoutMetaProto.class, - JslayoutMetaProto.class, - JslayoutMeta.class, - JslayoutMeta.class -}) -class B21608216 {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21647014.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21647014.java deleted file mode 100644 index f93dda422..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21647014.java +++ /dev/null @@ -1,12 +0,0 @@ -package test; - -; - -; -class Test { - ; - public int x = 42;;;;; - { - int x = 1;;; - }; -}; diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21954779.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21954779.java deleted file mode 100644 index c55a2655a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B21954779.java +++ /dev/null @@ -1,49 +0,0 @@ -class B21954779 { - { - when(computeApi.findOrCreateVm( - VM_METADATA, - Optional.absent(), - AssignReservedIp.YES, - AttachDataDisk.YES)) - .thenReturn(OPERATION); - - fail(String.format( - " Experiment name %s is used multiple times in %s", - expName, - envName, - zzzzzzzzzzzz, - zzzzzzzzzzzz)); - - new Handler(Looper.getMainLooper()) - .post( - new Runnable() { - @Override - public void run() { - utils.showShortToast( - application.getString( - R.string.working_on_project_format, - Utils.getProjectDisplayName(selectedProject))); - } - }); - - (new Handler()) - .post( - new Runnable() { - @Override - public void run() { - showErrorAndSetDone(error); - } - }); - - getContext() - .getErrorReporter() - .log(new RuntimeException("Called layout with a non-zero segment index: " + segmentIndex)); - - bind( - new Key>() {}); - - // this isn't a feature; we'd prefer to keep `new Key...` as one unit - bind( - new Key>() {}).then(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22166687.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22166687.java deleted file mode 100644 index 065d5349a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22166687.java +++ /dev/null @@ -1,19 +0,0 @@ -class B22166687 { - public static class Wrapper - extends CrossComponentSetBindingsWrapper< - ExtensionWrapper> - implements CrossComponentSetBindingsWrapper< - ExtensionWrapper> { - void m() {} - } - - public static class Wrapper - extends CrossComponentSetBindingsWrapper< - ExtensionWrapper> - implements CrossComponentSetBindingsWrapper< - ExtensionWrapper>, - CrossComponentSetBindingsWrapper< - ExtensionWrapper> { - void m() {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22169269.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22169269.java deleted file mode 100644 index c4d574609..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22169269.java +++ /dev/null @@ -1,10 +0,0 @@ -class B22169269 { - { - try {} catch ( - ClassNotFoundException - | NoSuchMethodException - | InvocationTargetException - | IllegalAccessException e) {} - try {} catch (ClassNotFoundException | NoSuchMethodException e) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22424362.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22424362.java deleted file mode 100644 index 6403b663d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22424362.java +++ /dev/null @@ -1,8 +0,0 @@ -class Test { - { - int x = - 1 - - + 2; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22469536.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22469536.java deleted file mode 100644 index 4944ba245..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22469536.java +++ /dev/null @@ -1,6 +0,0 @@ -public class Test { - public static void foo() { - long x = -9223372036854775808L; - int y = -2147483648; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22488373.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22488373.java deleted file mode 100644 index 4c1f63079..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22488373.java +++ /dev/null @@ -1,11 +0,0 @@ -class B22488373 { - { - if (enumBindingKeys.contains(bindingKey) - && (bindingKey - .key() - .type() - .getKind() - .equals(DECLARED) - && !((DeclaredType) bindingKey.key().type()).getTypeArguments().isEmpty())) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22610221.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22610221.java deleted file mode 100644 index 3b460e200..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22610221.java +++ /dev/null @@ -1,11 +0,0 @@ -class B22610221 { - { - for (Map.Entry, Object> entry : FOO - .bar() - .bazs() - .thing(someThing) - .entrySet()) { - output.put(entry.getKey(), entry.getValue()); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22815364.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22815364.java deleted file mode 100644 index 3eceaa39f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22815364.java +++ /dev/null @@ -1,86 +0,0 @@ -class B22815364 { - @Xxx({ - "=0|=0", - "Xxx xxxx xx xxxxxxxx xx xxxxxxxxxxxxx.", - "=0|xxx", - "Xxx xxxx x xxxxxxxxxxxx.", - "xxx|=0", - "Xxx xxxx x xxxxxxx.", - "xxx|xxx", - "Xxx xxxx xxx xxxxxxx xxx xxx xxxxxxxxxxxx.", - "xxxxx|xxx", - "Xxx xxxx {0} xxxxxxxx xxx xxx xxxxxxxxxxxx.", - "xxx|xxxxx", - "Xxx xxxx xxx xxxxxxx xxx {1} xxxxxxxxxxxxx." - }) - int x; - - @Xxx({ - "a", - "b", - "c", - "d", - // - }) - int y; - - int[] xs = { - 1, - 2, - 3, - 1, - 2, - 3, - 1, - 2, - 3, - }; - - int[] xs = { - 1, - 2, - 3, - 1, - 2, - 3, - 1, - 2, - }; - - int[] xs = { - 1, - 2, - 1, - }; - - int[][] xs = { - {0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111}, - {0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111}, - {0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111}, - {0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111, - 0b111111111111111111}, - }; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22848286.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22848286.java deleted file mode 100644 index ea8533989..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22848286.java +++ /dev/null @@ -1,8 +0,0 @@ -class B22848286 { - - @FxxxSxxx(xxxx = "xxxxxx_xxxxxxx_xxxxxxxxx_xxxx", xxxx = "Xxxxx xxxx xx xxxxxx xxxxxxx xxxxxxxxx.") - int x; - - @FxxxGxxxxxxxx(xxxx = "Xxx xxxxxx xxxxxxxxy xxx xxx xxxxxxxxx, x.x. xxx xxxxxx xxxxxxxx xxxxxxxxy") - int y; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22873322.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22873322.java deleted file mode 100644 index e285177b2..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22873322.java +++ /dev/null @@ -1,14 +0,0 @@ -class B22873322 { - { - f(param -> veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongExpr(param)); - f((param1, param2) -> veryLooooooooooooooooooooooooooooooooooooooooooooooooongExpr(param1, param2)); - f((int param) -> veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongExpr(param)); - f((param1, param2) -> { - return expr(param1, param2); - }); - f((param1, param2) -> { - Object foo = expr(param1, param2); - return foo; - }); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22913048.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22913048.java deleted file mode 100644 index 4c192a6a0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B22913048.java +++ /dev/null @@ -1,9 +0,0 @@ -private class Yellow extends Red.Orange { - Yellow(Red red) { - red.super(); - } - - Class getClassB() { - return new TypeToken(getClass()) {}.getRawType(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23349153.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23349153.java deleted file mode 100644 index 1ab3091b6..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23349153.java +++ /dev/null @@ -1,29 +0,0 @@ -class B23349153 { - enum Foo { - A, B,; - } - { - System.err.println("Hello");; - } -} - - -private enum UnsafeAtomicHelperFactory { - REALLY_TRY_TO_CREATE { - @Override - AtomicHelper tryCreateUnsafeAtomicHelper() { - return new UnsafeAtomicHelper(); - } - }, - - DONT_EVEN_TRY_TO_CREATE { - @Override - AtomicHelper tryCreateUnsafeAtomicHelper() { - return null; - } - }, - - ; - - abstract AtomicHelper tryCreateUnsafeAtomicHelper(); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23514513.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23514513.java deleted file mode 100644 index c01b37aeb..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23514513.java +++ /dev/null @@ -1,8 +0,0 @@ -class Test { - { - f( - rrr.kkkkk.uuuuuuuu, - rrr.iiiiii.ggggggggggggggggg, - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23626035.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23626035.java deleted file mode 100644 index a4eb26262..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23626035.java +++ /dev/null @@ -1,3 +0,0 @@ -class Test2 { - void f(Test2... xs) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23708487.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23708487.java deleted file mode 100644 index 96be46e64..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23708487.java +++ /dev/null @@ -1,10 +0,0 @@ -class B23708487 { - static { - TASK_AS_OWNER = - com.google.security.acl.proto2api.ACL.Entry.newBuilder() - .setRole(com.google.security.acl.proto2api.ACL.Entry.ROLE.OWNER.getNumber()) - .setScope(com.google.security.acl.proto2api.ACL.Scope.newBuilder() - .setMdbUser(BorgTaskInfo.getMdbUser().getMdbUserName())) - .build(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23749160.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23749160.java deleted file mode 100644 index 3801eb1c3..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23749160.java +++ /dev/null @@ -1,51 +0,0 @@ -class B23749160 { - { - mockDailySummaryModuleListFiller - .buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDayxxxxxxxxxxx( - anyInt(), - anyInt(), - anyInt()); - - mockDailySummaryModuleListFiller - .buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDayxxxxxxxxxxx( - anyInt(), - anyInt(), - anyInt()); - - foo - .buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDayxxxxxxxxxxx( - anyInt(), - anyInt(), - anyInt()) - .bar(); - - // `.build`... and `anotherThing`... are technically at different syntactic - // levels, but the indentation required to express that starts to get out - // of hand - MockDailySummaryModuleListFiller - .buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDayxxxxxxxxxxx( - anyInt(), - anyInt(), - anyInt()) - .anotherThing(); - - when( - mockDailySummaryModuleListFiller - .buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDay( - anyInt(), - anyInt(), - anyInt())) - .then(); - - final List XXXXXXXX = - ImmutableList.of( - XXXXXXX, // - XXXXXXX, // - XXXXXXX, // - XXXXXXX, // - XXXXXXX // - ); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23804934.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23804934.java deleted file mode 100644 index 2780025d0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B23804934.java +++ /dev/null @@ -1,31 +0,0 @@ -class B23804934 { - - @Zzzzzz - B23804934( - ZzzzzzzzZzzzzzZzzzzZzzzzzzz zzzzzzzzZzzzzzZzzzzZzzzzzzz, - ZzzzzzzZzzzzzzz zzzzzzZzzzZzzzZzzzzzzz, - @ZzzzZzzzzZzzzzzz Zzzzzz zzzzzZzzzzzz, - @ZzzzzzzzzzzZzzzzzz(Zz.ZZZZZZZ_ZZZZZ_ZZZZ_ZZZZZZ_ZZZZ_ZZZZZZZZZZ) Zzzzzzzz< - Zzzzzzz> zzzzzZzzzZzzzzzZzzzZzzzzzzzzz) { - zzzz.zzzzzzzzZzzzzzZzzzzZzzzzzzz = zzzzzzzzZzzzzzZzzzzZzzzzzzz; - zzzz.zzzzzzZzzzZzzzZzzzzzzz = zzzzzzZzzzZzzzZzzzzzzz; - zzzz.zzzzzZzzzzzz = zzzzzZzzzzzz; - zzzz.zzzzzZzzzZzzzzzZzzzZzzzzzzzzz = zzzzzZzzzZzzzzzZzzzZzzzzzzzzz; - } - - zzzz z( - zzz z, - @Zzzzzzzz @Zzzzzzzzzz ZzzzzzzzzZzzz< - Zzzzzz> zzzzZzzzZzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) {} - - @ZzzZzzzZzzzzzzzzzz - @Zzzzzzzz(zzzzzzzzz = Zzzzzzzzz.ZZ) - ZzzzzzzzzzZzzzzz zzzzzzzZzzzzzzzzzz( - @Zzz @Zzz zzzz zzzzZzzzZz, - @Zzz @ZzzzzzzzzzZzzzz(zzzz = ZzzzzZzzzzzZzzzz.ZZZZZZ_ZZZ_ZZZ_ZZZZZZZ) zzzzzzz zzzzzzZzzZzzZzzzzzz, - @Zzzzz @ZzzzzzzzzzZzzzz(zzzz = ZzzzzZzzzzzZzzzz.ZZZZZ_ZZZ_ZZZZZZZZZZZ) zzzzzzz zzzzzZzzZzzzzzzzzzz, - @Zzzzz ZzzzzZzzz zzzzzZzzz) {} - - void fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff( - final zzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24202287.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24202287.java deleted file mode 100644 index b02253e8c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24202287.java +++ /dev/null @@ -1,26 +0,0 @@ -class B24202287 { - { - this.overflowContactCompositeSupportedRenderers = - this.getSharePanelResponse.contents.unifiedSharePanelRenderer.contents[0].connectionSection.connectionsOverflowMenu.connectionsOverflowMenuRenderer.contents[0].overflowConnectionSectionRenderer.contacts[0]; - - int y = ((int[]) null)[0]; - } - - IntentSource getSource() { - return mIntent.isPresent() && mIntent.get().hasExtra(INTENT_SOURCE_KEY) - ? IntentSource.values()[mIntent.get().getIntExtra(INTENT_SOURCE_KEY, IntentSource.OTHER.ordinal())] - : IntentSource.OTHER; - } - - { - mTabUiParts[mRenderedTabIndex] - .setData( - tabs[mRenderedTabIndex], - true /* isSelected */, - mIsLoadingState, - mErrorMessageType, - mOnDailySummaryHeaderClickListener, - mShowSpacerForSnackbar, - mResetScrollAndAnimationAndReplaceDoodle); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24494875.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24494875.java deleted file mode 100644 index 704ffee9e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24494875.java +++ /dev/null @@ -1,4 +0,0 @@ -public enum B24494875 { - ; - public static final String ONE = "ONE"; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24543625.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24543625.java deleted file mode 100644 index 476a7376c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24543625.java +++ /dev/null @@ -1,76 +0,0 @@ -/** -* This
-* is
-* a
-* train. -*/ -class TheTrain { - /* - ______ - .-"""".._'. _,## - _..__ |.-"""-.| | _,##'`-._ - (_____)||_____|| |_,##'`-._,##'` - _| |.;-""-. | |#'`-._,##'` - _.;_ `--' `\ \ |.'`\._,##'` - /.-.\ `\ |.-";.`_, |##'` - |\__/ | _..;__ |'-' / - '.____.'_.-`)\--' /'-'` - //||\\(_.-'_,'-'` - (`-...-')_,##'` - jgs _,##`-..,-;##` - _,##'`-._,##'` - _,##'`-._,##'` - `-._,##'` - */ - public static final Object THE_TRAIN = null; - - /* - BLOCK COMMENT - - */ - int x; - - /* . - BLOCK COMMENT . - - */ - int y; - - /* . - BLOCK COMMENT . - - */ - int z; - - /* . - BLOCK COMMENT . - - */ - int z; - - /* - * This is almost javadoc. - * - */ - int z; - - /** - * This is (was) malformed javadoc. - *
-    System.err.println
-    * 
- */ - int z; - - private Object f; /*-{ - System.err.println("asd"); - }-*/ - - private native Object f() /*-{ - System.err.println("asd"); - }-*/; - - private native Object f() /*-{ - System.err.println("asd"); - }-*/; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24702438.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24702438.java deleted file mode 100644 index 57e3de89b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24702438.java +++ /dev/null @@ -1,66 +0,0 @@ -class B24702438 { - - @Inject - int x; - - @Inject - int y; - - @Inject - int z; - - @Inject - int x; - @Inject - int y; - @Inject - int z; - - // this is a comment - - // another comment - int x; - - // another comment - - int y; - - { - switch (x) { - - case 1: - - break; - - case 1: - - break; - - default: - - break; - - } - - // this is a comment - - // another comment - System.err.println("asd"); - } - - void f( - int a, - @Nullable @Deprecated ImmutableList< - String> veryVeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, - @Nullable @Deprecated ImmutableList< - String> veryVeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, - @Nullable @Deprecated ImmutableList< - String> veryVeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, - int c) {} - - void g( - @Nullable @Deprecated ImmutableList< - String> veryVeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, - @Nullable @Deprecated ImmutableList< - String> veryVeryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooong) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24862959.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24862959.java deleted file mode 100644 index f641ef128..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24862959.java +++ /dev/null @@ -1,9 +0,0 @@ -public enum XxxxxxxXxxx implements XxxxxxXxxxxxxXxxx { - XXXXXXXXX_XXXX_XXX_XXXXXXXX( - " ", - Xxxxxx.XXXXXXX, - XxxxXxxxxxxXxxxxxxx.XXXXX), - // - // - // -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24909927.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24909927.java deleted file mode 100644 index 2c65bd756..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24909927.java +++ /dev/null @@ -1,403 +0,0 @@ -class Xxx { - - public xxxx xxx() { - XxxxxxXxxx xxxxxxxxXxxx = XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx(XxxxxxXxxx.XXXXXXX) - .xxxXxxxxxXxxx(" ") - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx - .xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx( - XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx - .xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx( - XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx(XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx( - XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxx( - XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx( - XxxxXxxxxxxx - .xxxXxxxxxx() - .xxxXxxxx( - -42) - .xxxXxxx( - XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx( - XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx( - XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxx( - XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx( - XxxxXxxxxxxx - .xxxXxxxxxx() - .xxxXxxxx( - -42) - .xxxXxxx( - XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx( - XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx(XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx( - XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxx( - XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx( - XxxxXxxxxxxx - .xxxXxxxxxx() - .xxxXxxxx( - -42) - .xxxXxxx( - XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx - .xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx( - XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx( - XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxx( - XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx( - XxxxXxxxxxxx - .xxxXxxxxxx() - .xxxXxxxx( - -42) - .xxxXxxx( - XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx - .xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx( - XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx( - XxxxxxxxxxXxxXxxxXxxxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx.XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx( - XxxxxxxxxxXxxXxxxXxxxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24988078.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24988078.java deleted file mode 100644 index d97c57a2f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B24988078.java +++ /dev/null @@ -1,7 +0,0 @@ -class B24988078 { - public static Optional fromNullable(@Nullable T nullableReference) {} - - public static Optional fromNullable(@Nullable T nullableReference) {} - - Table< /*@Nullable*/ Object, /*@Nullable*/ Object, /*@Nullable*/ Object> foo; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25372815.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25372815.java deleted file mode 100644 index 23fb27764..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25372815.java +++ /dev/null @@ -1,32 +0,0 @@ -class Test { - { - // For "All goals" view, show only advertiser goals tab. - return newPageTypeSet( - false /* advertisers */, - false /* userManagement */, - false /* campaigns */, - false /* adGroups */, - false /* ads */, - false /* keywords */, - false /* negativeKeywords */, - false /* advertiserBidStrategies */, - false /* bidStrategies */, - false /* bidStrategyRecommendations */, - false /* bidKeywords */, - false /* engineBidStrategies */, - false /* conversionTrackers */, - false /* labels */, - false /* labelKeywords */, - false /* evergreen labels */, - false /* searchQueries */, - false /* engineSearchQueries */, - false /* remarketingTarget */, - false /* sitelinks */, - false /* feedSitelinks */, - false /* locationExtensions */, - false /* callExtensions */, - false /* calloutExtensions */, - false /* appExtensions */, - false /* events */); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25749989.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25749989.java deleted file mode 100644 index 68ec6ba40..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25749989.java +++ /dev/null @@ -1,7 +0,0 @@ -class Dummy { - /** - */ - private static void method() { - MISSING(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25787055.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25787055.java deleted file mode 100644 index e0362248a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25787055.java +++ /dev/null @@ -1,40 +0,0 @@ -class B25787055 { - { - logger - .atInfo() - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - logger.atInfo() - .atInfo() - .atInfo() - .atInfo() - .atInfo() - .atInfo() - .atInfo() - .atInfo() - .atInfo() - .atInfo() - .atInfo() - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - logger // interior - .atInfo() // comments - .log( // are best comments - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - logger - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames) - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25811323.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25811323.java deleted file mode 100644 index 75dd54e65..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B25811323.java +++ /dev/null @@ -1,5 +0,0 @@ -class B25811323 { - void f() { - class Inner {}; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26159561.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26159561.java deleted file mode 100644 index 105c4c841..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26159561.java +++ /dev/null @@ -1,6 +0,0 @@ -class B26159561 { - { - try (A a = a(); B b = b()) {} - try (A a = a();) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26207047.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26207047.java deleted file mode 100644 index 25c2b2b64..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26207047.java +++ /dev/null @@ -1,107 +0,0 @@ -class B26207047 { - { - String.format( - "%s ", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - String.format( - "%s ", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - String.format( - "{0} ", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - String.format( - "%s " - + " ", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - String.format( - "%s ", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - String.format( - "%s ", - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx, - xxxxxx); - String.format( - "%s ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " "); - Set ZONES = - ImmutableSet.of( - TimeZone.getTimeZone("EST"), - // TODO: - TimeZone.getTimeZone("GMT"), - TimeZone.getTimeZone("HST"), - TimeZone.getTimeZone("MST")); - String.format( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + "%s", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - String.format( - " ", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26275739.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26275739.java deleted file mode 100644 index 560ebf305..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26275739.java +++ /dev/null @@ -1,20 +0,0 @@ -public class B26275739 { - { - f( - /* x */ 1, - /* xx */ 2, - /* x */ 3, - /* xx */ 4); - f( - 1, - 2, - 3, - 4); - f( - /* asd */ - 1, - 2, - 3, - 4); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26293162.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26293162.java deleted file mode 100644 index 46b0f7afa..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26293162.java +++ /dev/null @@ -1,43 +0,0 @@ -class Xxxx { - - public static final class XxxxXxxxxxxxXxxxxxxxxXxxxxxXxxxxxxx< - X, X, X extends XxxxxxxxxXxxxxxxxxXxxxxxxx> { - - int x; - } - - public static final class XxxxXxxxxxxxXxxxxxxxxXxxxxxXxxxxxxx< - X, X, X extends XxxxxxxxxXxxxxxxxxXxxxxxxx> extends Xxxxx { - - int x; - } - - class XxxxxxxxXxxxxxxxxXxxxXxxx< - X extends XxxxxxxxxXxxxxxx, X extends XxxxxxxxxXxxxxx, X extends Xxxxxxxxxxxxx, X> - extends XxxxXxxx { - - int x; - } - - @Xxx - class XxxxxxxxxxxXxxxxxXx< - X extends XxxxxxXxxxxxxxxxxXxxxxxXxxxxx, X extends Xxxxxxx, XX extends Xxxxxxxxx> - extends XxxxxxxxXx { - - int x; - } - - static class XxxxxXxxxxXxxx< - XXXXX extends XxxxxxxxXxxxxxx, XXX extends XxxxxxxxXxxxxxx> { - - int x; - } - - @Xxx - class XxxxxxxxxxxXxxxxxXx< - X extends XxxxxxXxxxxxxxxxxXxxxxxXxxxxx, X extends Xxxxxxx, X extends Xxxxxxx, - XX extends Xxxxxxxxx> extends XxxxxxxxXx { - - int x; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26694550.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26694550.java deleted file mode 100644 index de3c7dfd9..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26694550.java +++ /dev/null @@ -1,21 +0,0 @@ -class B26694550 { - { - /* === not a param comment */ - fffffffffffffffffffffffffffffff( - ImmutableList.copyOf(keys), /*&=*//*keepGoing=*/ - false, - ggggggggggggggggggggggggggggggggggggggggggg); - fffffffffffffffffffffffffffffff( - ImmutableList.copyOf(keys), - /*keepGoing=*/ - false, - ggggggggggggggggggggggggggggggggggggggggggg); - fffffffffffffffffffffffffffffff( - ImmutableList.copyOf(keys), - /*foo_bar=*/ - false, - /*foo-bar=*/ - false, - ggggggggggggggggggggggggggggggggggggggggggg); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26884608.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26884608.java deleted file mode 100644 index 8fd69a78c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26884608.java +++ /dev/null @@ -1,33 +0,0 @@ -class X26884608 { - { - this - .xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - this - .xxxXxxxxXxxxxxx( - XxxxxXxxx.xxxxxXxxxx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - Xxxxx.this - .xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - Xxxxx.this - .xxxXxxxxXxxx(XxxxxXxxx.xxxxxXx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - xxx.xxxxxx.Xxxxx.this - .xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - xxx.xxxxxx.Xxxxx.this - .xxxXxxxxXxxx(XxxxxXxxx.xxxxxXx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - - super.xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - super.xxxXxxxxXxxx( - XxxxxXxxxx.xxxxxXxxxx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - Xxxxx.super.xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - Xxxxx.super.xxxXxxxxXxxx( - XxxxxXxxx.xxxxxXx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - xxx.xxxxxx.Xxxxx.super.xxxxxxxxxXxxxxxXxxxxxxXxxxxx(XXXXXXXXX_XXXXXXXXX); - xxx.xxxxxx.Xxxxx.super.xxxXxxxxXxxx( - XxxxxXxxx.xxxxxXx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26928842.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26928842.java deleted file mode 100644 index c24490704..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26928842.java +++ /dev/null @@ -1,10 +0,0 @@ -class B26928842 { - { - curr.setData(curr.getData() - .toBuilder() - .setPushCertificate( // New - curr.getData().getPushCertficate()) // Old, misspelled - .clearPushCertficate() // Old, misspelled - .build()); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26952926.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26952926.java deleted file mode 100644 index aedc73840..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B26952926.java +++ /dev/null @@ -1,51 +0,0 @@ -class T { - { - this( - x, // line comment - x // line comment - ); - super( - x, // line comment - x // line comment - ); - new t( - x, // line comment - x // line comment - ); - f( - x, // line comment - x // line comment - ); - fffff.fffff( - x, // line comment - x // line comment - ); - fffff - .fffff( - x, // line comment - x // line comment - ) - .fffff( - x, // line comment - x // line comment - ); - } - - { - this(x // line comment - ); - super(x // line comment - ); - new t(x // line comment - ); - f(x // line comment - ); - fffff.fffff(x // line comment - ); - fffff - .fffff(x // line comment - ) - .fffff(x // line comment - ); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27078833.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27078833.java deleted file mode 100644 index 9120134ae..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27078833.java +++ /dev/null @@ -1,19 +0,0 @@ -enum OpKind { - - POST_INCR(Precedence.POSTFIX), - POST_DECR(Precedence.POSTFIX), - - PRE_INCR(Precedence.UNARY), - PRE_DECR(Precedence.UNARY), - PLUS(Precedence.UNARY), - NEG(Precedence.UNARY), - COMP(Precedence.UNARY), - NOT(Precedence.UNARY), - - MULT(Precedence.MULTIPLICATIVE), - DIVIDE(Precedence.MULTIPLICATIVE), - MODULO(Precedence.MULTIPLICATIVE), - ; - - // ... -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27246427.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27246427.java deleted file mode 100644 index bd0446a67..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27246427.java +++ /dev/null @@ -1,11 +0,0 @@ -enum TrailingComment { - /** foo */ - FOO, - /** bar */ - BAR; - - /** a */ - Object a; - /** b */ - Object b; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27602933.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27602933.java deleted file mode 100644 index c80d9eef4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B27602933.java +++ /dev/null @@ -1,7 +0,0 @@ -class B27602933 { - { - try {} catch (final A | B x) {} - - try {} catch (@SuppressWarnings("unused") IllegalArgumentException | RuntimeException e) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28066276.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28066276.java deleted file mode 100644 index 5250c669d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28066276.java +++ /dev/null @@ -1,13 +0,0 @@ -class B28066276 { - class A extends S - implements I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________ {} - - interface B - extends I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________ {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28774859.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28774859.java deleted file mode 100644 index 0162f9c98..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28774859.java +++ /dev/null @@ -1,3 +0,0 @@ -class B28774859 { - java.util. /*comment*/ Map. /*comment*/ Entry e; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28786284.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28786284.java deleted file mode 100644 index 3e074939c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28786284.java +++ /dev/null @@ -1,5 +0,0 @@ -enum E { - ONE, - TWO; - ; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28788559.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28788559.java deleted file mode 100644 index 3aa7d25d4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B28788559.java +++ /dev/null @@ -1,7 +0,0 @@ -import a.A; -import b.B; - -class Test { - A a; - B b; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29368546.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29368546.java deleted file mode 100644 index cf89a475e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29368546.java +++ /dev/null @@ -1,60 +0,0 @@ -public class B29368546 { - /** - * Example: - * - *
{@code
-     *     class T {
-     *     }
-     * }
- */ - int x; - - /** - * Example: - * - *
    {@code
-     *   class T {
-     *   }
-     * }
- */ - int x; - - /** - * Example: - * - *
{@code
-     *   class T {
-     *   }}
- */ - int x; - - /** - * Example: - * - *
{@code
-     * foo bar
-     * }
-     *
-     * more stuff
-     * 
- * - *
{@code
-     * foo bar
-     * }
-     *
-     * more stuff that ends with {}
-     * 
- */ - int x; - - /** - * Example: - * - *
{@code
-     * class T {}
-     * 
// oops, we forgot the close brace - * - * more stuff that ends with {} - */ - int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29618429.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29618429.java deleted file mode 100644 index efe20c21b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29618429.java +++ /dev/null @@ -1,13 +0,0 @@ -class B29618429 { - /** - * Hello - * - *

World - *

-     * @LooksLikeATag(
-     *   foo = "bar"
-     * )
-     * 
- */ - int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29705613.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29705613.java deleted file mode 100644 index d041c62cf..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B29705613.java +++ /dev/null @@ -1,8 +0,0 @@ -class B29705613 { - /** - * This tag isn't closed: {@link Foo - * - *

A paragraph - */ - int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30153869.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30153869.java deleted file mode 100644 index d0db2afd0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30153869.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - * one - * - *

    - *
  1. two - *
- * - *

- *

  • four - */ -class T { - - /** - * One - * - *
      - *
    • a - *
        - *
      • b - *
      • c - *
      - *
    • e - *
    - */ - int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30223986.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30223986.java deleted file mode 100644 index ec3decfb8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30223986.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Base class for {@link Foo}. - * - *

    The subclass should implement {@link #bar()}, with the implementation returning a - * new instance of the foo relevant to that baz. - * - * Example: - * - * @Override - * protected Foo bar() { - * return new Foo(); - * } - * - * - * The subclass should call {@link #get()} to get the foo object, - * and should not cache it in the subclass. - * Example: - * - * @Annotation("something") - * public void thing() { - * } - * - * - * @param concrete subclass - */ -class Test { - /** - * Field - * - * Example: - *

    
    -     *   @Annotation("something")
    -     *   public void thing() {
    -     *   }
    -     * 
    - * - * @param asd - */ - int x() {} - - /** - * Inline foo. - */ - int y() {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30764810.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30764810.java deleted file mode 100644 index e13d2590d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30764810.java +++ /dev/null @@ -1,16 +0,0 @@ -class B30764810 { - @Foo( - x = {0}, - y = 0 - // comment - ) - int a; - - @Foo( - x = {0}, - y = 0 - /* comment - */ - ) - int b; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30789352.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30789352.java deleted file mode 100644 index 2559b1f7f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B30789352.java +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Body. - * - * @param

    the protobuf type - */ -class B30789352

    {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32114928.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32114928.java deleted file mode 100644 index 6aeced75d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32114928.java +++ /dev/null @@ -1,7 +0,0 @@ -class B32114928 { - { - Class tClass = - (Class) verifyNotNull((ParameterizedType) getClass().getGenericSuperclass()) - .getActualTypeArguments()[0]; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32284705.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32284705.java deleted file mode 100644 index 916c58854..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32284705.java +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Foo - *

    - * bar
    - * 
    - * - */ -class B32284705 {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32397217.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32397217.java deleted file mode 100644 index 8b9675b17..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32397217.java +++ /dev/null @@ -1,7 +0,0 @@ -class T { - { - f( - 1 /* 1 */, - 2 /* 2 */); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32729600.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32729600.java deleted file mode 100644 index 749990ec7..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B32729600.java +++ /dev/null @@ -1,5 +0,0 @@ -class B32729600 { - { - f(() -> {}); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B33358723.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B33358723.java deleted file mode 100644 index 3698a1d3d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B33358723.java +++ /dev/null @@ -1,21 +0,0 @@ -class B33358723 { - { - f( - // - x -> System.err.println( - // - "hello")); - f( - // - ( // - x) -> System.err.println( - // - "hello")); - f( - // - (int // - x) -> System.err.println( - // - "hello")); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B35644813.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B35644813.java deleted file mode 100644 index e8172c529..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B35644813.java +++ /dev/null @@ -1,19 +0,0 @@ -class B35644813 { - { - return foo____________ - .bar__________() - .baz____________() - .stream() - .map(Baz::getId) - .collect(toList()); - } - - private static final ImmutableSet SCANDINAVIA = - ImmutableSet.of( - DENMARK____________________________________________________, - NORWAY_____________________________________________________, - SWEDEN_____________________________________________________) - .stream() - .map(x -> String.format("country: %s", x.toLowerCase())) - .collect(toImmutableSet()); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B35797074.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B35797074.java deleted file mode 100644 index 187065fef..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B35797074.java +++ /dev/null @@ -1,4 +0,0 @@ -class B35797074 { - /** javadoc */ - /* package */ final int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B36194204.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B36194204.java deleted file mode 100644 index 3e6d0b332..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B36194204.java +++ /dev/null @@ -1,5 +0,0 @@ -class B36194204 { - { - Function f = (String... s) -> s[0]; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B37629610.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B37629610.java deleted file mode 100644 index 90be34f41..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B37629610.java +++ /dev/null @@ -1,13 +0,0 @@ -class B37629610 { - private static ImmutableList toInputOutputPairs(Options options) { - for ( - Iterator inputIt = options.inputJars.iterator(), outputIt = options.outputJars.iterator(); - inputIt.hasNext();) {} - for ( - Iterator inputIt = options.inputJars.iterator(), outputIt = options.outputJars.iterator();; - inputIt.next()) {} - for (inputIt = options.inputJars.iterator(), // - outputIt = options.outputJars.iterator();; - inputIt.next()) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B37895033.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B37895033.java deleted file mode 100644 index 9571f23af..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B37895033.java +++ /dev/null @@ -1,20 +0,0 @@ -class B37895033 { - String[][] xs = - new String[][] { - {"B3", "C3", "D3"}, - {"B4", "C4", "D4"}, - {"B5", "C5", "D5"} - }; - String[] ys = - new String[] { - "B3", - "B4", - "B5", - }; - String[][] zs = - new String[][] { - {"B3"}, - {"B4"}, - {"B5"}, - }; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38203081.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38203081.java deleted file mode 100644 index 1e389afa8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38203081.java +++ /dev/null @@ -1,5 +0,0 @@ -class B38203081 { - void f(int @A []... xs) {} - - void g(int @A [] @B... xs) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38241237.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38241237.java deleted file mode 100644 index e16ee1afd..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38241237.java +++ /dev/null @@ -1,7 +0,0 @@ -class B38241237 { - //foo - //bar - //one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt - ///baz - //// -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38352414.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38352414.java deleted file mode 100644 index 60726fb72..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B38352414.java +++ /dev/null @@ -1,2 +0,0 @@ -@Redacted(Redacted.REDACTED + "/redacted", redacted = Redacted.class) -class B38352414 {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B64493529.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B64493529.java deleted file mode 100644 index 720660d4c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B64493529.java +++ /dev/null @@ -1,10 +0,0 @@ -/** Copies from {@link Foo} to {@link Bar}. */ -// XXXX.XxXxxxxx() -class B64493529 { - // XXXX.XxxxXxxxxx(//xxxxx/xxxxxxx/xxxx/xxx/xxxxxx/xxx/xxxxxxx/xxxx/xxx/xxxxxxx/xxxxxxx/\ - // XxxxxxXxxxxxXXxxxxxxXxxxxx.java) - // XXXX.XxxxXxxxxx(//xxxxx/xxxxxxx/xxxx/xxx/xxxxxx/xxx/xxxxxxx/xxxx/xxx/xxxxxxx/xxxxxxx/\ - // XxxxxxXxxxxxXXxxxxxxXxxxxx.java) -} -// XXXX.XxxxXxxxxx(//xxxxx/xxxxxxx/xxxx/xxx/xxxxxx/xxx/xxxxxxx/xxxx/xxx/xxxxxxx/xxxxxxx/\ -// XxxxxxXxxxxxXXxxxxxxXxxxxx.java) diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B65214682.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B65214682.java deleted file mode 100644 index 3b192617f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B65214682.java +++ /dev/null @@ -1,15 +0,0 @@ -@BugPattern( - name = "AsyncFunctionReturnsImmediate", - summary = SIMPLIFY, - category = GUAVA, - severity = NOT_A_PROBLEM, - maturity = EXPERIMENTAL) -@BugPattern( - name = "AsyncFunctionReturnsImmediate", - summary = SIMPLIFY, - explanation = "If an AsyncFunction always returns immediateFuture() and never throws, it can " - + "be replaced with a Function.", - category = GUAVA, - severity = NOT_A_PROBLEM, - maturity = EXPERIMENTAL) -class Test {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B72507902.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B72507902.java deleted file mode 100644 index 4e92dc8a4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/B72507902.java +++ /dev/null @@ -1,6 +0,0 @@ -class B72507902 { - private static class Xxxxxxxxxxxxxxxxxxxx - extends Xxxxxxxxxxx< - Pair>, Xxxxxxxxxxxxxxxxxxxx, - List> {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/C.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/C.java deleted file mode 100644 index c289d3372..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/C.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for CastExpressions, CatchClauses, CharacterLiterals, ClassInstanceCreations, - * CommentHelper, ConditionalExpressions, ConstructorInvocations, ContinueStatements, and - * CreationReferences. - */ -class C { - // TODO(jdd): Test higher-language-level constructs. - - C() { - this( - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31); - } - - C(int... x) {} - - void f() { - try {} catch (RuntimeException e) { - Object x = - (Pair< - Pair< - Pair, Pair>, - Pair, Pair>>, - Pair< - Pair, Pair>, - Pair, Pair>>>) null; - C c = - new C( - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31); - int i = 0; - int j = - i == 0 - ? 0 - : i == 1 - ? 1 - : i == 2 ? 2 : i == 3 ? 3 : i == 4 ? 4 : i == 5 ? 5 : i == 6 ? 6 : i == 7 ? 7 : i; - LABEL: while (true != false) { - if (false == true) - continue; - if (false == false) - continue LABEL; - // Comment indented +2 - // Comment indented +2 - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/CL240367479.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/CL240367479.java deleted file mode 100644 index 0c3404820..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/CL240367479.java +++ /dev/null @@ -1,5 +0,0 @@ -package foo; - -; - -public class Blim {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/D.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/D.java deleted file mode 100644 index d5fa3a886..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/D.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for Dimensions and DoStatements. */ -class D { - // TODO(jdd): Test higher-language-level features. - - int[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] array[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]; - - void f() { - do { - assert false; - } while (1 + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 == 1 + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1 - + 1); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/E.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/E.java deleted file mode 100644 index fd28e32ea..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/E.java +++ /dev/null @@ -1,342 +0,0 @@ -package com.google.googlejavaformat.java.test; - -import com.google.common.collect.ImmutableList; -import com.google.common.collect.Lists; - -/** - * Tests for EmptyStatements, EnhancedForStatements, EnumConstantDeclarations, EnumDeclarations, - * ExpressionMethodReferences, ExpressionStatements, Expressions, and ExtendedModifiers. - */ -@MarkerAnnotation -class E { - // TODO(jdd): Test higher language-level features. - - enum Enum1 { - A, B, C, D; - - Enum1() {} - } - - @MarkerAnnotation - public enum Enum2 { - A, - B, - C, - D, - ; - - Enum2() {} - } - - enum Enum3 { - A( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0), - B( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 1), - C( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 2), - D( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 3); - - Enum3(int x) {} - } - - enum Enum4 { - A( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0), - B( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 1), - C( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 2), - D( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 3), - ; - - Enum4(int x) {} - } - - int f(int value) { - ;;;;; - for (Integer x : ImmutableList.of( - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0)) {} - for (Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> x : Lists - ., Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>>>newArrayList()) {} - f(10); - return f(20); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/EnumAnnotation.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/EnumAnnotation.java deleted file mode 100644 index 1f2289596..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/EnumAnnotation.java +++ /dev/null @@ -1,8 +0,0 @@ -enum E { - @A - ONE, - TWO, - @B - @C - THREE; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/F.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/F.java deleted file mode 100644 index 5e3e34157..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/F.java +++ /dev/null @@ -1,284 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for FieldAccesses, FieldDeclarations, and ForStatements. */ -class F { - int x; - int x1 = 0; - int y, z; - int y1 = 0, z1 = 0; - F f = null; - Object field0 = - true - ? true ? true ? null : null : true ? null : null - : true ? true ? null : null : true ? null : null; - - Pair< - Pair, Pair>, - Pair, Pair>> field1 = null; - Pair< - Pair, Pair>, - Pair, Pair>> field2 = - true - ? true ? true ? null : null : true ? null : null - : true ? true ? null : null : true ? null : null; - - @MarkerAnnotation - Pair< - Pair, Pair>, - Pair, Pair>> field3 = - true - ? true ? true ? null : null : true ? null : null - : true ? true ? null : null : true ? null : null; - - void f() { - for ( - int i = - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0; - i < 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 10; - i++) { - f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.Ff = null; - } - for ( - int i = - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0; - i < 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 10; - i++) { - f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.Ff = - null; - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Fields.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Fields.java deleted file mode 100644 index cfe0c7ab0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Fields.java +++ /dev/null @@ -1,7 +0,0 @@ -class Fields { - - int x = 1; - - int y = 1; - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/ForMany.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/ForMany.java deleted file mode 100644 index 50f51859d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/ForMany.java +++ /dev/null @@ -1,6 +0,0 @@ -class ForMany { - { - A a; - for (b = B; c != C; d = D) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I.java deleted file mode 100644 index 5101d3e78..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.google.googlejavaformat.java.test; - -import java.util.List; - -/** - * Tests for IfStatements, ImportDeclarations, InfixExpressions, Initializers, - * InstanceofExpressions, and IntersectionTypes. - */ -class I { - interface I0 {} - - interface I1 {} - - interface I2 {} - - interface I3 {} - - interface I4 {} - - interface I5 {} - - interface I6 {} - - interface I7 {} - - interface I8 {} - - interface I9 {} - - interface I10 {} - - interface I11 {} - - interface I12 {} - - interface I13 {} - - interface I14 {} - - interface I15 {} - - interface I16 {} - - interface I17 {} - - interface I18 {} - - interface I19 {} - - class II< - T extends I0 & I1 & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9 & I10 & I11 & I12 & I13 & I14 & I15 & I16 & I17 & I18 & I19> {} - - static class CC { - static { - int i = 0; - } - } - - int x = - 0 >>> 0 + 0 / 0 * 0 - 0 & 0 << 0 * 0 / 0 >> 0 - 0 ^ 0 * 0 / 0 >>> 0 << 0 * 0 - 0 / 0 - | 0 * 0 >> 0 + 0 / 0 * 0 - 0 << 0 - & 0 * 0 / 0 >>> 0 - 0 * 0 >> 0 / 0 << 0 * 0 + 0 - 0 / 0 * 0 - | 0 - 0 * 0 >>> 0 << 0 / 0 * 0 >> 0 - 0 ^ 0 * 0 / 0 & 0 << 0 + 0; - - void f() { - if (0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 == 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0) {} else if (null instanceof List) {} else {} - if (true) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I1.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I1.java deleted file mode 100644 index 3f3737e53..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I1.java +++ /dev/null @@ -1,55 +0,0 @@ -class Test { - final CreationMechanism creationMechanism; - final @Nullable String creationUserAgent; - final ClientId clientId; - final @Nullable String creationUserAgentXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; - final Token externalId; - - { - final CreationMechanism creationMechanism; - final @Nullable String creationUserAgent; - final ClientId clientId; - final @Nullable String creationUserAgentXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; - final Token externalId; - } -} - - -class Test { - final CreationMechanism creationMechanism; - @Nullable - final String creationUserAgent; - final ClientId clientId; - @Nullable - final String creationUserAgentXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; - final Token externalId; - - { - final CreationMechanism creationMechanism; - @Nullable - final String creationUserAgent; - final ClientId clientId; - @Nullable - final String creationUserAgentXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; - final Token externalId; - } -} - - -class Test { - - @Nullable - final String creationUserAgent; - - { - @Nullable - final String creationUserAgent; - } - - { - - @Nullable - final String creationUserAgent; - - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I12.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I12.java deleted file mode 100644 index 8daec169e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I12.java +++ /dev/null @@ -1,19 +0,0 @@ -public class Test { - -} - - -public class Test { - -} - - -public class Test { - -} - - -public class Test {} - - -public class Test {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I13.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I13.java deleted file mode 100644 index 5a87fc47f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I13.java +++ /dev/null @@ -1,10 +0,0 @@ -class I13 { - - @Nullable - - public int f; - - @Override - - public void m() {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I202.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I202.java deleted file mode 100644 index 57238a122..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I202.java +++ /dev/null @@ -1,6 +0,0 @@ -class I202 { - { - //noinspection CheckResult - methodWhoseResultShouldBeChecked(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I365.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I365.java deleted file mode 100644 index 2bc36ce78..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/I365.java +++ /dev/null @@ -1,10 +0,0 @@ -class I365 { - { - return foo____________ - .bar__________() - .baz____________() - .parallelStream() - .map(Baz::getId) - .collect(toList()); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/L.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/L.java deleted file mode 100644 index ec3c4e9c1..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/L.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for LabeledStatements and LambdaExpressions. */ -class L { - // TODO(jdd): Include high language-level tests. - - void f() { - LABEL: for (int i = 0; i < 10; i++) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/LocalAnnotations.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/LocalAnnotations.java deleted file mode 100644 index b73c5553b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/LocalAnnotations.java +++ /dev/null @@ -1,10 +0,0 @@ -class LocalAnnotations { - { - @Foo - final Object x; - @Foo(1) - final Object y; - @Foo(x = 1) - final Object y; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M.java deleted file mode 100644 index 82abc1969..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M.java +++ /dev/null @@ -1,848 +0,0 @@ -package com.google.googlejavaformat.java.test; - -import com.google.common.collect.ImmutableList; -import java.util.List; - -/** - * Tests for MarkerAnnotations, MemberValuePairs, MethodDeclarations, MethodInvocations, and - * Modifiers. - */ -@MarkerAnnotation -class M { - class Exception0 extends Exception {} - - class Exception1 extends Exception {} - - class Exception2 extends Exception {} - - class Exception3 extends Exception {} - - class Exception4 extends Exception {} - - class Exception5 extends Exception {} - - class Exception6 extends Exception {} - - class Exception7 extends Exception {} - - class Exception8 extends Exception {} - - class Exception9 extends Exception {} - - void methodName1(int x) {} - - void methodName2(int x) throws Exception {} - - /** - * JavaDoc. - */ - void methodName3(int x) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 {} - - /** - * JavaDoc. - */ - void methodName4( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) {} - - /** - * JavaDoc. - */ - void methodName5( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) - throws Exception {} - - /** - * JavaDoc. - */ - void methodName6( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 {} - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName10(int x) { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName12(int x) throws Exception { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName11(int x) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName15( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName14( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) - throws Exception { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName13( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - T - methodName20(int x) { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - T - methodName21(int x) throws Exception { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - T - methodName22(int x) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - T - methodName22( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - T - methodName23( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) - throws Exception { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - T - methodName30( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName31(int x) { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName32(int x) throws Exception { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName(int x) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, - Exception6, Exception7, Exception8, Exception9 { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName41( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName40( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) - throws Exception { - return null; - } - - < - T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, - T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31> - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName( - int a, - int b, - int c, - int d, - int e, - int f, - int g, - int h, - int i, - int j, - int k, - int l, - int m, - int n, - int o, - int p, - int q, - int r, - int s, - int t, - int u, - int v) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, - Exception6, Exception7, Exception8, Exception9 { - return null; - } - - static void m() {} - - M identity() { - return this; - } - - void f(double x) { - List> list1 = ImmutableList.>of(null); - List, Pair>> list2 = - ImmutableList., Pair>>of(null); - List< - Pair< - Pair, Pair>, - Pair, Pair>>> list3 = - ImmutableList - ., Pair>, - Pair, Pair>>>of(null); - Pair pair1 = - ImmutableList.>of(null) - .get( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0); - Pair, Pair> pair2 = - ImmutableList., Pair>>of(null) - .get( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0); - Pair< - Pair, Pair>, - Pair, Pair>> pair3 = - ImmutableList - ., Pair>, - Pair, Pair>>>of(null) - .get( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0); - } - - void f(int... x) { - M m = null; - ((m.identity().identity().identity().identity()).identity().identity().identity().identity()) - .identity() - .identity() - .identity() - .identity(); - f( - x[0] + x[1] - + x[2] - + x[3] - + x[4] - + x[5] - + x[6] - + x[7] - + x[8] - + x[9] - + x[11] - + x[12] - + x[13] - + x[14] - + x[15]); - } - - static void method999(Object... args) { - method999(1, 2, 3, 4, 5); - method999(1, 2, 3, 4, 5); - method999( - 1, - 2, - 3, - 4, - 5, - 6); - method999(1, 2, 3, 4, 5, 6); - method999("one", 1, "two", 2, "three", 3); - method999("one", 1); - method999( - "one", - 1, - "two", - 2); - method999( - "one", - 1, - "two", - 1 + 1, - "three", - 1 + 1 + 1); - method999( - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx"); - } - - static class Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx { - static Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx fff( - int x) { - return null; - } - } - - static class Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx { - static Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx fff( - int x) { - return null; - } - - static - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - ffffffffff(int x) { - return null; - } - } - - M xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = null; - M xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = - null; - - M fff(int x) { - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.fff(0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.fff( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - .ffffffffff(0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.fff(0).fff(0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.fff(0 + 0) - .fff( - 0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - .fff( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0) - .fff(0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - .ffffffffff(0) - .fff(0); - return this; - } - - M ffffffffff(int x) { - return this; - } - - M ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(int x) { - new M().ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff( - 0 + 0 + 0 + 0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff( - 0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(0).f(0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(0) - .fff(0) - .fff(0) - .f(0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(0).ffffffffff( - 0); - return this; - } - - M( - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z) - throws EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, - EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M1.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M1.java deleted file mode 100644 index c5ff9b54d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M1.java +++ /dev/null @@ -1,22 +0,0 @@ -import a.A; -import a.B; -import com.google.Foo; - -@A @B -module com.google.m { -requires com.google.r1; -requires transitive com.google.r2; -requires static com.google.r3; -exports com.google.e1; -exports com.google.e1 to com.google.e2; -exports com.google.e1 to com.google.e2, com.google.e3; -exports com.google.e1 to com.google.e2, com.google.e3, com.google.e4; -opens com.google.o1; -opens com.google.o1 to com.google.o2; -opens com.google.o1 to com.google.o2, com.google.o3; -opens com.google.o1 to com.google.o2, com.google.o3, com.googleoe4; -uses Foo; -uses com.google.Bar; -provides com.google.Baz with Foo; -provides com.google.Baz with Foo, com.google.Bar; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M2.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M2.java deleted file mode 100644 index c7d8b16b9..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M2.java +++ /dev/null @@ -1,2 +0,0 @@ -open module com.google.m { -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M3.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M3.java deleted file mode 100644 index c5d29662f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/M3.java +++ /dev/null @@ -1,6 +0,0 @@ -@Deprecated -module moduletags { - requires transitive static moduleA; - - exports testpkgmdltags; -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/MarkerAnnotation.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/MarkerAnnotation.java deleted file mode 100644 index b8dd3e379..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/MarkerAnnotation.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** JavaDoc comment. */ -public @interface MarkerAnnotation {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Multivariables.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Multivariables.java deleted file mode 100644 index 7152e03a9..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Multivariables.java +++ /dev/null @@ -1,18 +0,0 @@ -class Multivariables { - int xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy, - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz; - - // Horizontal and veritcal paddings used for most cells in the standings table. - private final int hpad, vpad; - - { - { - for ( - c = cx.iterator(), m = mx.iterator(); - c.hasNext() && m.hasNext();) { - f(c, m); - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/N.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/N.java deleted file mode 100644 index 9a345906c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/N.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for NameQualifiedTypes, Names, NormalAnnotations, NullLiterals, and NumberLiterals. */ -class N { - @NormalAnnotation( - a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7, h = 8, i = 9, j = 10, k = 11, l = 12, m = 13, - n = 14, o = 15, p = 16, q = 17, r = 18, s = 19, t = 20, u = 21, v = 22, w = 23, x = 24, - y = 25, z = 26) - void f() { - assert 00 == 0 && 0x0 == 0 && 1.0e0f == 1.00e0f && 0.2D == .2D; - java.lang. /* @MarkerAnnotation */String s = null; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/NormalAnnotation.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/NormalAnnotation.java deleted file mode 100644 index cad348bee..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/NormalAnnotation.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** JavaDoc comment. */ -public @interface NormalAnnotation { - int a(); - - int b(); - - int c(); - - int d(); - - int e(); - - int f(); - - int g(); - - int h(); - - int i(); - - int j(); - - int k(); - - int l(); - - int m(); - - int n(); - - int o(); - - int p(); - - int q(); - - int r(); - - int s(); - - int t(); - - int u(); - - int v(); - - int w(); - - int x(); - - int y(); - - int z(); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/P.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/P.java deleted file mode 100644 index 98c67bbd2..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/P.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for PackageDeclarations, ParameterizedTypes, ParenthesizedExpressions, PostfixExpressions, - * PrefixExpressions, and PrimitiveTypes. - */ -class P< - T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, - T22, T23, T24> { - void f() { - int x = (1 + 2) * 3; - ++x; - x++; - int j = + + +x; - int k = + + ++x; - int jj = - - -x; - int kk = - - --x; - boolean b = false; - boolean bb = !!b; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Pair.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Pair.java deleted file mode 100644 index 670f76856..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Pair.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** JavaDoc comment. */ -public class Pair { - public final T1 x; - public final T2 y; - - Pair(T1 x, T2 y) { - this.x = x; - this.y = y; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/PairedArguments.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/PairedArguments.java deleted file mode 100644 index 49c0891f8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/PairedArguments.java +++ /dev/null @@ -1,67 +0,0 @@ -class T { - { - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxx(), - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxx(), - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxx(), - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxx(), - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Q.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Q.java deleted file mode 100644 index ca9e6de5f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Q.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for QualifiedNames and QualifiedTypes. */ -class Q { - static final int zero = 0; - - class T {} - - static void f() { - Q. /* @MarkerAnnotation */T t; - int zero = Q.zero; - java.lang. /* @MarkerAnnotation */String s = null; - Q.f(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/R.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/R.java deleted file mode 100644 index 2e61e3ff0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/R.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for ReturnStatements. */ -class R { - void f() { - return; - } - - int f(int x) { - return x + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x - + x; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/S.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/S.java deleted file mode 100644 index 6c1c0648f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/S.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for SimpleNames, SimpleTypes, SingleMemberAnnotations, SingleVariableDeclarations, - * Statements, StringLiterals, SuperConstructorInvocations, SuperFieldAccesses, - * SuperMethodInvocations, SuperMethodReferences, SwitchCases, SwitchStatements, and - * SynchronizedStatements. - */ -class S { - // TODO(jdd): Add tests for higher language levels. - - int x = 0; - - @SingleMemberAnnotation(0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0) - S() { - super(); - } - - class SS extends S { - SS() { - super(); - super.x = 0; - super.foo(); - } - } - - void foo() { - Object[] object = null; - synchronized (object[0 + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0 - + 0]) { - switch ("abc") { - case "one": - break; - case "two": - break; - case "three": - default: - break; - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/SingleMemberAnnotation.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/SingleMemberAnnotation.java deleted file mode 100644 index 9b0dc5ab3..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/SingleMemberAnnotation.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.google.googlejavaformat.java.test; - -public @interface SingleMemberAnnotation { - int value(); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/SuperQualifier.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/SuperQualifier.java deleted file mode 100644 index cb22f9a7f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/SuperQualifier.java +++ /dev/null @@ -1,18 +0,0 @@ -class SuperQualifier { - String a() { - return this.toStringHelper() - .add("foo", foo_________________________________________) - .add("bar", bar_________________________________________); - } - - String b() { - return super.toStringHelper() - .add("foo", foo_________________________________________) - .add("bar", bar_________________________________________); - } - - { - this.aaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbb( - ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/T.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/T.java deleted file mode 100644 index 44788cde6..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/T.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for ThisExpressions, ThrowStatements, TryStatements, TypeDeclarationStatements, - * TypeDeclarations, TypeLiterals, TypeMethodReferences, TypeParameters, and Types. - */ -class T { - // TODO(jdd): Add tests for higher language levels. - - T f(int x) throws Exception { - class TT {} - if (x == 0 || T.class == null) { - return this; - } - try (AutoCloseable y = null) { - throw new RuntimeException(); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/TryWithResources.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/TryWithResources.java deleted file mode 100644 index 96f665b79..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/TryWithResources.java +++ /dev/null @@ -1,24 +0,0 @@ -class TryWtihResources { - { - try (@A - C c = c();) {} - try (final @A C c = c();) {} - try (@A - final C c = c();) {} - try (@A - final @B C c = c();) {} - - try (final BufferedWriter writer = - new BufferedWriter(new OutputStreamWriter(testFile, Charset.defaultCharset()))) { - writer.append("tom cruise\n").append("avatar\n"); - writer.flush(); - } - - try (@SuppressWarnings("resource") - Scanner inputScanner = new Scanner(inputStream).useDelimiter("\\s+|,")) { - while (inputScanner.hasNextLong()) { - placementIds.add(inputScanner.nextLong()); - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/U.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/U.java deleted file mode 100644 index 1a21e53ac..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/U.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for UnionTypes. */ -class U { - void f() { - class Exception0 extends Exception {} - class Exception1 extends Exception {} - class Exception2 extends Exception {} - class Exception3 extends Exception {} - class Exception4 extends Exception {} - class Exception5 extends Exception {} - class Exception6 extends Exception {} - class Exception7 extends Exception {} - class Exception8 extends Exception {} - class Exception9 extends Exception {} - try { - char c = '\123'; - switch (c) { - case '0': - throw new Exception0(); - case '1': - throw new Exception1(); - case '2': - throw new Exception2(); - case '3': - throw new Exception3(); - case '4': - throw new Exception4(); - case '5': - throw new Exception5(); - case '6': - throw new Exception6(); - case '7': - throw new Exception7(); - case '8': - throw new Exception8(); - case '9': - default: - throw new Exception9(); - } - } catch ( - Exception0 - | Exception1 - | Exception2 - | Exception3 - | Exception4 - | Exception5 - | Exception6 - | Exception7 - | Exception8 - | Exception9 e) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/UnaryMinus.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/UnaryMinus.java deleted file mode 100644 index 9b45ab453..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/UnaryMinus.java +++ /dev/null @@ -1,5 +0,0 @@ -class UnaryMinus { - { - int b = -1; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted.java deleted file mode 100644 index eddd9a442..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.google.googlejavaformat.java.javatests; - -import com.google.common.base.Charsets; -import java.io.File; -import java.util.List; -import junit.framework.TestCase; - -/** -* Integration test for google-java-format. Format each file -* in the input directory, and confirm that the result is -* the same as the file in the output directory. -*/ -public final class Unformatted extends TestCase { - private static final int MAX_WIDTH = 100; - - public void testFormatter() throws Exception { - Path inputPath = FileSystems.getDefault() - .getPath(TestPath.getDir(), - "input"); - Path outputPath = FileSystems.getDefault() - .getPath( - TestPath.getDir(), - "output"); - File inputDirectory = new File( - inputPath.toString()); - File outputDirectory = new File(outputPath.toString()); - for (File file : inputDirectory.listFiles()) { - assertTrue(file.isFile()); - String fileName = file.getName(); - assertTrue(fileName.endsWith(".java")); - byte[] inputBytes = - Files.readAllBytes(FileSystems.getDefault().getPath(inputDirectory.toString(), fileName)); - String inputString = new String(inputBytes, - Charsets.UTF_8); - byte[] expectedOutputBytes = Files.readAllBytes( - FileSystems.getDefault() - .getPath(outputDirectory.toString(), - fileName)); - String expectedOutputString = new String(expectedOutputBytes, Charsets.UTF_8); - JavaInput javaInput = new JavaInput(inputString); - JavaOutput javaOutput = new JavaOutput(javaInput, new JavaCommentsHelper(), false); - List errors = new ArrayList<>(); - Formatter.format(javaInput, javaOutput, MAX_WIDTH, errors, 1); - assertTrue( - errors.isEmpty()); - Writer stringWriter = new StringWriter(); - RangeSet linesFlag = TreeRangeSet.create(); - linesFlag.add(Range.< - Integer>all()); - javaOutput.writeMerged(stringWriter, - linesFlag, - MAX_WIDTH, - errors); - String outputString = stringWriter.toString(); - assertEquals(outputString, expectedOutputString); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted2.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted2.java deleted file mode 100644 index ad4ea7a13..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted2.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.google.googlejavaformat; - -/** -* Rewrite comments. This interface is implemented by -* {@link com.google.googlejavaformat.java.JavaCommentsHelper JavaCommentsHelper}. -*/ -public interface CommentsHelper { - /** - * Try to rewrite comments, returning rewritten text. - * @param text0 the literal comment text to rewrite - * @param maxWidth the line length for the output - * @param column0 the current column - * @return the rewritten comment - */ - String rewrite(String text0, int maxWidth, int column0); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted3.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted3.java deleted file mode 100644 index c262ee4f3..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/Unformatted3.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.google.googlejavaformat; - -class Unformatted3 { - /** - * This comment is not reflowed - * because it contains
    preformatted
    - * content. - */ -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/V.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/V.java deleted file mode 100644 index d25d69553..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/V.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for VariableDeclarationExpressions, VariableDeclarationFragments, and - * VariableDeclarationStatements. - */ -class V { - int x = 0, y = 1; - - void f() { - for (int a = 0, b = 1; a < b;) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/W.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/W.java deleted file mode 100644 index 5c42ff985..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/W.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for WhileStatements and WildcardTypes. */ -class W { - T f() { - while (true == true == true == true == true == true == true == true == true == true == true == true == true) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/WildBound.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/WildBound.java deleted file mode 100644 index 16c866a39..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/WildBound.java +++ /dev/null @@ -1,5 +0,0 @@ -class WildBound { - T f() { - return (T) X.class.newInstance((F) f, t); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i100.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i100.java deleted file mode 100644 index fd5e6da6a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i100.java +++ /dev/null @@ -1,7 +0,0 @@ -public class I100 { - void f() { - Object o; - o = new String @A [] {"foo", "bar"}; - o = new String @A @B [] @C [] {"foo", "bar"}; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i101.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i101.java deleted file mode 100644 index 97c321ec1..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i101.java +++ /dev/null @@ -1 +0,0 @@ -public @interface kHz {} // No prefix defined in the annotation itself diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i155.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i155.java deleted file mode 100644 index 1754f0ef4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i155.java +++ /dev/null @@ -1,5 +0,0 @@ -class I155 { - void walkAndClose(Stream stream) { - try (stream) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i176.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i176.java deleted file mode 100644 index 558611afb..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i176.java +++ /dev/null @@ -1,7 +0,0 @@ -interface InterfaceWithPrivateStaticMethod { - private static void bar() {} - - default void foo() { - bar(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i221.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i221.java deleted file mode 100644 index 1188f2d54..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i221.java +++ /dev/null @@ -1,8 +0,0 @@ -class I221 { - { - logger.log( - Level.WARNING, - "Unable to obtain jst.web facet version from selected project", //$NON-NLS-1$ - ex); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i281.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i281.java deleted file mode 100644 index baa17513b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i281.java +++ /dev/null @@ -1,25 +0,0 @@ -public enum Empty {} - - -public enum Empty {;} - - -public enum Empty { - ; - ; - ; -} - - -public enum Empty { - ; // comment - ; - ; -} - - -public enum Empty { - ; - ; - ; // comment -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i282.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i282.java deleted file mode 100644 index f2cb06897..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i282.java +++ /dev/null @@ -1,16 +0,0 @@ -public class ArrayVsVarargs { - - void f(String[] arg) {} - - void g(String... arg) {} - - void h(String @A [] arg) {} - - void i(String @B... arg) {} - - void j(String @C [] @D [] arg) {} - - void k(String @E [] @F... arg) {} - - Class c = byte[].class; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i55.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i55.java deleted file mode 100644 index a607319d3..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i55.java +++ /dev/null @@ -1,13 +0,0 @@ -import java.lang.annotation.*; - -@Target(ElementType.TYPE_USE) -@interface Interned {} - - -public class GjfTypeAnnotationOnArrayTest { - - public static void test() { - String @Interned [] iarray1 = new String @Interned [2]; - } - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i59.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i59.java deleted file mode 100644 index 292d2b021..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i59.java +++ /dev/null @@ -1,12 +0,0 @@ -import org.checkerframework.checker.tainting.qual.*; - -class Outer { - class Nested { - class InnerMost { - @A - Outer context(@B Outer.@C Nested.@D InnerMost this) { - return Outer.this; - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i60.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i60.java deleted file mode 100644 index 874d71c14..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i60.java +++ /dev/null @@ -1,9 +0,0 @@ -import org.checkerframework.checker.nullness.qual.*; - -public class FullyQualified { - - public void format1(java.lang.String a1, java.lang.@Nullable Object... a2) { - // body - } - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i65.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i65.java deleted file mode 100644 index ead2c3d78..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i65.java +++ /dev/null @@ -1,5 +0,0 @@ -import org.checkerframework.checker.nullness.qual.*; - -class UnannoPrimitives { - Object ar = new @Nullable byte[] {4}; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i66.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i66.java deleted file mode 100644 index 8db24731b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i66.java +++ /dev/null @@ -1,7 +0,0 @@ -public class AnnotatedCast { - - public static @Sibling1 int convertSibling2ToSibling1(@Sibling2 int a) { - return (@Sibling1 int) 1; - } - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i71.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i71.java deleted file mode 100644 index 89473f803..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i71.java +++ /dev/null @@ -1,19 +0,0 @@ -import java.util.Arrays; - -class Test { - Wrapper w = new Wrapper( - Arrays.asList( - "a", - "b", - "c", - "d", - "e"), - 2); - Wrapper w = new Wrapper( - Arrays.asList( - "a", - "b", - "c", - "d", - "e")); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i95.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i95.java deleted file mode 100644 index 171a5dd3d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i95.java +++ /dev/null @@ -1,3 +0,0 @@ -class I95 { - public void format2(Object @Nullable... a2) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i98.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i98.java deleted file mode 100644 index ceca556e4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-expected/i98.java +++ /dev/null @@ -1,7 +0,0 @@ -public class AnonInnerDefaults { - - public void tryStuff(final UIElement e) { - PolyIface p = - new @UI PolyIface() {}; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/A.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/A.java deleted file mode 100644 index 81d13aa1d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/A.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for AbstractTypeDeclarations, AnnotationTypeDeclarations, AnnotationTypeMemberDeclarations, - * Annotations, AnonymousClassDeclarations, ArrayAccesses, ArrayCreations, ArrayInitializers, - * ArrayTypes, AssertStatements, and Assignments. - */ -class A { - public @interface X { - int x(); - - int y() default - 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 - + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1; - } - - @X(x = 1) - private @interface Y {} - - // TODO(jdd): Add annotation declaration with empty body. - - @X(x = 1) - @Y - protected @interface Z {} - - // TODO(jdd): Include type annotations once we can include a higher language level. - - int[] array1 = new int[5]; - int[] array2 = - new int[] { - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31 - }; - int[] array3 = { - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31 - }; - int[][] array4 = { - {0, 1}, {2, 3}, {4, 5}, {6, 7}, {8, 9}, {10, 11}, {12, 13}, {14, 15}, {16, 17}, {18, 19}, - {20, 21}, {22, 23} - }; - int[][][] arrayWithLongName = - new int - [0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0] - [0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0] - []; - - A a1 = - new A() { - int x = - array1[ - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0] - + array2[ - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0] - + array3[ - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0] - + array4[ - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0][ - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0]; - }; - - void f(int something) { - assert 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 - == 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1; - assert 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 - == 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 - : "that was certainly unexpected!"; - arrayWithLongName[ - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0] = - arrayWithLongName[ - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0]; - something = - 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 - + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 - + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B.java deleted file mode 100644 index 321f7214b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for Blocks, BodyDeclarations, BooleanLiterals, and BreakStatements. */ -class B { - int x; - private int y; - public int z; - - void f() { - LABEL: - while (true != false) { - if (false == true) - break; - if (false == false) - break LABEL; - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B112853497.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B112853497.java deleted file mode 100644 index e38d0b32c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B112853497.java +++ /dev/null @@ -1,12 +0,0 @@ -class B112853497 { - { - XxxxxxxxxxXxxx xxxXxxxx = - xxxXxxxx - .xxxxXxXxxxx(xxxxXxxx, XXXXXX_XXXX_XXXXXXXX_XX_XXXXXXXX) - .toBuilder() - .xxxXxxxxXxxxXx(xxxxxXx.xxxXxxxxXxxxXx()) - .xxxXxxxxXxxxXx(xxxxxXx.xxxXxxxxXxxxXx()) - .xxxXxxxxx(xxxxxx.xxxXxxxxxXxxx()) - .xxxxx(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B124394008.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B124394008.java deleted file mode 100644 index 0b51407d7..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B124394008.java +++ /dev/null @@ -1,8 +0,0 @@ -class B124394008 { - { - LocalReviewProto.Builder newReview = - readProfileResponse.flatMap(authorExtractor::extract) - .map(luReviewsExtractor::toLocalReviewProto) - .orElse(LocalReviewProto.getDefaultInstance()).toBuilder(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B126411718.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B126411718.java deleted file mode 100644 index c5cedba4b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B126411718.java +++ /dev/null @@ -1,10 +0,0 @@ -class B126411718 { - { - logger - .atDebug() - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B18479811.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B18479811.java deleted file mode 100644 index f805f6734..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B18479811.java +++ /dev/null @@ -1,15 +0,0 @@ -class Test { - public void testPrimitiveFields() { - ConverterVerifier.verifyFieldsAreAnnotatedWithToPojo( - Contact.class, DomainContact.class, - new ImmutableList.Builder().add( - "address1", "address2", "assistant", "assistantPhone", "birthDate", "committed", - "createdBy", "createdDate", "deleted", "department", "description", - "domainObjId", "email1", "email2", "emailOptOut", "firstName", "lastName", - "leadSource", "level", "modifiedBy", "modifiedDate", - "phoneFax", "phoneHome", "phoneMobile", "phoneOther", "phoneWork", - "salutation", "title" - - ).build()); - } -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950219.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950219.java deleted file mode 100644 index b4dd88499..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950219.java +++ /dev/null @@ -1,8 +0,0 @@ -class B19950219 { - @Override - String normalizeWord(String word) { - return Ascii.toLowerCase(word); - } - @Override - String convert(CaseFormat format, String s) { - }} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950468.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950468.java deleted file mode 100644 index 9b4a8e239..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950468.java +++ /dev/null @@ -1,5 +0,0 @@ -class B19950468 { - int code() {} - - // comment -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950815.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950815.java deleted file mode 100644 index 369b8d1f1..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19950815.java +++ /dev/null @@ -1,12 +0,0 @@ -class B19950815 { - void m() { - checkArgument( - truncationLength >= 0, "maxLength (%s) must be >= length of the truncation indicator (%s)", - maxLength, truncationIndicator.length()); - } - - private String finishCollapseFrom( - CharSequence sequence, int start, int end, char replacement, StringBuilder builder, - boolean inMatchingGroup) { - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19996259.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19996259.java deleted file mode 100644 index a029186ee..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B19996259.java +++ /dev/null @@ -1,16 +0,0 @@ -class B19996259 { - void g( // line comment - int x) {} - - void // - g // - ( // - int // - x // - , // - int // - y // - ) // - { // - } // -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128174.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128174.java deleted file mode 100644 index a4ae333e9..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128174.java +++ /dev/null @@ -1,8 +0,0 @@ -class B20128174 { - - enum Suit { DIAMONDS, HEARTS, CLUBS, SPADES }; - - enum Suit { DIAMONDS, HEARTS, CLUBS, SPADES; }; - - enum Suit { DIAMONDS, HEARTS, CLUBS, SPADES,; }; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128588.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128588.java deleted file mode 100644 index 74ed3dbc4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128588.java +++ /dev/null @@ -1,84 +0,0 @@ -@Foo @Bar @Baz package edu.oswego.cs.dl.util.concurrent; - -@Foo @Bar @Baz class Test { - - @Foo @Bar @Baz Object f() { - } - - @Foo @Bar @Baz public Object f() { - } - - @Foo @Bar @Baz void f() { - } - - @Foo @Bar @Baz static Object field; - - static @Foo @Bar @Baz Object field; - - @Foo @Bar @Baz Object field; - - @Foo(xs=42) @Bar @Baz Object field; - - { - @Foo @Bar @Baz final Object var; - - final @Foo @Bar @Baz Object var; - - @Foo @Bar @Baz Object var; - - @Foo(xs=42) @Bar @Baz Object var; - } - - void f( - @Foo @Bar @Baz final Object var, - final @Foo @Bar @Baz Object var, - @Foo @Bar @Baz Object var, - @Foo(xs=42) @Bar @Baz Object var) {} - - <@TA T extends @TA Object> @TA T f(List a, List b) throws @TA Exception {} - - @FooXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX @BarXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX @BazXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX int x; - -@FooXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX @BarXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX @BazXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX int x; - - @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated Object var; - - @Deprecated @Deprecated @Deprecated @Deprecated @Deprecated Object var; - - @Deprecated(x=42) @Deprecated @Deprecated @Deprecated @Deprecated Object var; - - @Deprecated( - x = 42, - y = { - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - }) - Object var; - - @Deprecated( - y = { - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - }) - Object var; -} - -@Frozzle({ - @Mirror(in = edu.oswego.cs.dl.util.concurrent.F.class, methods = "foo"), - @Mirror(in = edu.oswego.cs.dl.util.concurrent.F.class, methods = "foo"), - @Mirror(in = edu.oswego.cs.dl.util.concurrent.F.class, enable = false, methods = { - "foo", "foo", "foo", "foo", "foo", - "foo", "foo", "foo", "foo", "foo", - "foo", "foo", "foo", "foo", "foo", - }), - @Mirror( - in = edu.oswego.cs.dl.util.concurrent.F.class, - enable = false, - methods = {"foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo"}), - @Mirror(in = edu.oswego.cs.dl.util.concurrent.F.class, methods = "foo"), -}) -class C {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128760.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128760.java deleted file mode 100644 index 30d17f43b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128760.java +++ /dev/null @@ -1,107 +0,0 @@ -class B20128760 { - void f() { - x = - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - XxxxxxxxxXxx.xxxxxxx() - .xxx(XxxxxxxxxXxxXxxx.Xxxxx.XXXXX, "Xxxxx xxxxxxxxx xxxxx") - .xxx( - XxxxxxxxxXxxXxxx.Xxxxx.XXXXXxXXXXX, - XxxxXxxxxxxxxx.xxxXxxxxxxxxXxxxxXxxxxXxXxxxxx(Xxxxxxxxxx.xxxXxxxXxxxx(x))) - .xxxxx(); - - xxxxxxXxxx( - xxx - .xxxXxXxxxxxxx( - new XxxxxxxxxXxxxxxxx.Xxxxxxx() - .xxxxXxxxXxx( - Xxxxx.xxxXxxxxXxxx( - new XxxxXx( - xxxxxxxxx1.xxxXxxxXx().xxxXxxxx() - + xxxxxxxxx2.xxxXxxxXx().xxxXxxxx()))) - .xxxxx()) - .xxxXxxxxxx()) - .xxxxxxxxXxxxxxx(); - - XXxxxx xxxxxxxxxXxxXxxXxXxxxxxxxXx = - XX - .xxxxXxxXxxx2( - "XxxxXxxxxxxxXxxxXxxxXxxxxxxxXxxxXxxXxxxxxxXxxxxxxxx", - xxxxxxxxXxxxXxXxxxxxxxXx, - xxxxxxxxXxxxXxxxxXxxxXxXxxxxxxxXx) - .xxxxxxxxXx( - "XxxxxxxxXxxxxxxxxXxx", - xxxxxxxxXxxxxxxxxXxxXx, - XX.xxxxxXx(XX.xxxxx(), XX.xxxxxx(XxxxxxxXxxxxxxxxxxXxxxxxxxx.xxxxx))); - - xxXxxxxxxxXxxxXxxx = - (XxxxXxxx) - xxxxxxxxXxxxxxxxxx.xxx() - .xxxxxXxxxxxx - .xxxXxxxxxxx(xxxxxxxxXxxxxxxxxx.xxx().xxxxXxxxx.xxxXxxxxxxXxxx() - 1) - .xxxXxxx() - .xxxxXxxxXxXx(X.xx.xxxxxxxxxxxxxxxxxxxxxxxxxxx); - - xxxxxxXxxx( - xxxxxxxxxx - .xxxXxxxXxxxxXxxxxxxxxxxXxxxXxxxXxxxxXxxx(XXXxXXXXxXX, XXXXXXxXXXxXXXXxXX, XXXXXxXX) - .xxxxxxxxxxxXxxxXxxxXxxxxx()) - .xxxxxxxxXxxxxxx( - xxxxXxxxxxxxxxxXxxxXxxxXxxxx(xxxx1Xxxx, Xxxxx.XXxXXX), - xxxxXxxxxxxxxxxXxxxXxxxXxxxx(xxxx2Xxxx, Xxxxx.XXxXXX)); - - xxxx( - xxxx( - xxxx( - xxxx( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)))); - - assertThat( - main - .format("--offset", "0", "--length", String.valueOf(input.length()), path.toString())) - .isEqualTo(0); - } - - private static class GenerateDashboardRowFn - extends - XX.XxXx< - Xxxx< - Xxxx, - Xxxxx2.XxxXxxxXxxxxxxxxxx>>, - Xxxx> {} - - public class XxxxxxxXxxxxxxxXxxxXxxxxXxxxxxx - extends - XxxxxxxXxxxxxxxXxxxXxxxxXxxxxxx< - XxxxxxxXxxxxxxxXxxxXxxxxXxxxxxx, XxxxXxxxxxxXxxxxxxxx>> {} - - public class Foo - extends - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} - - public class Foo - extends - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - implements - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} - - public class Foo - extends - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - implements - Xxxxxxxxxxxxx, - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} - - { - Stream itemIdsStream = stream(members) - .flatMap(m -> m.getFieldValues() - .entrySet() - .stream() - .filter(fv -> itemLinkFieldIds.contains(fv.getKey())) - .flatMap(fv -> FieldDTO.deserializeStringToListOfStrings(fv.getValue()) - .stream() - .map(id -> new ItemKey(fieldsById.get(fv.getKey()).getItemTypeId(), id)))); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128921.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128921.java deleted file mode 100644 index 5d3a9eea3..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20128921.java +++ /dev/null @@ -1,10 +0,0 @@ -public class B20128921 { - - void m(Iterable ax) { - - for (T a : ax) { - - System.err.println(x); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20341001.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20341001.java deleted file mode 100644 index 504ba77bd..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20341001.java +++ /dev/null @@ -1,54 +0,0 @@ -public class B20341001 { - int[] xs = { - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - }; - int[] xs = { - Foo.CONSTxx, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - }; - int[] xs = { - Foo_CONST, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - }; - int[] xs = { - "foo", - "0123456", - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - }; - int[] xs = { - "foo", - "01234567", - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - }; - { - return ImmutableList.of( - item1, - item2, - item3, - item4, - item5, - item6, - item7, - item8, - item9, - item10, - item11, - item12, - item13); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20524742.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20524742.java deleted file mode 100644 index 7ea5a299f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20524742.java +++ /dev/null @@ -1,3 +0,0 @@ -class Test {{ - int x; -}} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20529113.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20529113.java deleted file mode 100644 index 8f65948e8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20529113.java +++ /dev/null @@ -1,12 +0,0 @@ -@BugPattern(category = GUAVA, severity = NOT_A_PROBLEM, maturity = EXPERIMENTAL) -@BugPattern( - name = "AsyncFunctionReturnsImmediate", summary = SIMPLIFY, - category = GUAVA, severity = NOT_A_PROBLEM, maturity = EXPERIMENTAL) -@BugPattern( - name = "AsyncFunctionReturnsImmediate", summary = SIMPLIFY, - explanation = - "If an AsyncFunction always returns immediateFuture() and never throws, it can " - + "be replaced with a Function.", - category = GUAVA, severity = NOT_A_PROBLEM, maturity = EXPERIMENTAL) -class Test { -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20531711.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20531711.java deleted file mode 100644 index 01f410f0b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20531711.java +++ /dev/null @@ -1,16 +0,0 @@ -class B20531711 { - void m() { - when(mLoginHelper.getAllAccounts()).thenReturn( - new Account[] { - new Account("test1", "test1"), - new Account("test2", "test2"), - }); - - when(mLoginHelper.getAllAccounts()).thenReturn( - new Account[] { - new Account("test1", "test1"), - new Account("test2", "test2"), -// asd - }); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20535125.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20535125.java deleted file mode 100644 index 30c232b56..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20535125.java +++ /dev/null @@ -1,146 +0,0 @@ -package com.google.googlejavaformat.java.test; - -class Test { - void m() { - if (!metadata.ignoreOutputTransformations() - && Producers.isListenableFutureMapKey(outputKey)) { - ImmutableList> nodes = createMapNodes((ProducerNode) node); - checkCollectionNodesAgainstWhitelist(nodes, whitelist); - return nodes; - - } else if (!metadata.ignoreOutputTransformations() - && Producers.isListenableFutureListKey(outputKey)) { - ImmutableList> nodes = createListNodes((ProducerNode) node); - return nodes; - } - - Set shorts = new HashSet<>(); - for (short i = 0; i < 99; ++i) { - - shorts.add(i); - shorts.remove(i - 1); - - } - - short i = 0; - do { - - shorts.add(i); - shorts.remove(i - 1); - i++; - - } while (i < 99); - - if (true) { - - System.err.println("Hi"); - - } - - if (true) { - - System.err.println("Hi"); - - } else { - - System.err.println("Hi"); - - } - - if (true) { - - System.err.println("Hi"); - - } else if (true) { - - System.err.println("Hi"); - - } else { - - System.err.println("Hi"); - - } - - try { - - throw new Exception(); - - } catch (Exception e) { - - System.err.println("Hi"); - - } - - try { - - throw new Exception(); - - } finally { - - System.err.println("Hi"); - - } - - try { - - throw new Exception(); - - } catch (Exception e) { - - System.err.println("Hi"); - - } finally { - - System.err.println("Hi"); - - } - - try { - - throw new Exception(); - - } catch (Exception e) { - - System.err.println("Hi"); - - } catch (Exception e) { - - System.err.println("Hi"); - - } finally { - - System.err.println("Hi"); - - } - - try (Lock l = lock.lock()) {} - - try (Lock l = lock.lock()) {} finally {} - - for (;;) {} - - while (true) {} - - do {} while (true); - - if (true) {} - - if (true) {} else if (true) {} - - if (true) {} else if (true) {} else if (true) {} - - if (true) {} else if (true) {} else {} - - if (true) {} else if (true) {} else if (true) {} else {} - - try {} catch (Exception e) {} catch (Exception e) {} finally {} - - try {} catch (Exception e) {} finally {} - - try {} catch (Exception e) {} catch (Exception e) {} - - try {} catch (Exception e) {} - - } - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20567842.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20567842.java deleted file mode 100644 index 5a7b3c5ae..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20567842.java +++ /dev/null @@ -1,10 +0,0 @@ -public class B20567842 { - // don't try to wrap the rhs as '{1, 2, 3}', go to block-like initializer style: - int[] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = {1, 2, 3}; - - // force block style, but not one-per-line for trailing ',': - int[] x = {a.b, true ? 1 : 2, CONST,}; - - // don't format one-per-line here: - int[] x = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20569245.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20569245.java deleted file mode 100644 index fcdf5edc7..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20569245.java +++ /dev/null @@ -1,35 +0,0 @@ -class B20569245 { - void m() { - if (true) System.err.println("asd"); - - if (true) System.err.println("asd"); - else if (true) System.err.println("asd"); - else System.err.println("asd"); - - if (true) System.err.println("asd"); - else if (true) System.err.println("asd"); - - if (true) System.err.println("asd"); - else System.err.println("asd"); - - if (true) - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else if (true) - System.err.println("asd"); - else - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else if (true) - System.err.println("asd"); - - if (true) - System.err.println("asd"); - else - System.err.println("asd"); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20577626.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20577626.java deleted file mode 100644 index b14efeb24..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20577626.java +++ /dev/null @@ -1,18 +0,0 @@ -class B20577626 { - private @Mock - GsaConfigFlags mGsaConfig; - - @Foo - @Bar - private @Mock - GsaConfigFlags mGsaConfig; - - @Foo - abstract @Bar - void m() {} - - @Foo - @Baz - abstract @Bar - void m() {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20578077.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20578077.java deleted file mode 100644 index 11b12ed2a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20578077.java +++ /dev/null @@ -1,13 +0,0 @@ -class B20578077 { - { - new IteratorTester( - 4, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.KNOWN_ORDER) { - @Override - protected Iterator newTargetIterator() { - Iterator iterator = Lists.newArrayList(1, 2).iterator(); - return new IteratorWithSunJavaBug6529795(iterator); - } - } - .test(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20580212.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20580212.java deleted file mode 100644 index c203e3b0c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20580212.java +++ /dev/null @@ -1,16 +0,0 @@ -class B20580212 { - void m() { - GroupExpansionReply mockIsgReply = - buildRecipientListSubGroupReply( - RECIPIENT1, - alternatives /* isgExpansions */, - alternativesDeltas /* isgExpansionsScoreDeltas */, - false /* withRecipient */, - 0 /* recipientScoreDelta */); - - try { - } catch (IllegalStateException e) { /* expected */ } - } - - static class ThrowsAtEndException extends RuntimeException { /* nothing */ } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20701054.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20701054.java deleted file mode 100644 index 957c2df57..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20701054.java +++ /dev/null @@ -1,185 +0,0 @@ -class B20701054 { - void m() { - ImmutableList x = ImmutableList.builder().add(1).build(); - OptionalBinder.newOptionalBinder(binder(), InputWhitelist.class).setBinding().to( - AllInputWhitelist.class); - - Foo z = Foo.INSTANCE.field; - Foo z = Foo.INSTANCE.field.field; - Foo z = Foo.INSTANCE.field.field.field; - Foo z = Foo.INSTANCE.field.field.field.field; - Foo z = Foo.INSTANCE.field.field.field.field.field; - - ImmutableList x = ImmutableList.INSTANCE.add(1).build(); - ImmutableList x = ImmutableList.INSTANCE.add(1).add(2).build(); - ImmutableList x = ImmutableList.INSTANCE.add(1).add(2).add(3).build(); - ImmutableList x = ImmutableList.INSTANCE.add(1).add(2).add(3).add(4).build(); - - ImmutableList x = ImmutableList.builder().add(1).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).add(3).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).add(3).add(4).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).add(3).add(4).add(5).build(); - ImmutableList x = ImmutableList.builder().add(1).add(2).add(3).add(4).add(5).add(6).build(); - - ImmutableList x = - new ImmutableList.Builder<>() - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .build(); - - ImmutableList x = - ImmutableList.new Builder<>() - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .add(xxxxx) - .build(); - - System.err.println( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - Class.my.contrived.example.function( - veryLongArgumentxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - PTable> latestResults = - FJ.joinOneShot2(accountSummaryProvider.get(), results).parallelDo( - "extractPageSpeedUrls", new ExtractPageSpeedUrlsFn(false)); - - PTable adImpressionsByAccount = - impressionExtractor.getImpressionBreakdownByAccountId().parallelDo( - "rekeyAdImpressionsByAccountId", new ExtractTotalImpressionsFn()); - - PTable crawlerErrorsByCode = - crawlReportSource.read("readCrawlReportTable").parallelDo( - "reKeyErrorsByPropertyCode", new RekeyErrorsByPropertyCodeFn()); - - if (ImmutableList.builder().add(1).add(2).add(3)) { - } - - if (ImmutableList.builder() - .add(1) - .add(2) - .add(3) - .add(4)) {} - - if (value.fst.name.toString().equals("value")) { - } - - analysis().analyze(compilationUnit, context, configuration, new DescriptionListener() { - @Override - public void onDescribed(Description description) { - listener.onDescribed(description.filterFixes(new Predicate() { - @Override - public boolean apply(Fix fix) { - return compiles(fix, (JCCompilationUnit) compilationUnit, context); - } - })); - } - }); - - (test ? xxx : yyy).zzz(xxx); - - (test ? xxx : yyy) - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - (test - ? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - : yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy) - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - zzzzzzzzzzzzzzzzzzzz.zzzzzzzzzzzzzzzzzzzzzzzzzzz.zzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - field.field.field.field.field.field.field.field.field.field.field.field.field.field.field.field - .field.field.field.field.field.method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - (test - ? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - : yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy) - .field.field.field.field.field.field.field.field.field.field.field.field.field.method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - (test - ? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - : yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy) - .field.field.field.field.field.field.field.field.field.field.field.field.field.field.field - .field.field.field.field.field.field.method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - field.field.field.field.field.field.method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - field.field.field.field.field.field.method( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - .yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy - .yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy - .yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - .yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy(); - - edu.oswego.cs.dl.util.concurrent.misc.ImmutableList.builder( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz); - - edu.oswego.cs.dl.util.concurrent.misc.zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz - .ImmutableList.builder( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzz( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz); - - int u = - edu.oswego.cs.dl.util.concurrent.misc.zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz - .ImmutableList.builder( - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz - .zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz; - - for (String configured : errorProneOptions().getSeverityMap().keySet()) {} - - return fffffffffff( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - return fffffffffff( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - .fffffffffffff( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20844369.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20844369.java deleted file mode 100644 index 86e46d50e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20844369.java +++ /dev/null @@ -1,31 +0,0 @@ -public class B20844369 { - private static final String ID_PATTERN = - // TODO(daw): add min/max lengths for the numbers here, e.g. android ID - "(?:(?\\d+)\\+)?" // optional Android ID - + "(?\\d+)" // type - + ":" - + "(?\\d+)" // timestamp - + "(?%" // begin optional subtype - + "(?:(?\\d+)#)?" // subtype's optional user ID, followed by a hash - + "(?[0-9a-fA-F]{8})" // subtype's category hash - + "(?[0-9a-fA-F]{8})" // subtype's token hash - + ")?"; // end optional subtype - - int x = //foo - 42 + //bar - 1; - - int x = - //foo - 42 + //bar - 1; - - int x = /*foo*/ - 42 + //bar - 1; - - int x = - /*foo*/ - 42 + //bar - 1; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20915776.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20915776.java deleted file mode 100644 index 29d59e5a1..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B20915776.java +++ /dev/null @@ -1,10 +0,0 @@ -class B20915776 { - @Inject - void ChunkAnalysis( - // TODO(user) ... - @Parent DatasetSource supporters, - @Child DatasetSource children, - @Parent Provider parentSupportsDecider, - @Child Provider childSupportsDecider) { - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21031147.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21031147.java deleted file mode 100644 index ac2bf9840..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21031147.java +++ /dev/null @@ -1,6 +0,0 @@ -public class B21031147 { - { - return new StringBuilder(maxLength) - .append(seq, 0, truncationLength).append(truncationIndicator).toString(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21105569.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21105569.java deleted file mode 100644 index 49b6d1344..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21105569.java +++ /dev/null @@ -1,9 +0,0 @@ -class B21105569 { - void f() { - // asd - } - void g() { - /* asd */ - } - void h() { /* asd */ } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21185365.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21185365.java deleted file mode 100644 index 7ffc27cc3..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21185365.java +++ /dev/null @@ -1,5 +0,0 @@ -class B21185365 { - { - for (int i = 0; i < s.length();) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21192435.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21192435.java deleted file mode 100644 index ffebae4ac..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21192435.java +++ /dev/null @@ -1,12 +0,0 @@ -package testdata.output; - -public class B21192435 { - - static class Test extends Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx implements Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx{} - - static class Testxxxxxxxxx extends Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx implements Xxxxx{} - - static class Testxxxxxxxxx extends Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx implements Xxxxxxxxxxxxxxxx{} - - static class Test extends Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx implements Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21278211.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21278211.java deleted file mode 100644 index 13e1559db..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21278211.java +++ /dev/null @@ -1,23 +0,0 @@ -class B21278211 { - void m() { - return names.isEmpty() || names.size() == 1 && names.get(0).toString().isEmpty(); - - // use unified breaks for all chained dereferences - - x.f().g(); - x.fzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz() - .gzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz(); - - x.f().g().h(); - x - .f() - .g() - .hzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz(); - - x - .f() - .g() - .h() - .i(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21283374.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21283374.java deleted file mode 100644 index 0402caa67..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21283374.java +++ /dev/null @@ -1,57 +0,0 @@ -class B21283374 { - void f(boolean flagA, boolean flagB, boolean flagC, boolean flagD, boolean flagE, boolean flagF, boolean flagG, boolean flagH, boolean flagI, boolean flagJ, boolean flagK) {} - - { - f( - /*flagA=*/Boolean.TRUE, - /*flagB=*/Boolean.FALSE, - /*flagC=*/Boolean.FALSE, - /*flagD=*/Boolean.FALSE, - /*flagE=*/Boolean.FALSE, - /*flagF=*/Boolean.FALSE, - /*flagG=*/Boolean.FALSE, - /*flagH=*/Boolean.FALSE, - /*flagI=*/Boolean.FALSE, - /*flagJ=*/Boolean.FALSE, - /*flagK=*/Boolean.FALSE); - - f( - /*flagA=*/ Boolean.TRUE, - /*flagB=*/ Boolean.FALSE, - /*flagC=*/ Boolean.FALSE, - /*flagD=*/ Boolean.FALSE, - /*flagE=*/ Boolean.FALSE, - /*flagF=*/ Boolean.FALSE, - /*flagG=*/ Boolean.FALSE, - /*flagH=*/ Boolean.FALSE, - /*flagI=*/ Boolean.FALSE, - /*flagJ=*/ Boolean.FALSE, - /*flagK=*/ Boolean.FALSE); - - assertThat(foo.barAndBaz(/*paramName=*/false, thingy)).isEqualTo(new Something("")); - assertThat(foo.barAndBaz( /*paramName=*/false, thingy)).isEqualTo(new Something("")); - assertThat(foo.barAndBaz(/*paramName=*/ false, thingy)).isEqualTo(new Something("")); - - f(/*paramName=*/ false); - - assertThat__________________________________________________________(/*paramName=*/ false, thingy); - assertThat__________________________________________________________( - /*paramName=*/ false, thingy); - - f( - arg1, /* which arg is this attached to? */ - arg2, - arg3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - - f( - /* paramName1 */ arg1, - /* paramName2 */ arg2, - arg3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - - f( - arg1, /* paramName1 */ - arg2, /* paramName2 */ - arg3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21305044.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21305044.java deleted file mode 100644 index 049233cff..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21305044.java +++ /dev/null @@ -1,32 +0,0 @@ -class B21305044 { - - class T<@Nullable X extends @Nullable Object, - @Nullable Y extends @Nullable Object, - @Nullable Z extends @Nullable Object> - extends Function<@Nullable X, @Nullable Y> - implements Predicate<@Nullable Z> { - public T(@Nullable T this, List<@Nullable X> xs) { - } - - public T(@Nullable T B21305044.this, List<@Nullable X> xs) { - } - - List<@Nullable ?> a; - List<@Nullable ? extends @Nullable Object> b; - List<@Nullable ? super @Nullable Object> c; - - List c; - } - - Function f = com.foo.bar.Baz::func; - Function g = new Baz()::func; - Function h = Baz::new; - Function i = com.foo.bar.VeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongBaz::new; - - { - Function f = () -> moderatelyLongResult; - Function f = () -> breakableResult + breakableResult + breakableResult + breakableResult + breakableResult + breakableResult + breakableResult + breakableResult + breakableResult; - Function f = () -> System.err.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); - Function f = (someParam) -> System.err.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21327412.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21327412.java deleted file mode 100644 index 2b2d4e0ca..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21327412.java +++ /dev/null @@ -1,3 +0,0 @@ -class B21327412 { - int i = Data._ID; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21329312.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21329312.java deleted file mode 100644 index 8fa68c06a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21329312.java +++ /dev/null @@ -1,6 +0,0 @@ -public class B21329312 { - boolean test() { - return wasEdited || didContactsChange || medicalInfoManager.getTemporaryProfilePicture() != null - || inMemoryAccessMedicalProfileAboveKeyguard != originalAccessMedicalProfileAboveKeyguard; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21331232.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21331232.java deleted file mode 100644 index 3d2f94e58..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21331232.java +++ /dev/null @@ -1,13 +0,0 @@ -class B21331232 { - private - S instantiate( - Class wrapperType, Type t, FailureStrategy fs, SF factory, Iterable data) { - } - - public > - IterableSubject, T, C> that(@Nullable Iterable target) { - return IterableSubject.create(getFailureStrategy(), target); - } - - boolean mightContain(T object, Funnel funnels, int numHashFunctions, BitArray bits); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21465217.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21465217.java deleted file mode 100644 index 3973420b2..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21465217.java +++ /dev/null @@ -1,12 +0,0 @@ -class B21465217 { - void m() { - try (JimfsOutputStream out2 = newOutputStream(false); - BufferedOutputStream bout = new BufferedOutputStream(out2); - OutputStreamWriter writer = new OutputStreamWriter(bout, UTF_8___________________________)) { - } - - try (Writer sourceWriter = env.getFiler().createSourceFile(qualifiedNamezzzzzzzz).openWriter()) { - sourceWriter.append(fileContents); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21465477.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21465477.java deleted file mode 100644 index 3f0ca4b69..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21465477.java +++ /dev/null @@ -1,10 +0,0 @@ -class B21465477 { - - @Nullable private final String simpleFieldName; - @Nullable private final String shortFlagName; - private final String containerClassName; - private final String type; - private final String doc; - private final DocLevel docLevel; - @Nullable private final String altName; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21585653.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21585653.java deleted file mode 100644 index 7c6a25b62..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21585653.java +++ /dev/null @@ -1,6 +0,0 @@ -class B21585653 { - { - try (X x = x;) { - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21608216.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21608216.java deleted file mode 100644 index e986a8a71..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21608216.java +++ /dev/null @@ -1,56 +0,0 @@ -@PluginInfo(shortName = "chromesuggestions", - owner = "mathp", - demoLink = "unspecified", - modules = { BackendsModule.class, - CommonBackendsModule.class, - ChromeSuggestionsPlugin.ChromeSuggestionsModule.class }) -@Module(library = true, complete = false) -@Module(library = true, complete = false, injects = {ClassInfoTracker.class, JslayoutMetaProto.class}) -@Module( - library = true, - complete = false, - injects = { - ClassInfoTracker.class, JslayoutMetaProto.class, JslayoutMetaProto.class, JslayoutMeta.class - } -) -@Module( - library = true, - complete = false, - injects = { - ClassInfoTracker.class, JslayoutMetaProto.class, JslayoutMetaProto.class, JslayoutMeta.class, JslayoutMeta.class - } -) -@Module(injects = {One.class, Two.class}, includes = {Three.class, Four.class}) -@Module( - library = true, - complete = false, - numbers = {1, 2, 3} -) -@Module( - library = true, - complete = false, - numbers = { - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 - } -) -@Module( - library = true, - complete = false, - numbers = { - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30 - } -) -@Module({ClassInfoTracker.class, JslayoutMetaProto.class, JslayoutMetaProto.class}) -@Module({ - ClassInfoTracker.class, JslayoutMetaProto.class, JslayoutMetaProto.class, JslayoutMeta.class -}) -@Module({ - ClassInfoTracker.class, - JslayoutMetaProto.class, - JslayoutMetaProto.class, - JslayoutMeta.class, - JslayoutMeta.class -}) -class B21608216 { -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21647014.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21647014.java deleted file mode 100644 index 949c7a380..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21647014.java +++ /dev/null @@ -1,15 +0,0 @@ -package test; - -import java.util.List;; - -; -class Test { - ; - public int x = 42;; - ;;; - { - int x = 1;;; - } - ; -} -; diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21954779.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21954779.java deleted file mode 100644 index 804eb98ae..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B21954779.java +++ /dev/null @@ -1,46 +0,0 @@ -class B21954779 { - { - when(computeApi.findOrCreateVm( - VM_METADATA, - Optional.absent(), - AssignReservedIp.YES, - AttachDataDisk.YES)) - .thenReturn(OPERATION); - - fail(String.format( - " Experiment name %s is used multiple times in %s", - expName, envName, zzzzzzzzzzzz, zzzzzzzzzzzz)); - - new Handler(Looper.getMainLooper()) - .post( - new Runnable() { - @Override - public void run() { - utils.showShortToast( - application.getString( - R.string.working_on_project_format, - Utils.getProjectDisplayName(selectedProject))); - } - }); - - (new Handler()) - .post( - new Runnable() { - @Override - public void run() { - showErrorAndSetDone(error); - } - }); - - getContext() - .getErrorReporter() - .log(new RuntimeException("Called layout with a non-zero segment index: " + segmentIndex)); - - bind( - new Key>() {}); - - // this isn't a feature; we'd prefer to keep `new Key...` as one unit - bind( - new Key>() {}).then(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22166687.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22166687.java deleted file mode 100644 index 33b4c1385..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22166687.java +++ /dev/null @@ -1,18 +0,0 @@ -class B22166687 { - public static class Wrapper - extends CrossComponentSetBindingsWrapper< - ExtensionWrapper> - implements CrossComponentSetBindingsWrapper< - ExtensionWrapper> { - void m() {} - } - public static class Wrapper - extends CrossComponentSetBindingsWrapper< - ExtensionWrapper> - implements CrossComponentSetBindingsWrapper< - ExtensionWrapper>, - CrossComponentSetBindingsWrapper< - ExtensionWrapper> { - void m() {} - } -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22169269.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22169269.java deleted file mode 100644 index 3caf93760..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22169269.java +++ /dev/null @@ -1,14 +0,0 @@ -class B22169269 { - { - try { - } catch ( - ClassNotFoundException - | NoSuchMethodException - | InvocationTargetException - | IllegalAccessException e) { - } - try { - } catch (ClassNotFoundException | NoSuchMethodException e) { - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22424362.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22424362.java deleted file mode 100644 index 800b1f0d8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22424362.java +++ /dev/null @@ -1,8 +0,0 @@ -class Test { - { - int x = - 1 - - + 2; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22469536.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22469536.java deleted file mode 100644 index 9f06d6f93..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22469536.java +++ /dev/null @@ -1,6 +0,0 @@ -public class Test { - public static void foo() { - long x = -9223372036854775808L; - int y = -2147483648; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22488373.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22488373.java deleted file mode 100644 index 11747bef0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22488373.java +++ /dev/null @@ -1,11 +0,0 @@ -class B22488373 { - { - if (enumBindingKeys.contains(bindingKey) - && (bindingKey - .key() - .type() - .getKind() - .equals(DECLARED) - && !((DeclaredType) bindingKey.key().type()).getTypeArguments().isEmpty())) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22610221.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22610221.java deleted file mode 100644 index eb05cfde0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22610221.java +++ /dev/null @@ -1,12 +0,0 @@ -class B22610221 { - { - for (Map.Entry, Object> entry : - FOO - .bar() - .bazs() - .thing(someThing) - .entrySet()) { - output.put(entry.getKey(), entry.getValue()); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22815364.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22815364.java deleted file mode 100644 index 85fbf6402..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22815364.java +++ /dev/null @@ -1,46 +0,0 @@ -class B22815364 { - @Xxx({ - "=0|=0", "Xxx xxxx xx xxxxxxxx xx xxxxxxxxxxxxx.", - "=0|xxx", "Xxx xxxx x xxxxxxxxxxxx.", - "xxx|=0", "Xxx xxxx x xxxxxxx.", - "xxx|xxx", "Xxx xxxx xxx xxxxxxx xxx xxx xxxxxxxxxxxx.", - "xxxxx|xxx", "Xxx xxxx {0} xxxxxxxx xxx xxx xxxxxxxxxxxx.", - "xxx|xxxxx", "Xxx xxxx xxx xxxxxxx xxx {1} xxxxxxxxxxxxx." - }) - int x; - - @Xxx({ - "a", "b", - "c", "d", - // - }) - int y; - - int[] xs = { - 1, 2, 3, - 1, 2, 3, - 1, 2, 3, - }; - - int[] xs = { - 1, 2, 3, - 1, 2, 3, - 1, 2, - }; - - int[] xs = { - 1, 2, - 1, - }; - - int[][] xs = { - {0b111111111111111111, 0b111111111111111111, 0b111111111111111111, 0b111111111111111111, - 0b111111111111111111, 0b111111111111111111, 0b111111111111111111}, {0b111111111111111111, - 0b111111111111111111, 0b111111111111111111, 0b111111111111111111, 0b111111111111111111, - 0b111111111111111111, 0b111111111111111111}, - {0b111111111111111111, 0b111111111111111111, 0b111111111111111111, 0b111111111111111111, - 0b111111111111111111, 0b111111111111111111, 0b111111111111111111}, {0b111111111111111111, - 0b111111111111111111, 0b111111111111111111, 0b111111111111111111, 0b111111111111111111, - 0b111111111111111111, 0b111111111111111111}, - }; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22848286.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22848286.java deleted file mode 100644 index 18796c128..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22848286.java +++ /dev/null @@ -1,8 +0,0 @@ -class B22848286 { - - @FxxxSxxx(xxxx = "xxxxxx_xxxxxxx_xxxxxxxxx_xxxx", xxxx = "Xxxxx xxxx xx xxxxxx xxxxxxx xxxxxxxxx.") - int x; - - @FxxxGxxxxxxxx(xxxx = "Xxx xxxxxx xxxxxxxxy xxx xxx xxxxxxxxx, x.x. xxx xxxxxx xxxxxxxx xxxxxxxxy") - int y; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22873322.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22873322.java deleted file mode 100644 index 48984c42c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22873322.java +++ /dev/null @@ -1,14 +0,0 @@ -class B22873322 { - { - f(param -> veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongExpr(param)); - f((param1, param2) -> veryLooooooooooooooooooooooooooooooooooooooooooooooooongExpr(param1, param2)); - f((int param) -> veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongExpr(param)); - f((param1, param2) -> { - return expr(param1, param2); - }); - f((param1, param2) -> { - Object foo = expr(param1, param2); - return foo; - }); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22913048.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22913048.java deleted file mode 100644 index 512c2b3d4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B22913048.java +++ /dev/null @@ -1,9 +0,0 @@ -private class Yellow extends Red.Orange { - Yellow(Red red) { - red.super(); - } - - Class getClassB() { - return new TypeToken(getClass()) {}.getRawType(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23349153.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23349153.java deleted file mode 100644 index 574e3454d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23349153.java +++ /dev/null @@ -1,28 +0,0 @@ -class B23349153 { - enum Foo { - A, B,; - } - { - System.err.println("Hello");; - } -} - -private enum UnsafeAtomicHelperFactory { - REALLY_TRY_TO_CREATE { - @Override - AtomicHelper tryCreateUnsafeAtomicHelper() { - return new UnsafeAtomicHelper(); - } - }, - - DONT_EVEN_TRY_TO_CREATE { - @Override - AtomicHelper tryCreateUnsafeAtomicHelper() { - return null; - } - }, - - ; - - abstract AtomicHelper tryCreateUnsafeAtomicHelper(); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23514513.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23514513.java deleted file mode 100644 index b8351cb7d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23514513.java +++ /dev/null @@ -1,7 +0,0 @@ -class Test { - { - f( - rrr.kkkkk.uuuuuuuu, rrr.iiiiii.ggggggggggggggggg, - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23626035.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23626035.java deleted file mode 100644 index bfcedc51e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23626035.java +++ /dev/null @@ -1 +0,0 @@ -class Test2 { void f(Test2... xs) {} } diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23708487.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23708487.java deleted file mode 100644 index e08556a59..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23708487.java +++ /dev/null @@ -1,10 +0,0 @@ -class B23708487 { - static { - TASK_AS_OWNER = - com.google.security.acl.proto2api.ACL.Entry.newBuilder() - .setRole(com.google.security.acl.proto2api.ACL.Entry.ROLE.OWNER.getNumber()) - .setScope(com.google.security.acl.proto2api.ACL.Scope.newBuilder() - .setMdbUser(BorgTaskInfo.getMdbUser().getMdbUserName())) - .build(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23749160.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23749160.java deleted file mode 100644 index b624e8d5b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23749160.java +++ /dev/null @@ -1,43 +0,0 @@ -class B23749160 { - { - mockDailySummaryModuleListFiller - .buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDayxxxxxxxxxxx( - anyInt(), anyInt(), anyInt()); - - mockDailySummaryModuleListFiller - . - buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDayxxxxxxxxxxx( - anyInt(), anyInt(), anyInt()); - - foo - . - buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDayxxxxxxxxxxx( - anyInt(), anyInt(), anyInt()) - .bar(); - - // `.build`... and `anotherThing`... are technically at different syntactic - // levels, but the indentation required to express that starts to get out - // of hand - MockDailySummaryModuleListFiller - .buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDayxxxxxxxxxxx( - anyInt(), anyInt(), anyInt()) - .anotherThing(); - - when( - mockDailySummaryModuleListFiller - .buildDailySummaryModulesWithHeadersOnlyAndOneExpandedDay( - anyInt(), anyInt(), anyInt())) - .then(); - - final List XXXXXXXX = - ImmutableList.of( - XXXXXXX, // - XXXXXXX, // - XXXXXXX, // - XXXXXXX, // - XXXXXXX // - ); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23804934.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23804934.java deleted file mode 100644 index 87b75ab70..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B23804934.java +++ /dev/null @@ -1,34 +0,0 @@ -class B23804934{ - - @Zzzzzz - B23804934( - ZzzzzzzzZzzzzzZzzzzZzzzzzzz zzzzzzzzZzzzzzZzzzzZzzzzzzz, - ZzzzzzzZzzzzzzz zzzzzzZzzzZzzzZzzzzzzz, - @ZzzzZzzzzZzzzzzz Zzzzzz zzzzzZzzzzzz, - @ZzzzzzzzzzzZzzzzzz(Zz.ZZZZZZZ_ZZZZZ_ZZZZ_ZZZZZZ_ZZZZ_ZZZZZZZZZZ) - Zzzzzzzz zzzzzZzzzZzzzzzZzzzZzzzzzzzzz) { - zzzz.zzzzzzzzZzzzzzZzzzzZzzzzzzz = zzzzzzzzZzzzzzZzzzzZzzzzzzz; - zzzz.zzzzzzZzzzZzzzZzzzzzzz = zzzzzzZzzzZzzzZzzzzzzz; - zzzz.zzzzzZzzzzzz = zzzzzZzzzzzz; - zzzz.zzzzzZzzzZzzzzzZzzzZzzzzzzzzz = zzzzzZzzzZzzzzzZzzzZzzzzzzzzz; - } - - zzzz z( - zzz z, - @Zzzzzzzz @Zzzzzzzzzz - ZzzzzzzzzZzzz - zzzzZzzzZzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) {} - - @ZzzZzzzZzzzzzzzzzz - @Zzzzzzzz(zzzzzzzzz = Zzzzzzzzz.ZZ) - ZzzzzzzzzzZzzzzz zzzzzzzZzzzzzzzzzz( - @Zzz @Zzz zzzz zzzzZzzzZz, - @Zzz @ZzzzzzzzzzZzzzz(zzzz = ZzzzzZzzzzzZzzzz.ZZZZZZ_ZZZ_ZZZ_ZZZZZZZ) - zzzzzzz zzzzzzZzzZzzZzzzzzz, - @Zzzzz @ZzzzzzzzzzZzzzz(zzzz = ZzzzzZzzzzzZzzzz.ZZZZZ_ZZZ_ZZZZZZZZZZZ) - zzzzzzz zzzzzZzzZzzzzzzzzzz, - @Zzzzz ZzzzzZzzz zzzzzZzzz) {} - - void fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff( - final zzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24202287.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24202287.java deleted file mode 100644 index ea421549c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24202287.java +++ /dev/null @@ -1,35 +0,0 @@ -class B24202287 { - { - this.overflowContactCompositeSupportedRenderers = - this.getSharePanelResponse.contents.unifiedSharePanelRenderer.contents[0] - .connectionSection - .connectionsOverflowMenu - .connectionsOverflowMenuRenderer - .contents[ - 0] - .overflowConnectionSectionRenderer - .contacts[ - 0]; - - int y = ((int[]) null)[0]; - } - - IntentSource getSource() { - return mIntent.isPresent() && mIntent.get().hasExtra(INTENT_SOURCE_KEY) - ? IntentSource.values()[ - mIntent.get().getIntExtra(INTENT_SOURCE_KEY, IntentSource.OTHER.ordinal())] - : IntentSource.OTHER; - } - - { - mTabUiParts[mRenderedTabIndex] - .setData( - tabs[mRenderedTabIndex], - true /* isSelected */, - mIsLoadingState, - mErrorMessageType, - mOnDailySummaryHeaderClickListener, - mShowSpacerForSnackbar, - mResetScrollAndAnimationAndReplaceDoodle); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24494875.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24494875.java deleted file mode 100644 index c96fcbb2c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24494875.java +++ /dev/null @@ -1,4 +0,0 @@ -public enum B24494875 { - ; - public static final String ONE = "ONE"; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24543625.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24543625.java deleted file mode 100644 index 4c8dfb5a2..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24543625.java +++ /dev/null @@ -1,76 +0,0 @@ -/** -* This
    -* is
    -* a
    -* train. -*/ -class TheTrain { -/* - ______ - .-"""".._'. _,## - _..__ |.-"""-.| | _,##'`-._ - (_____)||_____|| |_,##'`-._,##'` - _| |.;-""-. | |#'`-._,##'` - _.;_ `--' `\ \ |.'`\._,##'` - /.-.\ `\ |.-";.`_, |##'` - |\__/ | _..;__ |'-' / - '.____.'_.-`)\--' /'-'` - //||\\(_.-'_,'-'` - (`-...-')_,##'` - jgs _,##`-..,-;##` - _,##'`-._,##'` - _,##'`-._,##'` - `-._,##'` -*/ - public static final Object THE_TRAIN = null; - -/* -BLOCK COMMENT - -*/ - int x; - - /* . - BLOCK COMMENT . - - */ - int y; - - /* . - BLOCK COMMENT . - - */ - int z; - - /* . - BLOCK COMMENT . - - */ - int z; - - /* - * This is almost javadoc. - * - */ - int z; - - /** - * This is (was) malformed javadoc. - *
    -  System.err.println
    -  * 
    - */ - int z; - - private Object f; /*-{ - System.err.println("asd"); - }-*/ - - private native Object f() /*-{ - System.err.println("asd"); - }-*/; - - private native Object f() /*-{ -System.err.println("asd"); -}-*/; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24702438.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24702438.java deleted file mode 100644 index 631f0769e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24702438.java +++ /dev/null @@ -1,54 +0,0 @@ -class B24702438 { - - @Inject int x; - - @Inject int y; - - @Inject int z; - - @Inject int x; - @Inject int y; - @Inject int z; - - // this is a comment - - // another comment - int x; - - // another comment - - int y; - - { - switch (x) { - - case 1: - - break; - - case 1: - - break; - - default: - - break; - - } - - // this is a comment - - // another comment - System.err.println("asd"); - } - - void f( - int a, - @Nullable @Deprecated ImmutableList veryVeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, - @Nullable @Deprecated ImmutableList veryVeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, - @Nullable @Deprecated ImmutableList veryVeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, - int c) {} - void g( - @Nullable @Deprecated ImmutableList veryVeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, - @Nullable @Deprecated ImmutableList veryVeryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooong) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24862959.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24862959.java deleted file mode 100644 index 6f729a54f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24862959.java +++ /dev/null @@ -1,8 +0,0 @@ -public enum XxxxxxxXxxx implements XxxxxxXxxxxxxXxxx { - XXXXXXXXX_XXXX_XXX_XXXXXXXX( - " ", Xxxxxx.XXXXXXX, XxxxXxxxxxxXxxxxxxx.XXXXX), - // - // - // -} - diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24909927.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24909927.java deleted file mode 100644 index c9d4fbbd2..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24909927.java +++ /dev/null @@ -1,353 +0,0 @@ -class Xxx { - - public xxxx xxx() { - XxxxxxXxxx xxxxxxxxXxxx = XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx(XxxxxxXxxx.XXXXXXX) - .xxxXxxxxxXxxx(" ") - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx(XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx(XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx(XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx(XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XX_XXXXX) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx( - XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx - .xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx(XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxx(XxxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxxx(Xxxxxxxx.XXXX) - .xxxXxxxxxXxxx(XxxxxxXxxx.xxxXxxxxxx() - .xxxXxxxxxXxxx(XxxxxxXxxx.XXX_XXXXXXXXXXXXXXX_XXXX_XXXXXXX_XXXXX_XXXXX) - .xxxXxxxXxxxxx(XxxxXxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxXxxxx(XxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxx(XxxxxxxxXxxxXxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxXxxxxxxxx( - XxxxxxxxXxxxXxxxxxxXxxxxxxxXxxxxxxxx - .XXXX_XXXXXX_XXXX_XXXXX_XX_XXX) - .xxxxx()) - .xxxXxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(-42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxx(XxxxXxxxxxxx.xxxXxxxxxx() - .xxxXxxxx(42) - .xxxXxxx(XxxxXxxx.XXX) - .xxxxx()) - .xxxxx()) - .xxxXxxxxxxxxxXxxXxxxXxxxxxxxx(XxxxxxxxxxXxxXxxxXxxxxxxxx.xxxXxxxxxx() - .xxxXxxxxxxxxxXxxxXx(42) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx()) - .xxxxx(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24988078.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24988078.java deleted file mode 100644 index 1a69ffc3a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B24988078.java +++ /dev/null @@ -1,7 +0,0 @@ -class B24988078 { - public static Optional fromNullable(@Nullable T nullableReference) {} - - public static Optional fromNullable(@Nullable T nullableReference) {} - - Table< /*@Nullable*/ Object, /*@Nullable*/ Object, /*@Nullable*/ Object > foo; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25372815.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25372815.java deleted file mode 100644 index c03a6ea47..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25372815.java +++ /dev/null @@ -1,32 +0,0 @@ -class Test { - { - // For "All goals" view, show only advertiser goals tab. - return newPageTypeSet( - false /* advertisers */, - false /* userManagement */, - false /* campaigns */, - false /* adGroups */, - false /* ads */, - false /* keywords */, - false /* negativeKeywords */, - false /* advertiserBidStrategies */, - false /* bidStrategies */, - false /* bidStrategyRecommendations */, - false /* bidKeywords */, - false /* engineBidStrategies */, - false /* conversionTrackers */, - false /* labels */, - false /* labelKeywords */, - false /* evergreen labels */, - false /* searchQueries */, - false /* engineSearchQueries */, - false /* remarketingTarget */, - false /* sitelinks */, - false /* feedSitelinks */, - false /* locationExtensions */, - false /* callExtensions */, - false /* calloutExtensions */, - false /* appExtensions */, - false /* events */); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25749989.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25749989.java deleted file mode 100644 index ca0e0ae2f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25749989.java +++ /dev/null @@ -1,4 +0,0 @@ -class Dummy { - /** - */private static void method(){MISSING();} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25787055.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25787055.java deleted file mode 100644 index 4aae1ce33..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25787055.java +++ /dev/null @@ -1,30 +0,0 @@ -class B25787055 { - { - logger - .atInfo() - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - logger.atInfo().atInfo().atInfo().atInfo().atInfo().atInfo().atInfo().atInfo().atInfo().atInfo().atInfo() - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - logger // interior - .atInfo() // comments - .log( // are best comments - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - logger - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames) - .log( - "Scratch Session Cleaner exiting. Number of deleted sessions: %d, names: %s", - deletedPersistentNames.size(), - deletedPersistentNames); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25811323.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25811323.java deleted file mode 100644 index 291e34c26..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B25811323.java +++ /dev/null @@ -1,5 +0,0 @@ -class B25811323 { - void f() { - class Inner {}; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26159561.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26159561.java deleted file mode 100644 index 853202ddb..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26159561.java +++ /dev/null @@ -1,6 +0,0 @@ -class B26159561 { - { - try (A a = a(); B b = b()) {} - try (A a = a();) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26207047.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26207047.java deleted file mode 100644 index 5f53f8c4b..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26207047.java +++ /dev/null @@ -1,49 +0,0 @@ -class B26207047 { - { - String.format( - "%s ", xxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx); - String.format( - "%s ", - xxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx); - String.format( - "{0} ", - xxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx); - String.format( - "%s " - + " ", - xxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx); - String.format( - "%s ", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - String.format( - "%s ", - xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, - xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, - xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx, xxxxxx); - String.format( - "%s ", " ", " ", " ", " ", " ", " ", " ", " ", - " ", " ", " ", " ", " ", " ", " ", " ", " ", - " ", " ", " ", " ", " ", " ", " ", " ", " "); - Set ZONES = - ImmutableSet.of( - TimeZone.getTimeZone("EST"), - // TODO: - TimeZone.getTimeZone("GMT"), - TimeZone.getTimeZone("HST"), - TimeZone.getTimeZone("MST")); - String.format( - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + "%s", - xxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxx); - String.format( - " ", - xxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26275739.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26275739.java deleted file mode 100644 index 70fdd90e1..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26275739.java +++ /dev/null @@ -1,18 +0,0 @@ -public class B26275739 { - { - f( - /* x */ 1, - /* xx */ 2, - /* x */ 3, - /* xx */ 4); - f( - 1, - 2, - 3, - 4); - f( - /* asd */ - 1, 2, - 3, 4); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26293162.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26293162.java deleted file mode 100644 index 691bebe25..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26293162.java +++ /dev/null @@ -1,43 +0,0 @@ -class Xxxx { - - public static final class XxxxXxxxxxxxXxxxxxxxxXxxxxxXxxxxxxx< - X, X, X extends XxxxxxxxxXxxxxxxxxXxxxxxxx> { - - int x; - } - - public static final class XxxxXxxxxxxxXxxxxxxxxXxxxxxXxxxxxxx< - X, X, X extends XxxxxxxxxXxxxxxxxxXxxxxxxx> extends Xxxxx { - - int x; - } - - class XxxxxxxxXxxxxxxxxXxxxXxxx< - X extends XxxxxxxxxXxxxxxx, X extends XxxxxxxxxXxxxxx, X extends Xxxxxxxxxxxxx, X> - extends XxxxXxxx { - - int x; - } - - @Xxx - class XxxxxxxxxxxXxxxxxXx< - X extends XxxxxxXxxxxxxxxxxXxxxxxXxxxxx, X extends Xxxxxxx, XX extends Xxxxxxxxx> - extends XxxxxxxxXx { - - int x; - } - - static class XxxxxXxxxxXxxx< - XXXXX extends XxxxxxxxXxxxxxx, XXX extends XxxxxxxxXxxxxxx> { - - int x; - } - - @Xxx - class XxxxxxxxxxxXxxxxxXx< - X extends XxxxxxXxxxxxxxxxxXxxxxxXxxxxx, X extends Xxxxxxx, X extends Xxxxxxx, - XX extends Xxxxxxxxx> extends XxxxxxxxXx { - - int x; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26694550.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26694550.java deleted file mode 100644 index 7af690a3e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26694550.java +++ /dev/null @@ -1,21 +0,0 @@ -class B26694550 { - { - /* === not a param comment */ - fffffffffffffffffffffffffffffff( - ImmutableList.copyOf(keys), /*&=*//*keepGoing=*/ - false, - ggggggggggggggggggggggggggggggggggggggggggg); - fffffffffffffffffffffffffffffff( - ImmutableList.copyOf(keys), - /*keepGoing=*/ - false, - ggggggggggggggggggggggggggggggggggggggggggg); - fffffffffffffffffffffffffffffff( - ImmutableList.copyOf(keys), - /*foo_bar=*/ - false, - /*foo-bar=*/ - false, - ggggggggggggggggggggggggggggggggggggggggggg); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26884608.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26884608.java deleted file mode 100644 index 52764b003..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26884608.java +++ /dev/null @@ -1,34 +0,0 @@ -class X26884608 { - { - this - .xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - this - .xxxXxxxxXxxxxxx( - XxxxxXxxx.xxxxxXxxxx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - Xxxxx.this - .xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - Xxxxx.this - .xxxXxxxxXxxx(XxxxxXxxx.xxxxxXx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - xxx.xxxxxx.Xxxxx.this - .xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - xxx.xxxxxx.Xxxxx.this - .xxxXxxxxXxxx(XxxxxXxxx.xxxxxXx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - - super.xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - super.xxxXxxxxXxxx( - XxxxxXxxxx.xxxxxXxxxx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - Xxxxx.super.xxxxxxxxxXxxxxxXxxxxxxXxxxxx( - XXXXXXXXX_XXXXXXXXX); - Xxxxx.super.xxxXxxxxXxxx( - XxxxxXxxx.xxxxxXx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - xxx.xxxxxx.Xxxxx.super.xxxxxxxxxXxxxxxXxxxxxxXxxxxx(XXXXXXXXX_XXXXXXXXX); - xxx.xxxxxx.Xxxxx.super.xxxXxxxxXxxx( - XxxxxXxxx.xxxxxXx(xxxxxx.xxxxxxxXxxxxxXxxxx(xxxxxx), xxxxxx.xxXxxxxxx())); - } -} - diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26928842.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26928842.java deleted file mode 100644 index 1ce9dc954..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26928842.java +++ /dev/null @@ -1,9 +0,0 @@ -class B26928842 { - { - curr.setData(curr.getData().toBuilder() - .setPushCertificate( // New - curr.getData().getPushCertficate()) // Old, misspelled - .clearPushCertficate() // Old, misspelled - .build()); - } -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26952926.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26952926.java deleted file mode 100644 index dd3451dff..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B26952926.java +++ /dev/null @@ -1,51 +0,0 @@ -class T { - { - this( - x, // line comment - x // line comment - ); - super( - x, // line comment - x // line comment - ); - new t( - x, // line comment - x // line comment - ); - f( - x, // line comment - x // line comment - ); - fffff.fffff( - x, // line comment - x // line comment - ); - fffff - .fffff( - x, // line comment - x // line comment - ) - .fffff( - x, // line comment - x // line comment - ); - } - - { - this(x // line comment - ); - super(x // line comment - ); - new t(x // line comment - ); - f(x // line comment - ); - fffff.fffff(x // line comment - ); - fffff - .fffff(x // line comment - ) - .fffff(x // line comment - ); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27078833.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27078833.java deleted file mode 100644 index 597c63547..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27078833.java +++ /dev/null @@ -1,19 +0,0 @@ -enum OpKind { - - POST_INCR(Precedence.POSTFIX), - POST_DECR(Precedence.POSTFIX), - - PRE_INCR(Precedence.UNARY), - PRE_DECR(Precedence.UNARY), - PLUS(Precedence.UNARY), - NEG(Precedence.UNARY), - COMP(Precedence.UNARY), - NOT(Precedence.UNARY), - - MULT(Precedence.MULTIPLICATIVE), - DIVIDE(Precedence.MULTIPLICATIVE), - MODULO(Precedence.MULTIPLICATIVE), - ; - - // ... -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27246427.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27246427.java deleted file mode 100644 index bf4076daf..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27246427.java +++ /dev/null @@ -1,7 +0,0 @@ -enum TrailingComment { - /** foo */ FOO, /** bar */ - BAR; - - /** a */ Object a; /** b */ - Object b; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27602933.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27602933.java deleted file mode 100644 index 1046a636d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B27602933.java +++ /dev/null @@ -1,11 +0,0 @@ -class B27602933 { - { - try { - } catch (final A | B x) { - } - - try { - } catch (@SuppressWarnings("unused") IllegalArgumentException | RuntimeException e) { - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28066276.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28066276.java deleted file mode 100644 index f8d336bcd..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28066276.java +++ /dev/null @@ -1,13 +0,0 @@ -class B28066276 { - class A extends S - implements I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________ {} - - interface B - extends I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________, - I________________, I________________, I________________, I________________ {} -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28774859.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28774859.java deleted file mode 100644 index 796e7d4d4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28774859.java +++ /dev/null @@ -1,3 +0,0 @@ -class B28774859 { - java.util. /*comment*/ Map. /*comment*/ Entry e; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28786284.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28786284.java deleted file mode 100644 index 18ac2d73c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28786284.java +++ /dev/null @@ -1,5 +0,0 @@ -enum E { - ONE, - TWO; - ; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28788559.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28788559.java deleted file mode 100644 index a38d10b73..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B28788559.java +++ /dev/null @@ -1,7 +0,0 @@ -import a.A;; -import b.B; - -class Test { - A a; - B b; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29368546.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29368546.java deleted file mode 100644 index 32da76cff..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29368546.java +++ /dev/null @@ -1,60 +0,0 @@ -public class B29368546 { - /** - * Example: - * - *
    {@code
    -   *     class T {
    -   *     }
    -   * }
    - */ - int x; - - /** - * Example: - * - *
        {@code
    -   *   class T {
    -   *   }
    -   * }
    - */ - int x; - - /** - * Example: - * - *
    {@code
    -   *   class T {
    -   *   }}
    - */ - int x; - - /** - * Example: - * - *
    {@code
    -   * foo bar
    -   * }
    -   *
    -   * more stuff
    -   * 
    - * - *
    {@code
    -   * foo bar
    -   * }
    -   *
    -   * more stuff that ends with {}
    -   * 
    - */ - int x; - - /** - * Example: - * - *
    {@code
    -   * class T {}
    -   * 
    // oops, we forgot the close brace - * - * more stuff that ends with {} - */ - int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29618429.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29618429.java deleted file mode 100644 index 2beb2a718..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29618429.java +++ /dev/null @@ -1,13 +0,0 @@ -class B29618429 { - /** - * Hello - * - *

    World - *

    -   * @LooksLikeATag(
    -   *   foo = "bar"
    -   * )
    -   * 
    - */ - int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29705613.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29705613.java deleted file mode 100644 index 0adb8846d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B29705613.java +++ /dev/null @@ -1,8 +0,0 @@ -class B29705613 { - /** - * This tag isn't closed: {@link Foo - * - *

    A paragraph - */ - int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30153869.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30153869.java deleted file mode 100644 index d5fae20b4..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30153869.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - * one - * - *

      - *
    1. two - *
    - * - *

    - *

  • four - */ -class T { - - /** - * One - * - *
      - *
    • a - *
        - *
      • b - *
      • c - *
      - *
    • e - *
    - */ - int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30223986.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30223986.java deleted file mode 100644 index 5b6fbb2a0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30223986.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Base class for {@link Foo}. - * - *

    The subclass should implement {@link #bar()}, with the implementation returning a - * new instance of the foo relevant to that baz. - * - * Example: - * - * @Override - * protected Foo bar() { - * return new Foo(); - * } - * - * - * The subclass should call {@link #get()} to get the foo object, - * and should not cache it in the subclass. - * Example: - * - * @Annotation("something") - * public void thing() { - * } - * - * - * @param concrete subclass - */ -class Test { - /** - * Field - * - * Example: - *

    
    -   *   @Annotation("something")
    -   *   public void thing() {
    -   *   }
    -   * 
    - * - * @param asd - */ - int x() {} - - /** - * Inline foo. - */ - int y() {} -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30764810.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30764810.java deleted file mode 100644 index 0643db0d6..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30764810.java +++ /dev/null @@ -1,16 +0,0 @@ -class B30764810 { - @Foo( - x = {0}, - y = 0 - // comment - ) - int a; - - @Foo( - x = {0}, - y = 0 - /* comment - */ - ) - int b; -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30789352.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30789352.java deleted file mode 100644 index 2559b1f7f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B30789352.java +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Body. - * - * @param

    the protobuf type - */ -class B30789352

    {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32114928.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32114928.java deleted file mode 100644 index 95da03c63..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32114928.java +++ /dev/null @@ -1,9 +0,0 @@ -class B32114928 { - { - Class tClass = - (Class) - verifyNotNull((ParameterizedType) getClass().getGenericSuperclass()) - .getActualTypeArguments()[ - 0]; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32284705.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32284705.java deleted file mode 100644 index 916c58854..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32284705.java +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Foo - *

    - * bar
    - * 
    - * - */ -class B32284705 {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32397217.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32397217.java deleted file mode 100644 index b402a4aa5..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32397217.java +++ /dev/null @@ -1,6 +0,0 @@ -class T { - { - f( - 1 /* 1 */, 2 /* 2 */); - } -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32729600.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32729600.java deleted file mode 100644 index 4fd5fc51e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B32729600.java +++ /dev/null @@ -1,5 +0,0 @@ -class B32729600 { - { - f(() -> {}); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B33358723.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B33358723.java deleted file mode 100644 index 5d461e09a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B33358723.java +++ /dev/null @@ -1,24 +0,0 @@ -class B33358723 { - { - f( - // - x -> - System.err.println( - // - "hello")); - f( - // - ( // - x) -> - System.err.println( - // - "hello")); - f( - // - (int // - x) -> - System.err.println( - // - "hello")); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B35644813.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B35644813.java deleted file mode 100644 index 37ae3226f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B35644813.java +++ /dev/null @@ -1,19 +0,0 @@ -class B35644813 { - { - return foo____________ - .bar__________() - .baz____________() - .stream() - .map(Baz::getId) - .collect(toList()); - } - - private static final ImmutableSet SCANDINAVIA = - ImmutableSet.of( - DENMARK____________________________________________________, - NORWAY_____________________________________________________, - SWEDEN_____________________________________________________) - .stream() - .map(x -> String.format("country: %s", x.toLowerCase())) - .collect(toImmutableSet()); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B35797074.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B35797074.java deleted file mode 100644 index aa4dc09cb..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B35797074.java +++ /dev/null @@ -1,4 +0,0 @@ -class B35797074 { - /** javadoc */ - /* package */ final int x; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B36194204.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B36194204.java deleted file mode 100644 index 2a3c702cc..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B36194204.java +++ /dev/null @@ -1,5 +0,0 @@ -class B36194204 { - { - Function f = (String... s) -> s[0]; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B37629610.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B37629610.java deleted file mode 100644 index 65d9d47fc..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B37629610.java +++ /dev/null @@ -1,16 +0,0 @@ -class B37629610 { - private static ImmutableList toInputOutputPairs(Options options) { - for (Iterator inputIt = options.inputJars.iterator(), - outputIt = options.outputJars.iterator(); - inputIt.hasNext(); - ) {} - for (Iterator inputIt = options.inputJars.iterator(), - outputIt = options.outputJars.iterator(); - ; - inputIt.next()) {} - for (inputIt = options.inputJars.iterator(), // - outputIt = options.outputJars.iterator(); - ; - inputIt.next()) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B37895033.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B37895033.java deleted file mode 100644 index 9ec5e463a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B37895033.java +++ /dev/null @@ -1,20 +0,0 @@ -class B37895033 { - String[][] xs = - new String[][] { - {"B3", "C3", "D3"}, - {"B4", "C4", "D4"}, - {"B5", "C5", "D5"} - }; - String[] ys = - new String[] { - "B3", - "B4", - "B5", - }; - String[][] zs = - new String[][] { - {"B3"}, - {"B4"}, - {"B5"}, - }; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38203081.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38203081.java deleted file mode 100644 index 12419871f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38203081.java +++ /dev/null @@ -1,5 +0,0 @@ -class B38203081 { - void f(int @A []... xs) {} - - void g(int @A [] @B... xs) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38241237.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38241237.java deleted file mode 100644 index 1909e4958..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38241237.java +++ /dev/null @@ -1,7 +0,0 @@ -class B38241237 { - //foo - //bar - //one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt - ///baz - //// -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38352414.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38352414.java deleted file mode 100644 index 60726fb72..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B38352414.java +++ /dev/null @@ -1,2 +0,0 @@ -@Redacted(Redacted.REDACTED + "/redacted", redacted = Redacted.class) -class B38352414 {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B64493529.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B64493529.java deleted file mode 100644 index e0d65cbc1..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B64493529.java +++ /dev/null @@ -1,10 +0,0 @@ -/** Copies from {@link Foo} to {@link Bar}. */ -// XXXX.XxXxxxxx() -class B64493529 { - // XXXX.XxxxXxxxxx(//xxxxx/xxxxxxx/xxxx/xxx/xxxxxx/xxx/xxxxxxx/xxxx/xxx/xxxxxxx/xxxxxxx/\ - // XxxxxxXxxxxxXXxxxxxxXxxxxx.java) - // XXXX.XxxxXxxxxx(//xxxxx/xxxxxxx/xxxx/xxx/xxxxxx/xxx/xxxxxxx/xxxx/xxx/xxxxxxx/xxxxxxx/\ - // XxxxxxXxxxxxXXxxxxxxXxxxxx.java) -} -// XXXX.XxxxXxxxxx(//xxxxx/xxxxxxx/xxxx/xxx/xxxxxx/xxx/xxxxxxx/xxxx/xxx/xxxxxxx/xxxxxxx/\ -// XxxxxxXxxxxxXXxxxxxxXxxxxx.java) diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B65214682.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B65214682.java deleted file mode 100644 index d6e22f613..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B65214682.java +++ /dev/null @@ -1,17 +0,0 @@ -@BugPattern( - name = "AsyncFunctionReturnsImmediate", - summary = SIMPLIFY, - category = GUAVA, - severity = NOT_A_PROBLEM, - maturity = EXPERIMENTAL -) -@BugPattern( - name = "AsyncFunctionReturnsImmediate", - summary = SIMPLIFY, - explanation = - "If an AsyncFunction always returns immediateFuture() and never throws, it can " - + "be replaced with a Function.", - category = GUAVA, - severity = NOT_A_PROBLEM, - maturity = EXPERIMENTAL) -class Test {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B72507902.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B72507902.java deleted file mode 100644 index 18d1900cf..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/B72507902.java +++ /dev/null @@ -1,6 +0,0 @@ -class B72507902 { - private static class Xxxxxxxxxxxxxxxxxxxx - extends Xxxxxxxxxxx< - Pair>, Xxxxxxxxxxxxxxxxxxxx, - List> {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/C.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/C.java deleted file mode 100644 index 7baed6cfe..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/C.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for CastExpressions, CatchClauses, CharacterLiterals, ClassInstanceCreations, - * CommentHelper, ConditionalExpressions, ConstructorInvocations, ContinueStatements, and - * CreationReferences. - */ -class C { - // TODO(jdd): Test higher-language-level constructs. - - C() { - this( - 0, 1, - 2, 3, - 4, 5, - 6, 7, - 8, 9, - 10, 11, - 12, 13, - 14, 15, - 16, 17, - 18, 19, - 20, 21, - 22, 23, - 24, 25, - 26, 27, - 28, 29, - 30, 31); - } - - C(int... x) {} - - void f() { - try { - } catch (RuntimeException e) { - Object x = - (Pair< - Pair< - Pair, Pair>, - Pair, Pair>>, - Pair< - Pair, Pair>, - Pair, Pair>>>) - null; - C c = - new C( - 0, 1, - 2, 3, - 4, 5, - 6, 7, - 8, 9, - 10, 11, - 12, 13, - 14, 15, - 16, 17, - 18, 19, - 20, 21, - 22, 23, - 24, 25, - 26, 27, - 28, 29, - 30, 31); - int i = 0; - int j = - i == 0 - ? 0 - : i == 1 - ? 1 - : i == 2 ? 2 : i == 3 ? 3 : i == 4 ? 4 : i == 5 ? 5 : i == 6 ? 6 : i == 7 ? 7 : i; - LABEL: - while (true != false) { - if (false == true) - continue; - if (false == false) - continue LABEL; - // Comment indented +2 - // Comment indented +2 - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/CL240367479.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/CL240367479.java deleted file mode 100644 index be76390d7..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/CL240367479.java +++ /dev/null @@ -1,6 +0,0 @@ -package foo;; - -import com.google.second.Foo; -import com.google.first.Bar; - -public class Blim {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/D.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/D.java deleted file mode 100644 index daca973b6..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/D.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for Dimensions and DoStatements. */ -class D { - // TODO(jdd): Test higher-language-level features. - - int[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] - [][][][] - array[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] - [][][][][][][]; - - void f() { - do { - assert false; - } while (1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 - + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 - == 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 - + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/E.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/E.java deleted file mode 100644 index 0e98139a6..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/E.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.google.googlejavaformat.java.test; - -import com.google.common.collect.ImmutableList; -import com.google.common.collect.Lists; - -/** - * Tests for EmptyStatements, EnhancedForStatements, EnumConstantDeclarations, EnumDeclarations, - * ExpressionMethodReferences, ExpressionStatements, Expressions, and ExtendedModifiers. - */ -@MarkerAnnotation -class E { - // TODO(jdd): Test higher language-level features. - - enum Enum1 { - A, B, C, D; - - Enum1() {} - } - - @MarkerAnnotation - public enum Enum2 { - A, - B, - C, - D, - ; - - Enum2() {} - } - - enum Enum3 { - A( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0), - B( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1), - C( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 2), - D( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 3); - - Enum3(int x) {} - } - - enum Enum4 { - A( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0), - B( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1), - C( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 2), - D( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 3), - ; - - Enum4(int x) {} - } - - int f(int value) { - ; - ; - ; - ; - ; - for (Integer x : - ImmutableList.of( - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) {} - for (Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - x : - Lists - ., Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>>> - newArrayList()) {} - f(10); - return f(20); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/EnumAnnotation.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/EnumAnnotation.java deleted file mode 100644 index 43384fd64..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/EnumAnnotation.java +++ /dev/null @@ -1,5 +0,0 @@ -enum E { - @A ONE, - TWO, - @B @C THREE; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/F.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/F.java deleted file mode 100644 index dbefdafd3..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/F.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for FieldAccesses, FieldDeclarations, and ForStatements. */ -class F { - int x; - int x1 = 0; - int y, z; - int y1 = 0, z1 = 0; - F f = null; - Object field0 = - true - ? true ? true ? null : null : true ? null : null - : true ? true ? null : null : true ? null : null; - - Pair< - Pair, Pair>, - Pair, Pair>> - field1 = null; - Pair< - Pair, Pair>, - Pair, Pair>> - field2 = - true - ? true ? true ? null : null : true ? null : null - : true ? true ? null : null : true ? null : null; - - @MarkerAnnotation - Pair< - Pair, Pair>, - Pair, Pair>> - field3 = - true - ? true ? true ? null : null : true ? null : null - : true ? true ? null : null : true ? null : null; - - void f() { - for (int i = - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0; - i - < 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 10; - i++) { - f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.Ff = null; - } - for (int i = - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0; - i - < 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 10; - i++) { - f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.Ff = - null; - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Fields.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Fields.java deleted file mode 100644 index 9dc342663..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Fields.java +++ /dev/null @@ -1,7 +0,0 @@ -class Fields { - - int x = 1; - - int y = 1; - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/ForMany.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/ForMany.java deleted file mode 100644 index 6927ee98c..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/ForMany.java +++ /dev/null @@ -1,6 +0,0 @@ -class ForMany { - { - A a; - for (b = B; c != C; d = D) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I.java deleted file mode 100644 index 9f5376027..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.google.googlejavaformat.java.test; - -import java.util.List; - -/** - * Tests for IfStatements, ImportDeclarations, InfixExpressions, Initializers, - * InstanceofExpressions, and IntersectionTypes. - */ -class I { - interface I0 {} - - interface I1 {} - - interface I2 {} - - interface I3 {} - - interface I4 {} - - interface I5 {} - - interface I6 {} - - interface I7 {} - - interface I8 {} - - interface I9 {} - - interface I10 {} - - interface I11 {} - - interface I12 {} - - interface I13 {} - - interface I14 {} - - interface I15 {} - - interface I16 {} - - interface I17 {} - - interface I18 {} - - interface I19 {} - - class II< - T extends - I0 & I1 & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9 & I10 & I11 & I12 & I13 & I14 & I15 & I16 - & I17 & I18 & I19> {} - - static class CC { - static { - int i = 0; - } - } - - int x = - 0 >>> 0 + 0 / 0 * 0 - 0 & 0 << 0 * 0 / 0 >> 0 - 0 ^ 0 * 0 / 0 >>> 0 << 0 * 0 - 0 / 0 - | 0 * 0 >> 0 + 0 / 0 * 0 - 0 << 0 - & 0 * 0 / 0 >>> 0 - 0 * 0 >> 0 / 0 << 0 * 0 + 0 - 0 / 0 * 0 - | 0 - 0 * 0 >>> 0 << 0 / 0 * 0 >> 0 - 0 ^ 0 * 0 / 0 & 0 << 0 + 0; - - void f() { - if (0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - == 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0) { - } else if (null instanceof List) { - } else { - } - if (true) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I1.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I1.java deleted file mode 100644 index 7a1cd14ea..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I1.java +++ /dev/null @@ -1,49 +0,0 @@ -class Test { - final CreationMechanism creationMechanism; - final @Nullable String creationUserAgent; - final ClientId clientId; - final @Nullable String creationUserAgentXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; - final Token externalId; - - { - final CreationMechanism creationMechanism; - final @Nullable String creationUserAgent; - final ClientId clientId; - final @Nullable String creationUserAgentXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; - final Token externalId; - } -} - -class Test { - final CreationMechanism creationMechanism; - @Nullable final String creationUserAgent; - final ClientId clientId; - @Nullable final String creationUserAgentXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; - final Token externalId; - - { - final CreationMechanism creationMechanism; - @Nullable final String creationUserAgent; - final ClientId clientId; - @Nullable final String creationUserAgentXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; - final Token externalId; - } -} - -class Test { - - @Nullable - final String creationUserAgent; - - { - @Nullable - final String creationUserAgent; - } - - { - - @Nullable - final String creationUserAgent; - - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I12.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I12.java deleted file mode 100644 index 5d8a058ae..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I12.java +++ /dev/null @@ -1,19 +0,0 @@ -public class Test { - - - -} - -public class Test { - - -} - -public class Test { - -} - -public class Test { -} - -public class Test {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I13.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I13.java deleted file mode 100644 index 079e78b1f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I13.java +++ /dev/null @@ -1,10 +0,0 @@ -class I13 { - - @Nullable - - public int f; - - @Override - - public void m() {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I202.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I202.java deleted file mode 100644 index c3766ec55..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I202.java +++ /dev/null @@ -1,6 +0,0 @@ -class I202 { - { - //noinspection CheckResult - methodWhoseResultShouldBeChecked(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I365.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I365.java deleted file mode 100644 index e3866d891..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/I365.java +++ /dev/null @@ -1,10 +0,0 @@ -class I365 { - { - return foo____________ - .bar__________() - .baz____________() - .parallelStream() - .map(Baz::getId) - .collect(toList()); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/L.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/L.java deleted file mode 100644 index f0b3e6681..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/L.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for LabeledStatements and LambdaExpressions. */ -class L { - // TODO(jdd): Include high language-level tests. - - void f() { - LABEL: - for (int i = 0; i < 10; i++) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/LocalAnnotations.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/LocalAnnotations.java deleted file mode 100644 index 87b9aa2bf..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/LocalAnnotations.java +++ /dev/null @@ -1,7 +0,0 @@ -class LocalAnnotations { - { - @Foo final Object x; - @Foo(1) final Object y; - @Foo(x=1) final Object y; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M.java deleted file mode 100644 index 56f4ccf89..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M.java +++ /dev/null @@ -1,399 +0,0 @@ -package com.google.googlejavaformat.java.test; - -import com.google.common.collect.ImmutableList; - -import java.util.List; - -/** - * Tests for MarkerAnnotations, MemberValuePairs, MethodDeclarations, MethodInvocations, and - * Modifiers. - */ -@MarkerAnnotation -class M { - class Exception0 extends Exception {} - - class Exception1 extends Exception {} - - class Exception2 extends Exception {} - - class Exception3 extends Exception {} - - class Exception4 extends Exception {} - - class Exception5 extends Exception {} - - class Exception6 extends Exception {} - - class Exception7 extends Exception {} - - class Exception8 extends Exception {} - - class Exception9 extends Exception {} - - void methodName1(int x) {} - - void methodName2(int x) throws Exception {} - - /** - * JavaDoc. - */ - void methodName3(int x) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 {} - - /** - * JavaDoc. - */ - void methodName4( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) {} - - /** - * JavaDoc. - */ - void methodName5( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) - throws Exception {} - - /** - * JavaDoc. - */ - void methodName6( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 {} - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName10(int x) { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName12(int x) throws Exception { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName11(int x) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName15( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName14( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) - throws Exception { - return null; - } - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName13( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 { - return null; - } - - - T methodName20(int x) { - return null; - } - - - T methodName21(int x) throws Exception { - return null; - } - - - T methodName22(int x) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 { - return null; - } - - - T methodName22( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) { - return null; - } - - - T methodName23( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) - throws Exception { - return null; - } - - - T methodName30( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, - int n, int o, int p, int q, int r, int s, int t, int u, int v) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, Exception6, - Exception7, Exception8, Exception9 { - return null; - } - - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName31(int x) { - return null; - } - - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName32(int x) throws Exception { - return null; - } - - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName(int x) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, - Exception6, Exception7, Exception8, Exception9 { - return null; - } - - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName41( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, - int m, int n, int o, int p, int q, int r, int s, int t, int u, int v) { - return null; - } - - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName40( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, - int m, int n, int o, int p, int q, int r, int s, int t, int u, int v) - throws Exception { - return null; - } - - - Pair< - Pair, Pair>, Pair, Pair>>, - Pair, Pair>, Pair, Pair>>> - methodName( - int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, - int m, int n, int o, int p, int q, int r, int s, int t, int u, int v) - throws Exception0, Exception1, Exception2, Exception3, Exception4, Exception5, - Exception6, Exception7, Exception8, Exception9 { - return null; - } - - static void m() {} - - M identity() { - return this; - } - - void f(double x) { - List> list1 = ImmutableList.>of(null); - List, Pair>> list2 = - ImmutableList., Pair>>of(null); - List< - Pair< - Pair, Pair>, - Pair, Pair>>> - list3 = - ImmutableList - ., Pair>, - Pair, Pair>>> - of(null); - Pair pair1 = - ImmutableList.>of(null).get( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0); - Pair, Pair> pair2 = - ImmutableList., Pair>>of(null).get( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0); - Pair< - Pair, Pair>, - Pair, Pair>> - pair3 = - ImmutableList - ., Pair>, - Pair, Pair>>> - of(null) - .get( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0); - } - - void f(int... x) { - M m = null; - ((m.identity().identity().identity().identity()).identity().identity().identity().identity()) - .identity() - .identity() - .identity() - .identity(); - f( - x[0] + x[1] + x[2] + x[3] + x[4] + x[5] + x[6] + x[7] + x[8] + x[9] + x[11] + x[12] + x[13] - + x[14] + x[15]); - } - - static void method999(Object... args) { - method999(1, 2, 3, 4, 5); - method999(1, 2, 3, 4, 5); - method999( - 1, 2, - 3, 4, - 5, 6); - method999(1, 2, 3, 4, 5, 6); - method999("one", 1, "two", 2, "three", 3); - method999("one", 1); - method999( - "one", 1, - "two", 2); - method999( - "one", 1, - "two", 1 + 1, - "three", 1 + 1 + 1); - method999( - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx", - "xxxxxxxxxxxxxx"); - } - - static class Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx { - static Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx fff( - int x) { - return null; - } - } - - static - class Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx { - static Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx fff( - int x) { - return null; - } - - static Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - ffffffffff(int x) { - return null; - } - } - - M xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = null; - M xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = - null; - - M fff(int x) { - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.fff(0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.fff( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - .ffffffffff(0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.fff(0).fff(0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.fff(0 + 0).fff( - 0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - .fff( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0) - .fff(0); - Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - .ffffffffff(0) - .fff(0); - return this; - } - - M ffffffffff(int x) { - return this; - } - - M ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(int x) { - new M().ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff( - 0 + 0 + 0 + 0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(0).f(0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(0) - .fff(0) - .fff(0) - .f(0); - ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(0).ffffffffff( - 0); - return this; - } - - - M( - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z, - ZZZZZZZZZZ z) - throws EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE, - EEEEEEEEEE, EEEEEEEEEE, EEEEEEEEEE {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M1.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M1.java deleted file mode 100644 index c5ff9b54d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M1.java +++ /dev/null @@ -1,22 +0,0 @@ -import a.A; -import a.B; -import com.google.Foo; - -@A @B -module com.google.m { -requires com.google.r1; -requires transitive com.google.r2; -requires static com.google.r3; -exports com.google.e1; -exports com.google.e1 to com.google.e2; -exports com.google.e1 to com.google.e2, com.google.e3; -exports com.google.e1 to com.google.e2, com.google.e3, com.google.e4; -opens com.google.o1; -opens com.google.o1 to com.google.o2; -opens com.google.o1 to com.google.o2, com.google.o3; -opens com.google.o1 to com.google.o2, com.google.o3, com.googleoe4; -uses Foo; -uses com.google.Bar; -provides com.google.Baz with Foo; -provides com.google.Baz with Foo, com.google.Bar; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M2.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M2.java deleted file mode 100644 index c7d8b16b9..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M2.java +++ /dev/null @@ -1,2 +0,0 @@ -open module com.google.m { -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M3.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M3.java deleted file mode 100644 index c5d29662f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/M3.java +++ /dev/null @@ -1,6 +0,0 @@ -@Deprecated -module moduletags { - requires transitive static moduleA; - - exports testpkgmdltags; -} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/MarkerAnnotation.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/MarkerAnnotation.java deleted file mode 100644 index b8dd3e379..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/MarkerAnnotation.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** JavaDoc comment. */ -public @interface MarkerAnnotation {} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Multivariables.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Multivariables.java deleted file mode 100644 index a5e0b4dfb..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Multivariables.java +++ /dev/null @@ -1,17 +0,0 @@ -class Multivariables { - int xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, - yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy, - zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz; - - // Horizontal and veritcal paddings used for most cells in the standings table. - private final int hpad, vpad; - - { - { - for (c = cx.iterator(), m = mx.iterator(); - c.hasNext() && m.hasNext(); ) { - f(c, m); - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/N.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/N.java deleted file mode 100644 index 03591418d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/N.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for NameQualifiedTypes, Names, NormalAnnotations, NullLiterals, and NumberLiterals. */ -class N { - @NormalAnnotation( - a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7, h = 8, i = 9, j = 10, k = 11, l = 12, m = 13, - n = 14, o = 15, p = 16, q = 17, r = 18, s = 19, t = 20, u = 21, v = 22, w = 23, x = 24, - y = 25, z = 26) - void f() { - assert 00 == 0 && 0x0 == 0 && 1.0e0f == 1.00e0f && 0.2D == .2D; - java.lang. /* @MarkerAnnotation */String s = null; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/NormalAnnotation.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/NormalAnnotation.java deleted file mode 100644 index 4a3a07e39..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/NormalAnnotation.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** JavaDoc comment. */ -public @interface NormalAnnotation { - int a(); - - int b(); - - int c(); - - int d(); - - int e(); - - int f(); - - int g(); - - int h(); - - int i(); - - int j(); - - int k(); - - int l(); - - int m(); - - int n(); - - int o(); - - int p(); - - int q(); - - int r(); - - int s(); - - int t(); - - int u(); - - int v(); - - int w(); - - int x(); - - int y(); - - int z(); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/P.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/P.java deleted file mode 100644 index 8cc377cce..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/P.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for PackageDeclarations, ParameterizedTypes, ParenthesizedExpressions, PostfixExpressions, - * PrefixExpressions, and PrimitiveTypes. - */ -class P< - T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, - T22, T23, T24> { - void f() { - int x = (1 + 2) * 3; - ++x; - x++; - int j = + + +x; - int k = + + ++x; - int jj = - - -x; - int kk = - - --x; - boolean b = false; - boolean bb = !!b; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Pair.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Pair.java deleted file mode 100644 index a596748fd..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Pair.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** JavaDoc comment. */ -public class Pair { - public final T1 x; - public final T2 y; - - Pair(T1 x, T2 y) { - this.x = x; - this.y = y; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/PairedArguments.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/PairedArguments.java deleted file mode 100644 index 1a654d06f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/PairedArguments.java +++ /dev/null @@ -1,40 +0,0 @@ -class T { - { - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxx(), xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxx(), - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxx(), - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxx(), - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx); - f( - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, - xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxx); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Q.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Q.java deleted file mode 100644 index f46720166..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Q.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for QualifiedNames and QualifiedTypes. */ -class Q { - static final int zero = 0; - - class T {} - - static void f() { - Q. /* @MarkerAnnotation */T t; - int zero = Q.zero; - java.lang. /* @MarkerAnnotation */String s = null; - Q.f(); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/R.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/R.java deleted file mode 100644 index 053d46e72..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/R.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for ReturnStatements. */ -class R { - void f() { - return; - } - - int f(int x) { - return x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x - + x + x + x + x + x + x + x + x + x; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/S.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/S.java deleted file mode 100644 index a1e07d1c8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/S.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for SimpleNames, SimpleTypes, SingleMemberAnnotations, SingleVariableDeclarations, - * Statements, StringLiterals, SuperConstructorInvocations, SuperFieldAccesses, - * SuperMethodInvocations, SuperMethodReferences, SwitchCases, SwitchStatements, and - * SynchronizedStatements. - */ -class S { - // TODO(jdd): Add tests for higher language levels. - - int x = 0; - - @SingleMemberAnnotation( - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0) - S() { - super(); - } - - class SS extends S { - SS() { - super(); - super.x = 0; - super.foo(); - } - } - - void foo() { - Object[] object = null; - synchronized ( - object[ - 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 - + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0]) { - switch ("abc") { - case "one": - break; - case "two": - break; - case "three": - default: - break; - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/SingleMemberAnnotation.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/SingleMemberAnnotation.java deleted file mode 100644 index 66045d5c0..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/SingleMemberAnnotation.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.google.googlejavaformat.java.test; - -public @interface SingleMemberAnnotation { - int value(); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/SuperQualifier.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/SuperQualifier.java deleted file mode 100644 index 993a96dee..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/SuperQualifier.java +++ /dev/null @@ -1,18 +0,0 @@ -class SuperQualifier { - String a() { - return this.toStringHelper() - .add("foo", foo_________________________________________) - .add("bar", bar_________________________________________); - } - - String b() { - return super.toStringHelper() - .add("foo", foo_________________________________________) - .add("bar", bar_________________________________________); - } - - { - this.aaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbb( - ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/T.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/T.java deleted file mode 100644 index c8cd29316..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/T.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for ThisExpressions, ThrowStatements, TryStatements, TypeDeclarationStatements, - * TypeDeclarations, TypeLiterals, TypeMethodReferences, TypeParameters, and Types. - */ -class T { - // TODO(jdd): Add tests for higher language levels. - - T f(int x) throws Exception { - class TT {} - if (x == 0 || T.class == null) { - return this; - } - try (AutoCloseable y = null) { - throw new RuntimeException(); - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/TryWithResources.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/TryWithResources.java deleted file mode 100644 index 5d294f94a..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/TryWithResources.java +++ /dev/null @@ -1,21 +0,0 @@ -class TryWtihResources { - { - try (@A C c = c(); ) {} - try (final @A C c = c(); ) {} - try (@A final C c = c(); ) {} - try (@A final @B C c = c(); ) {} - - try (final BufferedWriter writer = - new BufferedWriter(new OutputStreamWriter(testFile, Charset.defaultCharset()))) { - writer.append("tom cruise\n").append("avatar\n"); - writer.flush(); - } - - try (@SuppressWarnings("resource") - Scanner inputScanner = new Scanner(inputStream).useDelimiter("\\s+|,")) { - while (inputScanner.hasNextLong()) { - placementIds.add(inputScanner.nextLong()); - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/U.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/U.java deleted file mode 100644 index 555cbf87e..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/U.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for UnionTypes. */ -class U { - void f() { - class Exception0 extends Exception {} - class Exception1 extends Exception {} - class Exception2 extends Exception {} - class Exception3 extends Exception {} - class Exception4 extends Exception {} - class Exception5 extends Exception {} - class Exception6 extends Exception {} - class Exception7 extends Exception {} - class Exception8 extends Exception {} - class Exception9 extends Exception {} - try { - char c = '\123'; - switch (c) { - case '0': - throw new Exception0(); - case '1': - throw new Exception1(); - case '2': - throw new Exception2(); - case '3': - throw new Exception3(); - case '4': - throw new Exception4(); - case '5': - throw new Exception5(); - case '6': - throw new Exception6(); - case '7': - throw new Exception7(); - case '8': - throw new Exception8(); - case '9': - default: - throw new Exception9(); - } - } catch ( - Exception0 | Exception1 | Exception2 | Exception3 | Exception4 | Exception5 | Exception6 - | Exception7 | Exception8 | Exception9 - e) { - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/UnaryMinus.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/UnaryMinus.java deleted file mode 100644 index a512fe917..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/UnaryMinus.java +++ /dev/null @@ -1,5 +0,0 @@ -class UnaryMinus { - { - int b = - 1; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted.java deleted file mode 100644 index c936d9ecc..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted.java +++ /dev/null @@ -1,43 +0,0 @@ -package com . google . googlejavaformat . java . javatests ; - -import com . google . common . base . Charsets ; import com . google . common -. collect . Range ; import com . google . common . collect . RangeSet ; import -com . google . common . collect . TreeRangeSet ; import com . google . -googlejavaformat . java . Formatter ; import com . google . googlejavaformat . -java . JavaCommentsHelper ; import com . google . googlejavaformat . java . -JavaInput ; import com . google . googlejavaformat . java . JavaOutput ; -import junit . framework . TestCase ; - -import java . io . File ; import java . io . StringWriter ; import java . io . -Writer ; import java . nio . file . FileSystems ; import java . nio . file . -Files ; import java . nio . file . Path ; import java . util . ArrayList ; -import java . util . List ; - -/** -* Integration test for google-java-format. Format each file -* in the input directory, and confirm that the result is -* the same as the file in the output directory. -*/ -public final class Unformatted extends TestCase { private static final int -MAX_WIDTH = 100 ; public void testFormatter ( ) throws Exception { Path -inputPath = FileSystems . getDefault ( ) . getPath ( TestPath . getDir ( ) , -"input" ) ; Path outputPath = FileSystems . getDefault ( ) . getPath ( -TestPath . getDir ( ) , "output" ) ; File inputDirectory = new File ( -inputPath . toString ( ) ) ; File outputDirectory = new File ( outputPath . -toString ( ) ) ; for ( File file : inputDirectory . listFiles ( ) ) { -assertTrue ( file . isFile ( ) ) ; String fileName = file . getName ( ) ; -assertTrue ( fileName . endsWith ( ".java" ) ) ; byte [ ] inputBytes = Files . -readAllBytes ( FileSystems . getDefault ( ) . getPath ( inputDirectory . -toString ( ) , fileName ) ) ; String inputString = new String ( inputBytes , -Charsets . UTF_8 ) ; byte [ ] expectedOutputBytes = Files . readAllBytes ( -FileSystems . getDefault ( ) . getPath ( outputDirectory . toString ( ) , -fileName ) ) ; String expectedOutputString = new String ( expectedOutputBytes -, Charsets . UTF_8 ) ; JavaInput javaInput = new JavaInput ( inputString ) ; -JavaOutput javaOutput = new JavaOutput ( javaInput , new JavaCommentsHelper ( -) , false ) ; List < String > errors = new ArrayList < > ( ) ; Formatter . -format ( javaInput , javaOutput , MAX_WIDTH , errors , 1 ) ; assertTrue ( -errors . isEmpty ( ) ) ; Writer stringWriter = new StringWriter ( ) ; RangeSet -< Integer > linesFlag = TreeRangeSet . create ( ) ; linesFlag . add ( Range .< -Integer > all ( ) ) ; javaOutput . writeMerged ( stringWriter , linesFlag , -MAX_WIDTH , errors ) ; String outputString = stringWriter . toString ( ) ; -assertEquals ( outputString , expectedOutputString ) ; } } } diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted2.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted2.java deleted file mode 100644 index d968aeb4d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted2.java +++ /dev/null @@ -1,16 +0,0 @@ -package com . google . googlejavaformat ; - -/** -* Rewrite comments. This interface is implemented by -* {@link com.google.googlejavaformat.java.JavaCommentsHelper JavaCommentsHelper}. -*/ -public interface CommentsHelper { - /** - * Try to rewrite comments, returning rewritten text. - * @param text0 the literal comment text to rewrite - * @param maxWidth the line length for the output - * @param column0 the current column - * @return the rewritten comment - */ - String rewrite ( String text0 , int maxWidth , int column0 ) ; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted3.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted3.java deleted file mode 100644 index a2649f0bd..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/Unformatted3.java +++ /dev/null @@ -1,9 +0,0 @@ -package com . google . googlejavaformat ; - -class Unformatted3 { - /** - * This comment is not reflowed - * because it contains
    preformatted
    - * content. - */ -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/V.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/V.java deleted file mode 100644 index b3e9d1b34..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/V.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** - * Tests for VariableDeclarationExpressions, VariableDeclarationFragments, and - * VariableDeclarationStatements. - */ -class V { - int x = 0, y = 1; - - void f() { - for (int a = 0, b = 1; a < b;) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/W.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/W.java deleted file mode 100644 index 53f50d4a3..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/W.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.google.googlejavaformat.java.test; - -/** Tests for WhileStatements and WildcardTypes. */ -class W { - T f() { - while (true == true == true == true == true == true == true == true == true == true == true - == true == true) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/WildBound.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/WildBound.java deleted file mode 100644 index fa6138673..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/WildBound.java +++ /dev/null @@ -1,5 +0,0 @@ -class WildBound { - T f() { - return (T) X.class.newInstance((F) f, t); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i100.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i100.java deleted file mode 100644 index b7c88f8b5..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i100.java +++ /dev/null @@ -1,7 +0,0 @@ -public class I100 { - void f() { - Object o; - o = new String @A [] {"foo", "bar"}; - o = new String @A @B [] @C [] {"foo", "bar"}; - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i101.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i101.java deleted file mode 100644 index 97c321ec1..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i101.java +++ /dev/null @@ -1 +0,0 @@ -public @interface kHz {} // No prefix defined in the annotation itself diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i155.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i155.java deleted file mode 100644 index 1a525de39..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i155.java +++ /dev/null @@ -1,5 +0,0 @@ -class I155 { - void walkAndClose(Stream stream) { - try (stream) {} - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i176.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i176.java deleted file mode 100644 index 78aabff6d..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i176.java +++ /dev/null @@ -1,6 +0,0 @@ -interface -InterfaceWithPrivateStaticMethod -{ - private static void bar() { } - default void foo() { bar(); } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i221.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i221.java deleted file mode 100644 index 6320a38ec..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i221.java +++ /dev/null @@ -1,8 +0,0 @@ -class I221 { - { - logger.log( - Level.WARNING, - "Unable to obtain jst.web facet version from selected project", //$NON-NLS-1$ - ex); - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i281.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i281.java deleted file mode 100644 index 0b42d0874..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i281.java +++ /dev/null @@ -1,8 +0,0 @@ -public enum Empty {} -public enum Empty {;} -public enum Empty {;;;} -public enum Empty {; // comment -;;} -public enum Empty {; -;; // comment -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i282.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i282.java deleted file mode 100644 index a8bf796c2..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i282.java +++ /dev/null @@ -1,11 +0,0 @@ -public class ArrayVsVarargs { - - void f(String[] arg) {} - void g(String... arg) {} - void h(String @A [] arg) {} - void i(String @B... arg) {} - void j(String @C [] @D [] arg) {} - void k(String @E [] @F... arg) {} - - Class c = byte[].class; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i55.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i55.java deleted file mode 100644 index 425f8ebfb..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i55.java +++ /dev/null @@ -1,13 +0,0 @@ -import java.lang.annotation.*; - -@Target(ElementType.TYPE_USE) -@interface Interned {} - -public class GjfTypeAnnotationOnArrayTest { - - public static void test() { - String @Interned [] iarray1 = new String @Interned [2]; - } - -} - diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i59.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i59.java deleted file mode 100644 index 937f40ff2..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i59.java +++ /dev/null @@ -1,10 +0,0 @@ -import org.checkerframework.checker.tainting.qual.*; -class Outer { - class Nested { - class InnerMost { - @A Outer context(@B Outer.@C Nested.@D InnerMost this) { - return Outer.this; - } - } - } -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i60.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i60.java deleted file mode 100644 index 8b0a378b8..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i60.java +++ /dev/null @@ -1,9 +0,0 @@ -import org.checkerframework.checker.nullness.qual.*; - -public class FullyQualified { - - public void format1(java.lang.String a1, java.lang. @Nullable Object... a2) { - // body - } - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i65.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i65.java deleted file mode 100644 index d4a459313..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i65.java +++ /dev/null @@ -1,5 +0,0 @@ -import org.checkerframework.checker.nullness.qual.*; - -class UnannoPrimitives { - Object ar = new @Nullable byte[] {4}; -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i66.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i66.java deleted file mode 100644 index 54e3cce8f..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i66.java +++ /dev/null @@ -1,7 +0,0 @@ -public class AnnotatedCast { - - public static @Sibling1 int convertSibling2ToSibling1(@Sibling2 int a) { - return (@Sibling1 int) 1; - } - -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i71.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i71.java deleted file mode 100644 index 324c3d5ef..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i71.java +++ /dev/null @@ -1,16 +0,0 @@ -import java.util.Arrays; - -class Test { - Wrapper w = new Wrapper( - Arrays.asList( - "a", "b", - "c", "d", - "e" - ), 2); - Wrapper w = new Wrapper( - Arrays.asList( - "a", "b", - "c", "d", - "e" - )); -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i95.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i95.java deleted file mode 100644 index 624664e48..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i95.java +++ /dev/null @@ -1,3 +0,0 @@ -class I95 { - public void format2(Object @Nullable ... a2) {} -} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i98.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i98.java deleted file mode 100644 index abc1698a2..000000000 --- a/gradle-baseline-java/src/test/resources/com/palantir/baseline/googlejavaformat-in/i98.java +++ /dev/null @@ -1,8 +0,0 @@ -public class AnonInnerDefaults { - - public void tryStuff(final UIElement e) { - PolyIface p = - new @UI PolyIface() { - }; - } -} From 5ad76e3ea03e218b6eb0e045585b753c1377fec8 Mon Sep 17 00:00:00 2001 From: Dan Sanduleac Date: Thu, 17 Oct 2019 17:20:36 +0100 Subject: [PATCH 5/5] StringReflowing test --- .../eclipse-formatter-expected/StringReflowing.java | 8 ++++++++ .../palantir/baseline/formatter-in/StringReflowing.java | 6 ++++++ .../palantirjavaformat-expected/StringReflowing.java | 9 +++++++++ 3 files changed, 23 insertions(+) create mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/StringReflowing.java create mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-in/StringReflowing.java create mode 100644 gradle-baseline-java/src/test/resources/com/palantir/baseline/palantirjavaformat-expected/StringReflowing.java diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/StringReflowing.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/StringReflowing.java new file mode 100644 index 000000000..5fd913927 --- /dev/null +++ b/gradle-baseline-java/src/test/resources/com/palantir/baseline/eclipse-formatter-expected/StringReflowing.java @@ -0,0 +1,8 @@ +class StringReflowing { + byte[] bytes = + ("one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt at all") + .getBytes(); + + String foo = callRandomMethod( + "one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt at all"); +} diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-in/StringReflowing.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-in/StringReflowing.java new file mode 100644 index 000000000..c8e269bba --- /dev/null +++ b/gradle-baseline-java/src/test/resources/com/palantir/baseline/formatter-in/StringReflowing.java @@ -0,0 +1,6 @@ +class StringReflowing { + byte[] bytes = + ("one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt at all").getBytes(); + + String foo = callRandomMethod("one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt at all"); +} \ No newline at end of file diff --git a/gradle-baseline-java/src/test/resources/com/palantir/baseline/palantirjavaformat-expected/StringReflowing.java b/gradle-baseline-java/src/test/resources/com/palantir/baseline/palantirjavaformat-expected/StringReflowing.java new file mode 100644 index 000000000..4b475bf95 --- /dev/null +++ b/gradle-baseline-java/src/test/resources/com/palantir/baseline/palantirjavaformat-expected/StringReflowing.java @@ -0,0 +1,9 @@ +class StringReflowing { + byte[] bytes = ("one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to" + + " interrupt at all") + .getBytes(); + + String foo = callRandomMethod( + "one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt" + + " at all"); +}