Skip to content

Commit

Permalink
Apply auto-formatting, re #2
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Feb 27, 2024
1 parent 595a43d commit e69a5c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/libj/jci/CompilationException.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ private static String buildMessage(final List<Diagnostic<? extends JavaFileObjec
if (diagnostics == null || (size = diagnostics.size()) == 0)
return null;

final StringBuilder builder = new StringBuilder(size + " Errors\n");
final StringBuilder b = new StringBuilder(size + " Errors\n");
final Iterator<Diagnostic<? extends JavaFileObject>> iterator = diagnostics.iterator();
for (int i = 0; iterator.hasNext(); ++i) { // [I]
if (i > 0)
builder.append('\n');
b.append('\n');

builder.append(iterator.next());
b.append(iterator.next());
}

return builder.toString();
return b.toString();
}

private final List<Diagnostic<? extends JavaFileObject>> diagnostics;
Expand Down

0 comments on commit e69a5c9

Please sign in to comment.