From d48b888075402b536a2800a79c1669aaf8b267d1 Mon Sep 17 00:00:00 2001 From: luca9913 Date: Sat, 24 Jun 2023 18:54:31 +0200 Subject: [PATCH] Bug fixes, TestComplete in 'syntaxtreegenerator' runs without error --- .../parser/SyntaxTreeGenerator/StatementGenerator.java | 3 --- src/test/java/syntaxtreegenerator/TestComplete.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java b/src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java index 5517988d..b22ef7b2 100644 --- a/src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java +++ b/src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java @@ -284,9 +284,6 @@ public class StatementGenerator { genericArgs = null; if (createdname.typeArgumentsOrDiamond() != null) genericArgs = createdname.typeArgumentsOrDiamond().typeArguments(); - if (genericArgs != null) { - throw new NotImplementedException(); - } IdentifierContext identifier = createdname.identifier(); return (RefType) TypeGenerator.convertTypeName(identifier.getText(), genericArgs, identifier.getStart(), reg, generics); } diff --git a/src/test/java/syntaxtreegenerator/TestComplete.java b/src/test/java/syntaxtreegenerator/TestComplete.java index 8a23fbd1..5e6cf856 100644 --- a/src/test/java/syntaxtreegenerator/TestComplete.java +++ b/src/test/java/syntaxtreegenerator/TestComplete.java @@ -536,7 +536,7 @@ public class TestComplete { @Test public void subMatTest() { try { - FileInputStream fileIn = new FileInputStream(javFiles.get("SimpSubMatrixeCycle")[1]); + FileInputStream fileIn = new FileInputStream(javFiles.get("SubMatrix")[1]); String expectedAST = new String(fileIn.readAllBytes()); fileIn.close(); expectedAST = expectedAST.replaceAll("TPH [A-Z]+", "TPH");