Skip to content

Commit 8fd4ac0

Browse files
committed
chore: format BomContentTest.java
1 parent dbfef3f commit 8fd4ac0

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,22 @@ private static String buildMavenCentralUrl(Artifact artifact) {
148148
}
149149

150150
/**
151-
* Checks if the artifact exists in the local Maven repository cache.
152-
* This is used as a fallback/bypass for reachability checks during release PRs.
151+
* Checks if the artifact exists in the local Maven repository cache. This is used as a
152+
* fallback/bypass for reachability checks during release PRs.
153153
*/
154154
private static boolean existsLocally(Artifact artifact) {
155155
String localRepository = System.getProperty("maven.repo.local");
156156
if (localRepository == null) {
157157
// Standard default location for Maven local repository.
158158
localRepository = System.getProperty("user.home") + "/.m2/repository";
159159
}
160-
Path localPath = Paths.get(localRepository,
161-
artifact.getGroupId().replace('.', '/'),
162-
artifact.getArtifactId(),
163-
artifact.getVersion(),
164-
artifact.getArtifactId() + "-" + artifact.getVersion() + ".pom");
160+
Path localPath =
161+
Paths.get(
162+
localRepository,
163+
artifact.getGroupId().replace('.', '/'),
164+
artifact.getArtifactId(),
165+
artifact.getVersion(),
166+
artifact.getArtifactId() + "-" + artifact.getVersion() + ".pom");
165167
return Files.exists(localPath);
166168
}
167169

0 commit comments

Comments
 (0)