Skip to content

Commit 0135e76

Browse files
committed
Rework ClassMatcher-s (used for veto) to take on account indirect inheritance
1 parent 5e33b07 commit 0135e76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

net.tascalate.javaflow.spi/src/main/java/org/apache/commons/javaflow/spi/ClassMatchStrategyFileParser.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ static interface StrategyFactory {
7575
}
7676

7777
static enum VariantFactory {
78-
BY_NAME_FULL() {
78+
NAME_FULL() {
7979
ClassMatchStrategy create(String option) {
8080
return ClassMatchStrategies.byClassName(option, false);
8181
}
8282
},
83-
BY_NAME_PART() {
83+
NAME_PART() {
8484
ClassMatchStrategy create(String option) {
8585
return ClassMatchStrategies.byClassName(option, true);
8686
}
8787
},
88-
BY_NAME_PATTERN() {
88+
NAME_PATTERN() {
8989
ClassMatchStrategy create(String option) {
9090
return ClassMatchStrategies.byClassNamePattern(option);
9191
}
@@ -100,12 +100,12 @@ ClassMatchStrategy create(ClassMatchStrategy nested) {
100100
return nested;
101101
}
102102
},
103-
SUPERCLASS() {
103+
EXTENDS_CLASS() {
104104
ClassMatchStrategy create(ClassMatchStrategy nested) {
105105
return ClassMatchStrategies.bySuperClass(nested);
106106
}
107107
},
108-
INTERFACE() {
108+
IMPLEMENTS_INTERFACE() {
109109
ClassMatchStrategy create(ClassMatchStrategy nested) {
110110
return ClassMatchStrategies.byInterface(nested);
111111
}

0 commit comments

Comments
 (0)