Skip to content

Commit 1e00501

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of indra, licensed under the MIT License.
33
*
4-
* Copyright (c) 2020-2022 KyoriPowered
4+
* Copyright (c) 2020-2025 KyoriPowered
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -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)