diff --git a/pom.xml b/pom.xml
index 967fc2a..9b1c8a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,27 @@
UTF-8
+
+
+
+ org.junit
+ junit-bom
+ 5.9.1
+ pom
+ import
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+
@@ -47,4 +67,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/java/org/lkop/minilib/ClassInsider.java b/src/main/java/org/lkop/minilib/ClassInsider.java
index 0084ddf..24a90e3 100644
--- a/src/main/java/org/lkop/minilib/ClassInsider.java
+++ b/src/main/java/org/lkop/minilib/ClassInsider.java
@@ -225,6 +225,9 @@ public void edit(Handler h) throws CannotCompileException {
@Override
public void edit(FieldAccess f) throws CannotCompileException {
System.out.println("FieldAccess of -> " + f.getClassName());
+ System.out.println("FieldAccess of -> " + f.getFieldName() + " " + f.getSignature() + " of class " + f.getClassName());
+ if(f.isStatic())
+ System.out.println("Static field at line : " + f.getLineNumber() + " Is reader : " + f.isReader() + " Is writer : " + f.isWriter());
String ss = f.getSignature();
String s2 = f.getFieldName();
int s3 = f.getLineNumber();
@@ -290,6 +293,7 @@ public void edit(ConstructorCall c) {
//Try searching method on upper level (anonymous classes only)
try {
one_time_methods.remove(one_time_methods.size() - 1);
+ if(class_pool.get(class_name).getSuperclass()!=null){
String superclass_name = class_pool.get(class_name).getSuperclass().getName();
new_node.resettingClassname(superclass_name);
@@ -300,7 +304,7 @@ public void edit(ConstructorCall c) {
}else{
List children = new_node.getFirstParent().getChildren();
children.remove(children.size() - 1);
- }
+ }}
} catch (NotFoundException ex) {
ex.printStackTrace();
}
diff --git a/src/main/java/org/lkop/minilib/utils/ImageUtils.java b/src/main/java/org/lkop/minilib/utils/ImageUtils.java
index cd26016..2bd4c47 100644
--- a/src/main/java/org/lkop/minilib/utils/ImageUtils.java
+++ b/src/main/java/org/lkop/minilib/utils/ImageUtils.java
@@ -11,11 +11,11 @@ private ImageUtils() {
}
public static void createGIF(String input_file_path) throws IOException, InterruptedException {
- File input_file = new File(input_file_path);
- ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/c", "start dot -Tjpg " + input_file_path + " -o " + input_file.getParent() + "/" + Constants.OUTPUT_FILENAME + ".jpg");
+ /* File input_file = new File(input_file_path);
+ ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/c", "start dot -Tjpg " + input_file_path + " -o " + input_file.getParent() + "/" + Constants.OUTPUT_FILENAME + ".jpg"); // Needs fixing for linux and mac
pb.redirectErrorStream(true);
Process process = pb.start();
- System.out.println("Exit Code: " + process.waitFor());
+ System.out.println("Exit Code: " + process.waitFor());*/
}
}