From 61653c5d88e3ef4e5cd4d9db678a67b52c3413c9 Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Thu, 25 May 2023 10:05:10 +0200 Subject: [PATCH] modified: src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java --- .../typeinference/unify/TypeUnifyTask.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java b/src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java index 6703dfa5..2778fd19 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(); }