Skip to content

Commit 7af1bb6

Browse files
authored
Merge pull request #218 from BobHanson/master
SimpleDateFormat jsnative fix
2 parents c5d2136 + f9a4db2 commit 7af1bb6

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
-516 KB
Binary file not shown.

sources/net.sf.j2s.java.core/src/java/text/SimpleDateFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ public Date parse(String text, ParsePosition pos) {
12571257
*
12581258
* @j2sNative
12591259
*
1260-
* var i0 = pos.index; pos.index = Math.min(80, text.length()); while
1260+
* var i0 = pos.index; pos.index = Math.min(80, text.length); while
12611261
* (pos.index >= i0) { var d = new Date(text.substring(i0,
12621262
* pos.index)); var x = d.getMilliseconds(); if (!isNaN(x))
12631263
* return d; pos.index--; }

0 commit comments

Comments
 (0)