Skip to content

Commit d7a3ac2

Browse files
committed
fix: Warnings not filtering common interface glue
1 parent 919d8da commit d7a3ac2

File tree

1 file changed

+4
-1
lines changed
  • common/src/main/java/io/github/notenoughupdates/moulconfig/internal

1 file changed

+4
-1
lines changed

common/src/main/java/io/github/notenoughupdates/moulconfig/internal/Warnings.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ private static void warn0(String warningText, int depth) {
4949
int i = 0;
5050
StackTraceElement modCall = null;
5151
for (StackTraceElement stackTraceElement : stackTrace) {
52-
if (i++ < depth || (stackTraceElement.getClassName().startsWith(basePackage) &&
52+
if (i++ < depth
53+
|| stackTraceElement.getClassName().startsWith("java.")
54+
|| stackTraceElement.getClassName().startsWith("kotlin.")
55+
|| (stackTraceElement.getClassName().startsWith(basePackage) &&
5356
!stackTraceElement.getClassName().startsWith(testPackage)))
5457
continue;
5558
modCall = stackTraceElement;

0 commit comments

Comments
 (0)