xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandy...@apache.org
Subject cvs commit: xml-xerces/java/src/org/apache/xerces/validators/datatype DatatypeValidatorFactoryImpl.java
Date Wed, 01 Aug 2001 12:46:57 GMT
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


Mime
View raw message