From d3b795a4cb328869ea86bcb8b4b7dcd6bea62747 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 7 Sep 2015 17:28:19 +0900 Subject: [PATCH] TabFile: Fix Eclipse warnings and code style - Redundant specification of type arguments - Missing @Override annotation - Incorrect indentation Change-Id: Ifafc51bd0ef7f8fa8a3e7ad9cd6e42d70a913cbc --- .../java/com/google/gerrit/server/git/TabFile.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/TabFile.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/TabFile.java index 87f9a23879..3cbac3ba26 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/git/TabFile.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/git/TabFile.java @@ -32,11 +32,11 @@ public class TabFile { } public static Parser TRIM = new Parser() { - public String parse(String str) { - return str.trim(); - } - }; - + @Override + public String parse(String str) { + return str.trim(); + } + }; protected static class Row { public String left; @@ -50,7 +50,7 @@ public class TabFile { protected static List parse(String text, String filename, Parser left, Parser right, ValidationError.Sink errors) throws IOException { - List rows = new ArrayList(); + List rows = new ArrayList<>(); BufferedReader br = new BufferedReader(new StringReader(text)); String s; for (int lineNumber = 1; (s = br.readLine()) != null; lineNumber++) {