Code cleanup.
[javainspect.git] / src / main / java / eu / svjatoslav / inspector / java / methods / JavaFile.java
index 9ec86c3..c1404c8 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * JavaInspect - Utility to visualize java software
  * Copyright (C) 2013-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 3 of the GNU Lesser General Public License
  * or later as published by the Free Software Foundation.
@@ -23,10 +23,10 @@ import static eu.svjatoslav.commons.string.tokenizer.Terminator.TerminationStrat
 public class JavaFile {
 
     public static final String UTF_8 = "UTF-8";
-    private final List<Import> imports = new ArrayList<Import>();
+    public final List<Clazz> classes = new ArrayList<>();
+    final StringBuffer contents = new StringBuffer();
+    private final List<Import> imports = new ArrayList<>();
     private final File file;
-    public List<Clazz> classes = new ArrayList<Clazz>();
-    StringBuffer contents = new StringBuffer();
     private String packageName;
 
     public JavaFile(final File file) throws IOException, InvalidSyntaxException {
@@ -42,7 +42,7 @@ public class JavaFile {
         final Tokenizer tokenizer = new Tokenizer(contents.toString());
 
         // empty space
-        tokenizer.addTerminator(" ",  DROP);
+        tokenizer.addTerminator(" ", DROP);
         tokenizer.addTerminator("\t", DROP);
         tokenizer.addTerminator("\n", DROP);