mirror of
https://gitea.998043.xyz/novice/plugin-privacy.git
synced 2026-05-07 08:42:52 +08:00
14 lines
358 B
Java
14 lines
358 B
Java
package com.novitechie;
|
|
|
|
public class StackTraceRule {
|
|
public static boolean check() {
|
|
RuntimeException e = new RuntimeException();
|
|
for (StackTraceElement stackTraceElement : e.getStackTrace()) {
|
|
if (stackTraceElement.getFileName() == null) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|