whoops
[mir.git] / source / mir / changetracker / ChangeTracker.java
index 41dca6f..3474b26 100644 (file)
@@ -96,7 +96,7 @@ public class ChangeTracker {
    * Returns a <code>Collection</code> of {@link Change}s within a base
    *     path, and removes them from the tracker.
    */
-  List flushChanges(String aBasePath) {
+  public List flushChanges(String aBasePath) {
     return flushChanges(aBasePath, new String[0]);
   }
 
@@ -105,7 +105,7 @@ public class ChangeTracker {
    *     path, exluding a list of excluded paths, and removes them from
    *     the tracker.
    */
-  List flushChanges(String aBasePath, String[] anExcludedPaths) {
+  public List flushChanges(String aBasePath, String[] anExcludedPaths) {
     synchronized (changes) {
       List result = getChanges(aBasePath, anExcludedPaths);
 
@@ -137,8 +137,9 @@ public class ChangeTracker {
       Iterator i = changes.iterator();
       while (i.hasNext()) {
         Change change = (Change) i.next();
-        if (change.getPath().startsWith(aBasePath))
+        if (change.getPath().startsWith(aBasePath)) {
           result.add(change);
+        }
       }
 
       return result;