commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1129390 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java
Date Mon, 30 May 2011 21:42:00 GMT
Author: simonetripodi
Date: Mon May 30 21:42:00 2011
New Revision: 1129390

URL: http://svn.apache.org/viewvc?rev=1129390&view=rev
Log:
fixed checkstyle format violations

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java?rev=1129390&r1=1129389&r2=1129390&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java
Mon May 30 21:42:00 2011
@@ -53,7 +53,7 @@ public abstract class FromXmlRulesModule
 
     private static final String DIGESTER_DTD_PATH = "digester-rules.dtd";
 
-    private final URL xmlRulesDtdUrl = FromXmlRulesModule.class.getResource(DIGESTER_DTD_PATH);
+    private final URL xmlRulesDtdUrl = FromXmlRulesModule.class.getResource( DIGESTER_DTD_PATH
);
 
     private final List<InputSource> inputSource = new ArrayList<InputSource>();
 
@@ -220,14 +220,15 @@ public abstract class FromXmlRulesModule
         try
         {
             URLConnection connection = url.openConnection();
-            connection.setUseCaches(false);
+            connection.setUseCaches( false );
             InputStream stream = connection.getInputStream();
-            InputSource source = new InputSource(stream);
-            source.setSystemId(url.toExternalForm());
+            InputSource source = new InputSource( stream );
+            source.setSystemId( url.toExternalForm() );
 
             loadXMLRules( source );
         }
-        catch (Exception e) {
+        catch ( Exception e )
+        {
             rulesBinder().addError( e );
         }
     }



Mime
View raw message