You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2001/08/01 14:46:57 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/validators/datatype DatatypeValidatorFactoryImpl.java
sandygao 01/08/01 05:46:57
Modified: java/src/org/apache/xerces/validators/datatype
DatatypeValidatorFactoryImpl.java
Log:
fixing bug [2800]: DatatypeValidatorFactoryImpl will not compile.
Revision Changes Path
1.33 +3 -12 xml-xerces/java/src/org/apache/xerces/validators/datatype/DatatypeValidatorFactoryImpl.java
Index: DatatypeValidatorFactoryImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/validators/datatype/DatatypeValidatorFactoryImpl.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- DatatypeValidatorFactoryImpl.java 2001/07/19 22:36:15 1.32
+++ DatatypeValidatorFactoryImpl.java 2001/08/01 12:46:57 1.33
@@ -91,7 +91,7 @@
* @author Elena Litani
* @author Jeffrey Rodriguez
* @author Mark Swinkles - List Validation refactoring
- * @version $Id: DatatypeValidatorFactoryImpl.java,v 1.32 2001/07/19 22:36:15 sandygao Exp $
+ * @version $Id: DatatypeValidatorFactoryImpl.java,v 1.33 2001/08/01 12:46:57 sandygao Exp $
*/
public class DatatypeValidatorFactoryImpl implements DatatypeValidatorFactory {
@@ -434,35 +434,25 @@
private static Object createDatatypeValidator(Constructor validatorConstructor,
- Object[] arguments) throws InvalidDatatypeFacetException {
+ Object[] arguments) throws InvalidDatatypeFacetException {
Object validator = null;
try {
validator = validatorConstructor.newInstance(arguments);
- return validator;
}
catch ( InstantiationException e ) {
if ( fDebug ) {
e.printStackTrace();
}
- else {
- return null;
- }
}
catch ( IllegalAccessException e ) {
if ( fDebug ) {
e.printStackTrace();
}
- else {
- return null;
- }
}
catch ( IllegalArgumentException e ) {
if ( fDebug ) {
e.printStackTrace();
}
- else {
- return null;
- }
}
catch ( InvocationTargetException e ) {
if ( fDebug ) {
@@ -473,6 +463,7 @@
throw new InvalidDatatypeFacetException( e.getTargetException().getMessage() );
}
}
+
return validator;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org