commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1130928 - /commons/sandbox/digester3/trunk/src/examples/xmlrules/addressbook/src/main/java/org/apache/commons/digester3/examples/xmlrules/addressbook/Main.java
Date Fri, 03 Jun 2011 07:52:08 GMT
Author: simonetripodi
Date: Fri Jun  3 07:52:08 2011
New Revision: 1130928

URL: http://svn.apache.org/viewvc?rev=1130928&view=rev
Log:
organized imports

Modified:
    commons/sandbox/digester3/trunk/src/examples/xmlrules/addressbook/src/main/java/org/apache/commons/digester3/examples/xmlrules/addressbook/Main.java

Modified: commons/sandbox/digester3/trunk/src/examples/xmlrules/addressbook/src/main/java/org/apache/commons/digester3/examples/xmlrules/addressbook/Main.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/xmlrules/addressbook/src/main/java/org/apache/commons/digester3/examples/xmlrules/addressbook/Main.java?rev=1130928&r1=1130927&r2=1130928&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/xmlrules/addressbook/src/main/java/org/apache/commons/digester3/examples/xmlrules/addressbook/Main.java
(original)
+++ commons/sandbox/digester3/trunk/src/examples/xmlrules/addressbook/src/main/java/org/apache/commons/digester3/examples/xmlrules/addressbook/Main.java
Fri Jun  3 07:52:08 2011
@@ -17,12 +17,14 @@ package org.apache.commons.digester3.exa
  * limitations under the License.
  */ 
 
-import java.net.URL;
-
 import static org.apache.commons.digester3.binder.DigesterLoader.newLoader;
 
+import java.io.File;
+import java.io.IOException;
+
 import org.apache.commons.digester3.Digester;
 import org.apache.commons.digester3.xmlrules.FromXmlRulesModule;
+import org.xml.sax.SAXException;
 
 /**
  * A simple program to demonstrate the basic functionality of the
@@ -90,15 +92,15 @@ public class Main
         // Process the input file.
         try
         {
-            java.io.File srcfile = new java.io.File( datafileName );
+            File srcfile = new java.io.File( datafileName );
             d.parse( srcfile );
         }
-        catch ( java.io.IOException ioe )
+        catch ( IOException ioe )
         {
             System.out.println( "Error reading input file:" + ioe.getMessage() );
             System.exit( -1 );
         }
-        catch ( org.xml.sax.SAXException se )
+        catch ( SAXException se )
         {
             System.out.println( "Error parsing input file:" + se.getMessage() );
             System.exit( -1 );



Mime
View raw message