Skip to content

Commit 61b2409

Browse files
committed
chore(java-cloud-bom): format java-cloud-bom modules
1 parent e30ff88 commit 61b2409

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

java-cloud-bom/release-note-generation/src/main/java/com/google/cloud/ReleaseNoteGeneration.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ public class ReleaseNoteGeneration {
6363
private static final String GOOGLEAPIS_ORG = "googleapis";
6464

6565
private static final ImmutableSet<String> splitRepositoryLibraryNames =
66-
ImmutableSet.of(
67-
"bigtable",
68-
"firestore",
69-
"pubsub",
70-
"pubsublite");
66+
ImmutableSet.of("bigtable", "firestore", "pubsub", "pubsublite");
7167

7268
private static boolean clientLibraryFilter(String coordinates) {
7369
if (coordinates.contains("google-cloud-core")) {
@@ -88,7 +84,9 @@ private static boolean clientLibraryFilter(String coordinates) {
8884

8985
/** Generates release note of specified Libraries BOM version to file "release_note.md". */
9086
public static void main(String[] arguments)
91-
throws ArtifactDescriptorException, MavenRepositoryException, IOException,
87+
throws ArtifactDescriptorException,
88+
MavenRepositoryException,
89+
IOException,
9290
InterruptedException {
9391

9492
String librariesBomVersion = System.getProperty("libraries-bom.version");
@@ -122,7 +120,9 @@ public static void main(String[] arguments)
122120

123121
@VisibleForTesting
124122
String generateReport(Bom bom, String googleCloudJavaVersion)
125-
throws MavenRepositoryException, ArtifactDescriptorException, IOException,
123+
throws MavenRepositoryException,
124+
ArtifactDescriptorException,
125+
IOException,
126126
InterruptedException {
127127
Bom previousBom = previousBom(bom);
128128

@@ -174,7 +174,8 @@ private void printKeyCoreLibraryDependencies(Bom bom) {
174174
.append("\n")
175175
.append("\n");
176176
report
177-
.append("If you encounter compatibility issues with protobuf-java 4.x, please update your codebase and dependencies to ensure compatibility.")
177+
.append(
178+
"If you encounter compatibility issues with protobuf-java 4.x, please update your codebase and dependencies to ensure compatibility.")
178179
.append("\n");
179180
}
180181

@@ -616,7 +617,9 @@ static String fetchReleaseNote(String owner, String repository, String tag)
616617
new ProcessBuilder("gh", "release", "--repo", owner + "/" + repository, "view", tag);
617618
builder.redirectErrorStream(true);
618619
Process process = builder.start();
619-
String output = new String(process.getInputStream().readAllBytes(), java.nio.charset.StandardCharsets.UTF_8);
620+
String output =
621+
new String(
622+
process.getInputStream().readAllBytes(), java.nio.charset.StandardCharsets.UTF_8);
620623
boolean finished = process.waitFor(1, TimeUnit.MINUTES);
621624
Verify.verify(finished, "The process timed out");
622625
Verify.verify(0 == process.exitValue(), "The command failed: %s", output);

java-cloud-bom/release-note-generation/src/test/java/com/google/cloud/ReleaseNoteGenerationTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,4 @@ public void testFetchReleaseNote() throws Exception {
183183
+ " ([#1790](https://github.com/googleapis/java-storage/issues/1790)) "
184184
+ "([31c1b18](https://github.com/googleapis/java-storage/commit/31c1b18acc3c118e39eb613a82ee292f3e246b8f))");
185185
}
186-
187186
}

java-cloud-bom/tests/src/test/java/com/google/cloud/MaximumLinkageErrorsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private LinkageChecker createLinkageChecker(Bom bom)
9595
}
9696
List<ClassPathEntry> artifactsInBom = classpath.subList(0, managedDependencies.size());
9797
ImmutableSet<ClassPathEntry> entryPoints = ImmutableSet.copyOf(artifactsInBom);
98-
return LinkageChecker.create(classpath, entryPoints, ImmutableList.of(), null);
98+
return LinkageChecker.create(classpath, entryPoints, ImmutableList.of(), null);
9999
}
100100

101101
private boolean hasLinkageProblemFromArtifactId(LinkageProblem problem, String artifactId) {

java-cloud-bom/tests/validate-bom/src/main/java/com/google/cloud/CreateBomCanaryProject.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ private static String readPomTemplate() throws IOException {
8080
try (InputStream inputStream =
8181
CreateBomCanaryProject.class.getClassLoader().getResourceAsStream("template.pom.xml")) {
8282
Verify.verifyNotNull(inputStream);
83-
return new String(com.google.common.io.ByteStreams.toByteArray(inputStream), java.nio.charset.StandardCharsets.UTF_8);
83+
return new String(
84+
com.google.common.io.ByteStreams.toByteArray(inputStream),
85+
java.nio.charset.StandardCharsets.UTF_8);
8486
}
8587
}
8688

0 commit comments

Comments
 (0)