Commit 2cd8b3f3 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Use chained String.append calls.

parent f66289e2
......@@ -145,7 +145,7 @@ public class ExoneraTorDatabaseImporter {
}
BufferedWriter bw = new BufferedWriter(new FileWriter(
"exonerator-lock"));
bw.append(String.valueOf(System.currentTimeMillis()) + "\n");
bw.append(String.valueOf(System.currentTimeMillis())).append("\n");
bw.close();
} catch (IOException e) {
logger.warn("Could not create 'exonerator-lock' file. Exiting.");
......
......@@ -110,7 +110,7 @@ public class ExoneraTorServlet extends HttpServlet {
StringBuilder sb = new StringBuilder();
int writtenAddresses = 0;
for (String address : match.addresses) {
sb.append((writtenAddresses++ > 0 ? ", " : "") + address);
sb.append(writtenAddresses++ > 0 ? ", " : "").append(address);
}
String[] statusEntry = new String[]{match.timestamp,
sb.toString(), match.fingerprint, match.nickname,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment