This commit is contained in:
novice.li
2024-02-25 13:38:59 +08:00
parent 439a127799
commit 92b5ae69d1
6 changed files with 229 additions and 45 deletions

View File

@@ -2,6 +2,7 @@ package com.novitechie;
public class StackTraceRule {
public static boolean check() {
System.out.println("------------------StackTraceRule");
RuntimeException e = new RuntimeException();
for (StackTraceElement stackTraceElement : e.getStackTrace()) {
if (stackTraceElement.getFileName() == null) {