d'oh, wrong object counter (thanks again to knut.forkalsrud for spotting my mistakes)

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1250 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-08-31 23:25:16 +00:00
parent 3bb0d3918c
commit e973fd3e89

View File

@ -22,7 +22,7 @@ public class Diff implements Function {
if (o1 instanceof String && o2 instanceof String) { if (o1 instanceof String && o2 instanceof String) {
return StringUtils.difference((String) o1,(String) o2); return StringUtils.difference((String) o1,(String) o2);
} else if ((o1 instanceof Date || o1 instanceof Calendar) && args.length == 3) { } else if ((o1 instanceof Date || o1 instanceof Calendar) && args.length == 3) {
Object o3 = args[3]; Object o3 = args[2];
if (o3 != null && o3 instanceof String) { if (o3 != null && o3 instanceof String) {
try { try {
String unit = ((String) o3).toLowerCase(); String unit = ((String) o3).toLowerCase();