QuackatronHQ / Gigarepo

Use "" instead of new String() to create empty strings JAVA-P0063
Performance
Major
a month ago2 years old
Empty String constructor is inefficient, use "" instead
35  public static void main(String[] args) throws IOException {
36    File configLocation = new File(args[1]); // JAVA-E0406
37    BufferedReader configReader = null;
38    CharBuffer configBuf = CharBuffer.wrap(new String());39
40    HashMap<String, BigDecimal> hm = new HashMap<>();
41