Index: applications/editors/josm/plugins/proj4j/src/org/openstreetmap/josm/plugins/proj4j/Proj4JProjectionChoice.java
===================================================================
--- applications/editors/josm/plugins/proj4j/src/org/openstreetmap/josm/plugins/proj4j/Proj4JProjectionChoice.java	(revision 30737)
+++ applications/editors/josm/plugins/proj4j/src/org/openstreetmap/josm/plugins/proj4j/Proj4JProjectionChoice.java	(revision 30738)
@@ -64,5 +64,5 @@
         sorter = new TableRowSorter<>(model);
     }
-    
+
     @Override
     public String getId() {
@@ -74,7 +74,7 @@
         return new Proj4JPanel(actionListener);
     }
-    
+
     protected class Proj4JPanel extends JPanel {
-        
+
         public Proj4JPanel(ActionListener actionListener) {
             GridBagConstraints c = new GridBagConstraints();
@@ -94,12 +94,15 @@
                     new DocumentListener() {
 
+                        @Override
                         public void insertUpdate(DocumentEvent e) {
                             newFilter();
                         }
 
+                        @Override
                         public void removeUpdate(DocumentEvent e) {
                             newFilter();
                         }
 
+                        @Override
                         public void changedUpdate(DocumentEvent e) {
                             newFilter();
@@ -213,4 +216,5 @@
         }
 
+        @Override
         public void valueChanged(ListSelectionEvent e) {
             updateSelectedCode();
@@ -258,15 +262,16 @@
         public CRSTableModel() throws java.io.IOException {
             // Read projection information from file, (authority, code, description)
-            InputStream inStr = getClass().getResourceAsStream("/resources/projections.txt");
-            BufferedReader fh = new BufferedReader(new InputStreamReader(inStr));
-
-            String s;
-            while ((s = fh.readLine()) != null) {
-                String f[] = s.split("\t");
-                if (f.length >= 3) {
-                    crsList.add(new CRSEntry(f[0], f[1], f[2]));
+            try (
+                InputStream inStr = getClass().getResourceAsStream("/resources/projections.txt");
+                BufferedReader fh = new BufferedReader(new InputStreamReader(inStr));
+            ) {
+                String s;
+                while ((s = fh.readLine()) != null) {
+                    String f[] = s.split("\t");
+                    if (f.length >= 3) {
+                        crsList.add(new CRSEntry(f[0], f[1], f[2]));
+                    }
                 }
             }
-            fh.close();
         }
 
