You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2008/05/08 04:11:31 UTC

svn commit: r654388 - /xerces/java/trunk/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java

Author: mrglavas
Date: Wed May  7 19:11:31 2008
New Revision: 654388

URL: http://svn.apache.org/viewvc?rev=654388&view=rev
Log:
Fixing indentation.

Modified:
    xerces/java/trunk/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java

Modified: xerces/java/trunk/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java?rev=654388&r1=654387&r2=654388&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java Wed May  7 19:11:31 2008
@@ -665,7 +665,7 @@
             
             try {
                 XMLReader reader = saxSource.getXMLReader();
-                if( reader==null ) {
+                if (reader == null) {
                     // create one now
                     SAXParserFactory spf = SAXParserFactory.newInstance();
                     spf.setNamespaceAware(true);
@@ -673,16 +673,17 @@
                         reader = spf.newSAXParser().getXMLReader();
                         // If this is a Xerces SAX parser, set the security manager if there is one
                         if (reader instanceof org.apache.xerces.parsers.SAXParser) {
-                           SecurityManager securityManager = (SecurityManager) fComponentManager.getProperty(SECURITY_MANAGER);
-                           if (securityManager != null) {
-                               try {
-                                   reader.setProperty(SECURITY_MANAGER, securityManager);
-                               }
-                               // Ignore the exception if the security manager cannot be set.
-                               catch (SAXException exc) {}
-                           }
+                            SecurityManager securityManager = (SecurityManager) fComponentManager.getProperty(SECURITY_MANAGER);
+                            if (securityManager != null) {
+                                try {
+                                    reader.setProperty(SECURITY_MANAGER, securityManager);
+                                }
+                                // Ignore the exception if the security manager cannot be set.
+                                catch (SAXException exc) {}
+                            }
                         }
-                    } catch( Exception e ) {
+                    } 
+                    catch (Exception e) {
                         // this is impossible, but better safe than sorry
                         throw new FactoryConfigurationError(e);
                     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org