mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-17 00:21:19 +00:00
Various code cleanups (#3709)
* For/while to foreach loop conversions * Don't instantiate Booleans * Remove redundant String.toString calls * Remove redundant String instantiations * Don't concatenate StringBuilder.append args * Replace dangling javadoc comments with blocks * Combine identical catch branches * Remove redundant catch branch * Remove unnecessary boxing * Remove redundant casts * Remove redundant null checks
This commit is contained in:
@@ -113,12 +113,12 @@ public class AssertFile {
|
||||
if(!deltas.isEmpty()) {
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append("files diff:\n");
|
||||
stringBuilder.append("\tfile: '" + expected.toAbsolutePath().toString() + "' \n");
|
||||
stringBuilder.append("\tfile: '" + actual.toAbsolutePath().toString() + "' \n");
|
||||
stringBuilder.append("\tfile: '").append(expected.toAbsolutePath().toString()).append("' \n");
|
||||
stringBuilder.append("\tfile: '").append(actual.toAbsolutePath().toString()).append("' \n");
|
||||
stringBuilder.append("\tdiffs:\n");
|
||||
|
||||
for (Delta delta: deltas) {
|
||||
stringBuilder.append(delta.toString() + "\n");
|
||||
stringBuilder.append(delta.toString()).append("\n");
|
||||
}
|
||||
|
||||
fail(stringBuilder.toString());
|
||||
|
||||
Reference in New Issue
Block a user