Skip to content

Commit

Permalink
cleanup godMode
Browse files Browse the repository at this point in the history
  • Loading branch information
lytles@takashi committed Sep 26, 2018
1 parent c7e1252 commit d471658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/com/nqzero/unflect/Support9.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.nqzero.unflect;

import static com.nqzero.unflect.Unflect.dbg;
import java.lang.reflect.Method;
import java.util.HashSet;
import static com.nqzero.unflect.Unflect.setAccessible;

public class Support9 {
static boolean dbg = false;

public static void godMode() {
try {
Method export = Module.class.getDeclaredMethod("implAddOpens",String.class);
setAccessible(export);
Unflect.setAccessible(export);
HashSet<Module> modules = new HashSet();
Module base = Safer.class.getModule();
if (base.getLayer() != null)
Expand Down
2 changes: 0 additions & 2 deletions src/com/nqzero/unflect/Unflect.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public static void unLog() {
}


static boolean dbg = false;

public static void godMode() {
try {
// this will fail on java 8 and lower
Expand Down

0 comments on commit d471658

Please sign in to comment.