* 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]);
}
* 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);
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;