Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
asaha committed Mar 20, 2012
2 parents 3ebf15c + 07fe405 commit 69f5d38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,8 @@ d3b2c77daf2cdb0aa1c50d93e49317727e2eae95 jdk7u4-b227
3fbd87d50fbf4de3987e36ec5f3e8ce1c383ce3d jdk7u4-b11
b4e5df5b18bb75db15ed97da02e5df086d2c7930 jdk7u4-b12
7d18bccaec3781f3d4f2d71879f91e257db2f0f7 jdk7u4-b13
82c5b3166b3194e7348b2a9d146b6760c9a77128 jdk7u4-b14
36490d49683f7be9d8fbbe1f8eefa1fe9fe550fa jdk7u4-b15
5c881231f1161fbc4fe86383ce59dd6a1bbe4f8e jdk7u4-b16
82c5b3166b3194e7348b2a9d146b6760c9a77128 jdk7u6-b01
6211e6e5c90efab0d033a99d9797a60aaad1f203 jdk7u6-b02
10 changes: 5 additions & 5 deletions src/com/sun/org/apache/xerces/internal/impl/dv/DTDDVFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public abstract class DTDDVFactory {
* @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);
}

Expand All @@ -57,19 +57,19 @@ public static synchronized final DTDDVFactory getInstance() throws DVFactoryExce
* @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
Expand Down

0 comments on commit 69f5d38

Please sign in to comment.