A quick fix to add the missing braces and correct the misspellings.

webrevs: http://cr.openjdk.java.net/~joehw/jdk8/8027484/webrev/

The following is where the braces were missing, others were a global substitution of the misspelling.

         if (_factory == null) {
-            if (useServicesMachnism)
+            if (useServicesMechanism) {
                 _factory = DocumentBuilderFactory.newInstance();
                 if (!(_factory instanceof 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl)) {
                     _internal = false;
                 }
-            else
+            } else {
                 _factory = DocumentBuilderFactory.newInstance(
                   
"com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl",
                   SAX2DOM.class.getClassLoader()
                   );
         }
+        }


Thanks
Joe

Reply via email to