We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdee4d6 commit 8eec4a2Copy full SHA for 8eec4a2
test/architecture-tests/src/test/java/software/amazon/awssdk/archtests/ArchUtils.java
@@ -27,7 +27,8 @@ public static Pattern classNameToPattern(Class<?> clazz) {
27
}
28
29
public static Pattern classWithInnerClassesToPattern(Class<?> clazz) {
30
- return Pattern.compile(".*/" + clazz.getCanonicalName().replace('.', '/') + ".*");
+ // inner or inline/anonymous classes have $ followed by a name or number eg "$Inner" or "$1"
31
+ return Pattern.compile(".*/" + clazz.getCanonicalName().replace('.', '/') + "(\\$.*)?.class");
32
33
34
public static Pattern classNameToPattern(String className) {
0 commit comments