diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2015-08-13 03:00:30 +0100 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2016-02-16 02:00:13 +0000 |
commit | 515871961ff934601b190bb32bf4fc42ddcf7e4d (patch) | |
tree | bd01845fb966a540e550d0755ac8bb4ca90621c5 /java/text | |
parent | 5f98982eadb3c595d86d4af2825902a3ccf8f581 (diff) | |
download | classpath-515871961ff934601b190bb32bf4fc42ddcf7e4d.tar.gz |
Revert undocumented changes accidentally included with last commit.
Diffstat (limited to 'java/text')
-rw-r--r-- | java/text/SimpleDateFormat.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/java/text/SimpleDateFormat.java b/java/text/SimpleDateFormat.java index ba982c457..05fa4cf15 100644 --- a/java/text/SimpleDateFormat.java +++ b/java/text/SimpleDateFormat.java @@ -907,7 +907,6 @@ public class SimpleDateFormat extends DateFormat for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); - System.err.println("Handling pattern character " + ch); if (ch == '\'') { if (fmt_index < fmt_max - 1 @@ -1100,7 +1099,6 @@ public class SimpleDateFormat extends DateFormat } break; default: - System.err.println("Hit default case from " + ch + "; returning null"); pos.setErrorIndex(pos.getIndex()); return null; } @@ -1127,10 +1125,7 @@ public class SimpleDateFormat extends DateFormat else n = numberFormat.parse(dateStr, pos); if (pos == null || ! (n instanceof Long)) - { - System.err.println("Number format parsing error; n = " + n + "; returning null"); - return null; - } + return null; value = n.intValue() + offset; } else if (set1 != null) @@ -1165,7 +1160,6 @@ public class SimpleDateFormat extends DateFormat } if (!found) { - System.err.println("!found; returning null"); pos.setErrorIndex(index); return null; } @@ -1218,12 +1212,9 @@ public class SimpleDateFormat extends DateFormat catch (IllegalArgumentException x) { pos.setErrorIndex(pos.getIndex()); - System.err.println("Threw " + x + "; returning null."); - System.err.println("Index: " + pos.getIndex()); - x.printStackTrace(); return null; } - } + } /** * <p> |