finish
This commit is contained in:
parent
92b5ae69d1
commit
340f0cef1b
|
@ -3,7 +3,6 @@ package com.novitechie;
|
||||||
public class LoadClassRule {
|
public class LoadClassRule {
|
||||||
public static void check(String name) throws Exception {
|
public static void check(String name) throws Exception {
|
||||||
if (name.startsWith("com.janetfilter")) {
|
if (name.startsWith("com.janetfilter")) {
|
||||||
System.out.println("----------------------"+name);
|
|
||||||
throw new ClassNotFoundException(name);
|
throw new ClassNotFoundException(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,10 +7,6 @@ import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class PrivacyPlugin implements PluginEntry {
|
public class PrivacyPlugin implements PluginEntry {
|
||||||
|
|
||||||
static {
|
|
||||||
System.out.println("-------------PrivacyPlugin------------------");
|
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "PRIVACY";
|
return "PRIVACY";
|
||||||
|
|
|
@ -2,7 +2,6 @@ package com.novitechie;
|
||||||
|
|
||||||
public class StackTraceRule {
|
public class StackTraceRule {
|
||||||
public static boolean check() {
|
public static boolean check() {
|
||||||
System.out.println("------------------StackTraceRule");
|
|
||||||
RuntimeException e = new RuntimeException();
|
RuntimeException e = new RuntimeException();
|
||||||
for (StackTraceElement stackTraceElement : e.getStackTrace()) {
|
for (StackTraceElement stackTraceElement : e.getStackTrace()) {
|
||||||
if (stackTraceElement.getFileName() == null) {
|
if (stackTraceElement.getFileName() == null) {
|
||||||
|
|
Loading…
Reference in New Issue