fixing the date parser
git-svn-id: http://google-refine.googlecode.com/svn/trunk@193 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
46ba4b94ca
commit
8f01da0aa8
@ -741,7 +741,7 @@ public class CalendarParser {
|
|||||||
|
|
||||||
Object result;
|
Object result;
|
||||||
try {
|
try {
|
||||||
result = method.invoke((Object) null, (Object) null);
|
result = method.invoke((Object) null);
|
||||||
} catch (IllegalAccessException iae) {
|
} catch (IllegalAccessException iae) {
|
||||||
return null;
|
return null;
|
||||||
} catch (InvocationTargetException ite) {
|
} catch (InvocationTargetException ite) {
|
||||||
@ -766,8 +766,7 @@ public class CalendarParser {
|
|||||||
for (int j = 0; j < tmpList.length; j++) {
|
for (int j = 0; j < tmpList.length; j++) {
|
||||||
final int len = tmpList[j].length();
|
final int len = tmpList[j].length();
|
||||||
if ((len > 2 && Character.isUpperCase(tmpList[j].charAt(1)))
|
if ((len > 2 && Character.isUpperCase(tmpList[j].charAt(1)))
|
||||||
&& (len != 7 || !Character
|
&& (len != 7 || !Character.isDigit(tmpList[j].charAt(3)))) {
|
||||||
.isDigit(tmpList[j].charAt(3)))) {
|
|
||||||
if (finalList == null) {
|
if (finalList == null) {
|
||||||
numSaved++;
|
numSaved++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user