From 700ea125fc0dd8c0350805c3a4e7cf9353dec235 Mon Sep 17 00:00:00 2001 From: Daniel Holle Date: Tue, 30 Jan 2024 15:46:02 +0100 Subject: [PATCH] Throw different exception --- .../java/de/dhbwstuttgart/parser/scope/JavaClassRegistry.java | 2 +- .../java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/parser/scope/JavaClassRegistry.java b/src/main/java/de/dhbwstuttgart/parser/scope/JavaClassRegistry.java index 670a21db..1ab04244 100644 --- a/src/main/java/de/dhbwstuttgart/parser/scope/JavaClassRegistry.java +++ b/src/main/java/de/dhbwstuttgart/parser/scope/JavaClassRegistry.java @@ -31,7 +31,7 @@ public class JavaClassRegistry { if (name.equals(new JavaClassName(className))) return name; } - throw new NotImplementedException(); + throw new RuntimeException("Class " + className + " not found!"); } @Override diff --git a/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java b/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java index 6920dab2..e1c82e94 100644 --- a/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java +++ b/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java @@ -546,9 +546,6 @@ public class TYPEStmt implements StatementVisitor { GenericsResolver resolver = getResolverInstance(); Set> oneMethodConstraints = generateConstraint(superCall, assumption, info, resolver); - System.out.println(">>>"); - System.out.println(oneMethodConstraints); - System.out.println("<<<"); methodConstraints.addAll(oneMethodConstraints); } break;