Diff of /jakarta/commons/proper/digester/trunk/src/java/org/apache/commons/digester/WithDefaultsRulesWrapper.java
Parent Directory
| Revision Log
| Patch
--- jakarta/commons/proper/digester/trunk/src/java/org/apache/commons/digester/WithDefaultsRulesWrapper.java 2005/06/03 03:56:41 179715
+++ jakarta/commons/proper/digester/trunk/src/java/org/apache/commons/digester/WithDefaultsRulesWrapper.java 2005/06/03 04:06:00 179716
@@ -102,13 +102,13 @@ public class WithDefaultsRulesWrapper im
/** Gets Rule's which will be fired when the wrapped implementation returns no matches */
public List getDefaults() {
return defaultRules;
- }
+ }
// --------------------------------------------------------- Public Methods
public List match(String pattern) {
return match("", pattern);
- }
+ }
/**
* Return list of rules matching given pattern.
@@ -117,7 +117,7 @@ public class WithDefaultsRulesWrapper im
*/
public List match(String namespaceURI, String pattern) {
List matches = wrappedRules.match(namespaceURI, pattern);
- if (matches == null || matches.isEmpty()) {
+ if (matches == null || matches.isEmpty()) {
// a little bit of defensive programming
return new ArrayList(defaultRules);
}
@@ -159,5 +159,5 @@ public class WithDefaultsRulesWrapper im
public void add(String pattern, Rule rule) {
wrappedRules.add(pattern, rule);
allRules.add(rule);
- }
+ }
}