mirror of
https://gitea.998043.xyz/novice/plugin-privacy.git
synced 2026-07-13 22:11:21 +08:00
init
This commit is contained in:
13
src/main/java/com/novitechie/StackTraceRule.java
Normal file
13
src/main/java/com/novitechie/StackTraceRule.java
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user