Skip to content

Commit 1bafff2

Browse files
committed
Fix Spotless formatting violations
Adjust if statement formatting to comply with project code style: - Split OR conditions onto separate lines with proper indentation - Ensures consistency with Spotless formatting rules
1 parent da7d466 commit 1bafff2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultDependencyResolver.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ private static String enhanceCollectionError(DependencyCollectionException e, Co
292292
String artifactId = artifact.getArtifactId();
293293
String version = artifact.getVersion();
294294

295-
if (containsUnresolvedExpression(groupId) || containsUnresolvedExpression(artifactId)
295+
if (containsUnresolvedExpression(groupId)
296+
|| containsUnresolvedExpression(artifactId)
296297
|| containsUnresolvedExpression(version)) {
297298
enhanced.append(" due to unresolved expression(s) in dependency: ")
298299
.append(groupId)
@@ -313,7 +314,8 @@ private static String enhanceCollectionError(DependencyCollectionException e, Co
313314
String artifactId = artifact.getArtifactId();
314315
String version = artifact.getVersion();
315316

316-
if (containsUnresolvedExpression(groupId) || containsUnresolvedExpression(artifactId)
317+
if (containsUnresolvedExpression(groupId)
318+
|| containsUnresolvedExpression(artifactId)
317319
|| containsUnresolvedExpression(version)) {
318320
enhanced.append(" due to unresolved expression(s) in dependency: ")
319321
.append(groupId)

0 commit comments

Comments
 (0)