We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe9d06 commit 88b49e1Copy full SHA for 88b49e1
1 file changed
Sources/SwiftJavaTool/ExcludedJDKTypes.swift
@@ -24,9 +24,9 @@ extension SwiftJava {
24
return false
25
}
26
27
- for include in commonOptions.filterInclude {
28
- guard javaCanonicalName.hasPrefix(include) else {
29
- // Skip classes which don't match our expected prefix
+ if !commonOptions.filterInclude.isEmpty {
+ let anyIncludeMatches = commonOptions.filterInclude.contains(where: { javaCanonicalName.hasPrefix($0) })
+ guard anyIncludeMatches else {
30
31
32
0 commit comments