Skip to content

Commit 7a23595

Browse files
committed
remove formatting noise
1 parent ac02dc8 commit 7a23595

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

japicmp/src/main/java/japicmp/output/incompatible/IncompatibleErrorOutput.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,26 @@ public Void generate() {
106106
final SemanticVersion.ChangeType changeType = changeTypeOptional.get();
107107

108108
SemverOut semverOut = new SemverOut(options, jApiClasses, (change, semanticVersionLevel) -> {
109-
switch (semanticVersionLevel) {
110-
case MAJOR:
111-
if (changeType.ordinal() > SemanticVersion.ChangeType.MAJOR.ordinal()) {
112-
warn("Incompatibility detected: Requires semantic version level " + semanticVersionLevel + ": " + change);
113-
}
114-
break;
115-
case MINOR:
116-
if (changeType.ordinal() > SemanticVersion.ChangeType.MINOR.ordinal()) {
117-
warn("Incompatibility detected: Requires semantic version level " + semanticVersionLevel + ": " + change);
118-
}
119-
break;
120-
case PATCH:
121-
if (changeType.ordinal() > SemanticVersion.ChangeType.PATCH.ordinal()) {
122-
warn("Incompatibility detected: Requires semantic version level " + semanticVersionLevel + ": " + change);
123-
}
124-
break;
125-
default:
126-
// Ignore
127-
}
128-
});
109+
switch(semanticVersionLevel) {
110+
case MAJOR:
111+
if (changeType.ordinal() > SemanticVersion.ChangeType.MAJOR.ordinal()) {
112+
warn("Incompatibility detected: Requires semantic version level " + semanticVersionLevel + ": " + change);
113+
}
114+
break;
115+
case MINOR:
116+
if (changeType.ordinal() > SemanticVersion.ChangeType.MINOR.ordinal()) {
117+
warn("Incompatibility detected: Requires semantic version level " + semanticVersionLevel + ": " + change);
118+
}
119+
break;
120+
case PATCH:
121+
if (changeType.ordinal() > SemanticVersion.ChangeType.PATCH.ordinal()) {
122+
warn("Incompatibility detected: Requires semantic version level " + semanticVersionLevel + ": " + change);
123+
}
124+
break;
125+
default:
126+
// Ignore
127+
}
128+
});
129129

130130
String semver = semverOut.generate();
131131
if (changeType == SemanticVersion.ChangeType.MINOR && semver.equals(SemverOut.SEMVER_MAJOR)) {
@@ -311,7 +311,7 @@ public void visit(Iterator<JApiImplementedInterface> iterator, JApiImplementedIn
311311
private boolean breakBuildIfCausedByExclusion(JApiImplementedInterface jApiImplementedInterface) {
312312
if (!breakBuildIfCausedByExclusion) {
313313
CtClass ctClass = jApiImplementedInterface.getCtClass();
314-
return !classExcluded(ctClass);
314+
return !classExcluded(ctClass);
315315
}
316316
return true;
317317
}
@@ -406,7 +406,7 @@ private boolean breakBuildIfCausedByExclusion(JApiSuperclass jApiSuperclass) {
406406
Optional<CtClass> newSuperclassOptional = jApiSuperclass.getNewSuperclass();
407407
if (newSuperclassOptional.isPresent()) {
408408
CtClass ctClass = newSuperclassOptional.get();
409-
return !classExcluded(ctClass);
409+
return !classExcluded(ctClass);
410410
}
411411
}
412412
return true;

0 commit comments

Comments
 (0)