ChangeSequence did not revert properly at all.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2426 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2012-01-25 00:46:52 +00:00
parent ae4186bde8
commit 893b767c01

View File

@ -51,8 +51,8 @@ public class ChangeSequence implements Change {
@Override
public void apply(Project project) {
synchronized (project) {
for (Change _change : _changes) {
_change.apply(project);
for (Change change : _changes) {
change.apply(project);
}
}
}
@ -61,7 +61,7 @@ public class ChangeSequence implements Change {
public void revert(Project project) {
synchronized (project) {
for (int i = _changes.length - 1; i >= 0 ; i--) {
_changes[i].apply(project);
_changes[i].revert(project);
}
}
}