From bb5a4e85801ea804e98a496363c514cfe5207e1c Mon Sep 17 00:00:00 2001 From: Fayez Abu Alia Date: Wed, 28 Mar 2018 11:31:32 +0200 Subject: [PATCH] Bug 72 gefixt --- .../parser/SyntaxTreeGenerator/StatementGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java index 5310d13b..aaa31f74 100644 --- a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java +++ b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java @@ -832,7 +832,7 @@ public class StatementGenerator { }else if(literal.StringLiteral()!=null){ RefType type = new RefType(reg.getName("java.lang.String"),literal.getStart()); return new Literal(type, - literal.StringLiteral().getText(), + literal.StringLiteral().getText().substring(1, literal.StringLiteral().getText().length()-1), literal.getStart()); }else if(literal.NullLiteral() != null){ return new Literal(TypePlaceholder.fresh(literal.getStart()), null,