You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2016/06/10 04:57:39 UTC
svn commit: r1747634 -
/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/datatype/DurationImpl.java
Author: mukulg
Date: Fri Jun 10 04:57:39 2016
New Revision: 1747634
URL: http://svn.apache.org/viewvc?rev=1747634&view=rev
Log:
I am reverting a change I did long time ago to this file. I am restoring the logic in this file, that was in the original revision 906804. I think, the original code that I had changed in this file is not really wrong.
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=1747634&r1=1747633&r2=1747634&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 Fri Jun 10 04:57:39 2016
@@ -420,16 +420,16 @@ class DurationImpl
protected DurationImpl(String lexicalRepresentation)
throws IllegalArgumentException {
// only if I could use the JDK1.4 regular expression ....
-
- if (lexicalRepresentation == null) {
- throw new NullPointerException();
- }
final String s = lexicalRepresentation;
boolean positive;
int[] idx = new int[1];
int length = s.length();
boolean timeRequired = false;
+
+ if (lexicalRepresentation == null) {
+ throw new NullPointerException();
+ }
idx[0] = 0;
if (length != idx[0] && s.charAt(idx[0]) == '-') {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org