Merge branch 'bigRefactoring' into strucTypes_dev2

This commit is contained in:
JanUlrich 2017-04-07 00:36:35 +02:00
commit e285a5c556
4 changed files with 12 additions and 8 deletions

View File

@ -1,8 +1,6 @@
package de.dhbwstuttgart.syntaxtree.statement;
import com.sun.istack.internal.NotNull;
import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
import de.dhbwstuttgart.typeinference.assumptions.TypeInferenceBlockInformation;
@ -13,7 +11,7 @@ public abstract class Expression extends SyntaxTreeNode
{
private RefTypeOrTPHOrWildcardOrGeneric type;
public Expression(@NotNull RefTypeOrTPHOrWildcardOrGeneric type, Token offset){
public Expression(RefTypeOrTPHOrWildcardOrGeneric type, Token offset){
super(offset);
if(type == null)throw new NullPointerException();
this.type = type;

View File

@ -1,6 +1,5 @@
package de.dhbwstuttgart.typeinference.assumptions;
import com.sun.istack.internal.NotNull;
import de.dhbwstuttgart.syntaxtree.ClassOrInterface;
import de.dhbwstuttgart.syntaxtree.FormalParameter;
import de.dhbwstuttgart.syntaxtree.Method;
@ -11,7 +10,7 @@ public class TypeInferenceBlockInformation extends TypeInferenceInformation {
private Method methodContext;
private ClassOrInterface currentClass;
public TypeInferenceBlockInformation(Set<ClassOrInterface> availableClasses, @NotNull ClassOrInterface currentClass, Method methodContext) {
public TypeInferenceBlockInformation(Set<ClassOrInterface> availableClasses, ClassOrInterface currentClass, Method methodContext) {
super(availableClasses);
this.methodContext = methodContext;
this.currentClass = currentClass;

View File

@ -1,7 +1,6 @@
package de.dhbwstuttgart.typeinference.constraints;
import java.io.Serializable;
import com.sun.istack.internal.NotNull;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
import de.dhbwstuttgart.typeinference.unify.model.PairOperator;
import de.dhbwstuttgart.typeinference.unify.model.UnifyPair;
@ -14,7 +13,7 @@ public class Pair implements Serializable
private PairOperator eOperator = PairOperator.SMALLER;
Pair(@NotNull RefTypeOrTPHOrWildcardOrGeneric TA1, @NotNull RefTypeOrTPHOrWildcardOrGeneric TA2 )
Pair(RefTypeOrTPHOrWildcardOrGeneric TA1, RefTypeOrTPHOrWildcardOrGeneric TA2 )
{
this.TA1 = TA1;
this.TA2 = TA2;
@ -23,7 +22,7 @@ public class Pair implements Serializable
eOperator = PairOperator.SMALLER;
}
Pair(@NotNull RefTypeOrTPHOrWildcardOrGeneric TA1, @NotNull RefTypeOrTPHOrWildcardOrGeneric TA2, PairOperator eOp)
Pair(RefTypeOrTPHOrWildcardOrGeneric TA1, RefTypeOrTPHOrWildcardOrGeneric TA2, PairOperator eOp)
{
// Konstruktor
this(TA1,TA2);

8
test/parser/CastTest.jav Normal file
View File

@ -0,0 +1,8 @@
class CastTest{
void methode(){
Object a;
String b;
a = (Object) b;
}
}