# HG changeset patch # User lana # Date 1331169746 28800 # Node ID 6048e224bd347e1e327323ce14ada58543e56d83 # Parent 36490d49683f7be9d8fbbe1f8eefa1fe9fe550fa# Parent b519b554f589b9e6336bfcfc21172b0c92d78e59 Merge diff -r 36490d49683f -r 6048e224bd34 src/com/sun/org/apache/xerces/internal/impl/dv/DTDDVFactory.java --- a/src/com/sun/org/apache/xerces/internal/impl/dv/DTDDVFactory.java Thu Mar 01 13:44:55 2012 -0800 +++ b/src/com/sun/org/apache/xerces/internal/impl/dv/DTDDVFactory.java Wed Mar 07 17:22:26 2012 -0800 @@ -45,7 +45,7 @@ * @exception DVFactoryException cannot create an instance of the specified * class name or the default class name */ - public static synchronized final DTDDVFactory getInstance() throws DVFactoryException { + public static final DTDDVFactory getInstance() throws DVFactoryException { return getInstance(DEFAULT_FACTORY_CLASS); } @@ -57,19 +57,19 @@ * @exception DVFactoryException cannot create an instance of the specified * class name or the default class name */ - public static synchronized final DTDDVFactory getInstance(String factoryClass) throws DVFactoryException { - + public static final DTDDVFactory getInstance(String factoryClass) throws DVFactoryException { try { // if the class name is not specified, use the default one return (DTDDVFactory) (ObjectFactory.newInstance(factoryClass, true)); - } catch (ClassCastException e) { + } + catch (ClassCastException e) { throw new DVFactoryException("DTD factory class " + factoryClass + " does not extend from DTDDVFactory."); } } // can't create a new object of this class - protected DTDDVFactory(){} + protected DTDDVFactory() {} /** * return a dtd type of the given name