Author: mrglavas
Date: Sun Nov 30 20:34:03 2008
New Revision: 721961

URL: http://svn.apache.org/viewvc?rev=721961&view=rev
Log:
JIRA Issue #1343:
http://issues.apache.org/jira/browse/XERCESJ-1343

Remove unused code. Patch thanks to Dave Brosius.

Modified:
    
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/datatype/DurationImpl.java

Modified: 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/datatype/DurationImpl.java
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/datatype/DurationImpl.java?rev=721961&r1=721960&r2=721961&view=diff
==============================================================================
--- 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/datatype/DurationImpl.java
 (original)
+++ 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/datatype/DurationImpl.java
 Sun Nov 30 20:34:03 2008
@@ -100,11 +100,6 @@
 class DurationImpl
        extends Duration
        implements Serializable {
-    
-    /**
-     * <p>Number of Fields.</p>
-     */
-    private static final int FIELD_NUM = 6;
 
     /**
      * <p>Internal array of value Fields.</p>
@@ -119,21 +114,9 @@
     };
 
     /**
-     * <p>Internal array of value Field ids.</p>
-     */
-    private static final int[] FIELD_IDS = {
-        DatatypeConstants.YEARS.getId(),
-        DatatypeConstants.MONTHS.getId(),
-        DatatypeConstants.DAYS.getId(),
-        DatatypeConstants.HOURS.getId(),
-        DatatypeConstants.MINUTES.getId(),
-        DatatypeConstants.SECONDS.getId()
-    };
-
-    /**
      * <p>BigDecimal value of 0.</p>
      */    
-    private static final BigDecimal ZERO = BigDecimal.valueOf((long) 0);
+    private static final BigDecimal ZERO = BigDecimal.valueOf(0);
 
     /**
      * <p>Indicates the sign. -1, 0 or 1 if the duration is negative,
@@ -704,8 +687,7 @@
         */
     public int compare(Duration rhs) {
        
-       BigInteger maxintAsBigInteger = BigInteger.valueOf((long) 
Integer.MAX_VALUE);
-       BigInteger minintAsBigInteger = BigInteger.valueOf((long) 
Integer.MIN_VALUE);
+       BigInteger maxintAsBigInteger = BigInteger.valueOf(Integer.MAX_VALUE);
 
        // check for fields that are too large in this Duration
        if (years != null && years.compareTo(maxintAsBigInteger) == 1) {        
        



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to