Skip to content

Commit 9eccf25

Browse files
committed
fix(multirelease): Correct handling of exclusions when checking module exports
1 parent 0e281f9 commit 9eccf25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indra-common/src/main/java/net/kyori/indra/task/CheckModuleExports.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void validateModule() throws IOException {
130130
private Set<String> checkExports(final Set<String> exported, final Set<String> known, final Set<String> excludedPrefixes) {
131131
final Set<String> problems = new HashSet<>(known);
132132
problems.removeAll(exported);
133-
for (final Iterator<String> it = known.iterator(); it.hasNext();) {
133+
for (final Iterator<String> it = problems.iterator(); it.hasNext();) {
134134
final String check = it.next();
135135
for (final String prefix : excludedPrefixes) {
136136
if (check.startsWith(prefix)) {

0 commit comments

Comments
 (0)