diff --git a/src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java b/src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java index 6703dfa51..2778fd191 100644 --- a/src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java +++ b/src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java @@ -947,9 +947,9 @@ public class TypeUnifyTask extends RecursiveTask>> { writeLog("a in " + variance + " "+ a); writeLog("nextSetasListRest: " + nextSetasListRest.toString()); } - while (!nextSetasListRest.isEmpty()) { - Set nSaL = nextSetasListRest.remove(0); - synchronized (this) { nextSetasList.remove(nSaL); + while (!nextSetasList.isEmpty()) { + Set nSaL = nextSetasList.remove(0); + synchronized (this) { //nextSetasList.remove(nSaL); writeLog("1 RM" + nSaL.toString()); } @@ -1049,9 +1049,9 @@ public class TypeUnifyTask extends RecursiveTask>> { writeLog("a in " + variance + " "+ a); writeLog("nextSetasListRest: " + nextSetasListRest.toString()); } - while (!nextSetasListRest.isEmpty()) { - Set nSaL = nextSetasListRest.remove(0); - synchronized (this) { nextSetasList.remove(nSaL); + while (!nextSetasList.isEmpty()) { + Set nSaL = nextSetasList.remove(0); + synchronized (this) { //nextSetasList.remove(nSaL); writeLog("-1 RM" + nSaL.toString()); } @@ -1151,9 +1151,9 @@ public class TypeUnifyTask extends RecursiveTask>> { writeLog("a in " + variance + " "+ a); writeLog("nextSetasListRest: " + nextSetasListRest.toString()); } - while (!nextSetasListRest.isEmpty()) { - Set nSaL = nextSetasListRest.remove(0); - nextSetasList.remove(nSaL); //PL einkommentiert 20-02-03 + while (!nextSetasList.isEmpty()) { + Set nSaL = nextSetasList.remove(0); + //nextSetasList.remove(nSaL); //PL einkommentiert 20-02-03 Set newEq = new HashSet<>(eq); Set> newElems = new HashSet<>(elems); List>> newOderConstraints = new ArrayList<>(oderConstraints); @@ -2630,7 +2630,7 @@ public class TypeUnifyTask extends RecursiveTask>> { if (finalresult) { synchronized ( this ) { try { - statistics.write(str + "\n"); + statistics.write("Thread No. " + thNo + ": " + str + "\n"); statistics.flush(); }