Commit in java/trunk/users/src/main/java/org/hps/users/luca on MAIN
LCIOReaderScript2.java+4-4581 -> 582


java/trunk/users/src/main/java/org/hps/users/luca
LCIOReaderScript2.java 581 -> 582
--- java/trunk/users/src/main/java/org/hps/users/luca/LCIOReaderScript2.java	2014-05-14 20:57:16 UTC (rev 581)
+++ java/trunk/users/src/main/java/org/hps/users/luca/LCIOReaderScript2.java	2014-05-14 21:10:35 UTC (rev 582)
@@ -27,9 +27,9 @@
            
            //Create an LCIO writer to output the new file
            LCIOWriter writer = null;
-           try {writer = new LCIOWriter(outputFile);}
+           try { writer = new LCIOWriter(outputFile);}
            catch(IOException e)
-           {e.printStackTrace();
+           {
            System.exit(1);}
             //get the event number to print a status update.
            int num =event.getEventNumber();
@@ -47,7 +47,7 @@
                event.remove("MCParticle");
                
                //make a nre list for good particles which pass some test
-               ArrayList<MCParticle> goodParticles =new ArrayList<MCParticle>();
+               ArrayList<MCParticle> goodParticles =new ArrayList<>();
                
                //sort trhough the list of MCParticle objects in the full list and add good ones to the good list
               for(MCParticle p : particleList){
@@ -60,7 +60,7 @@
               //Write the event back out to the new file
               
                try{writer.write(event);}
-               catch(IOException e){e.printStackTrace();System.exit(1);}
+               catch(IOException e){System.exit(1);}
               //close the writer
         
                
SVNspam 0.1