From 0314f49f362bb7ade17346eb41bfa85c236c59bd Mon Sep 17 00:00:00 2001 From: wangwenxiang Date: Wed, 15 Mar 2017 10:39:33 +0800 Subject: [PATCH 1/2] Fix bug: load wrong new value for RowFlagChange --- main/src/com/google/refine/model/changes/RowFlagChange.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/com/google/refine/model/changes/RowFlagChange.java b/main/src/com/google/refine/model/changes/RowFlagChange.java index 73855a889..76de149e8 100644 --- a/main/src/com/google/refine/model/changes/RowFlagChange.java +++ b/main/src/com/google/refine/model/changes/RowFlagChange.java @@ -93,7 +93,7 @@ public class RowFlagChange implements Change { } else if ("oldFlagged".equals(field)) { oldFlagged = Boolean.parseBoolean(value); } else if ("newFlagged".equals(field)) { - oldFlagged = Boolean.parseBoolean(value); + newFlagged = Boolean.parseBoolean(value); } } @@ -102,4 +102,4 @@ public class RowFlagChange implements Change { return change; } -} \ No newline at end of file +} From 660df900d49f651f34e610a5edb7dcb91bce9532 Mon Sep 17 00:00:00 2001 From: wangwenxiang Date: Wed, 15 Mar 2017 12:54:01 +0800 Subject: [PATCH 2/2] Fix bug: load wrong new value for RowStarChange --- main/src/com/google/refine/model/changes/RowStarChange.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/com/google/refine/model/changes/RowStarChange.java b/main/src/com/google/refine/model/changes/RowStarChange.java index bde382243..563c02f42 100644 --- a/main/src/com/google/refine/model/changes/RowStarChange.java +++ b/main/src/com/google/refine/model/changes/RowStarChange.java @@ -93,7 +93,7 @@ public class RowStarChange implements Change { } else if ("oldStarred".equals(field)) { oldStarred = Boolean.parseBoolean(value); } else if ("newStarred".equals(field)) { - oldStarred = Boolean.parseBoolean(value); + newStarred = Boolean.parseBoolean(value); } } @@ -102,4 +102,4 @@ public class RowStarChange implements Change { return change; } -} \ No newline at end of file +}