modified: src/main/java/de/dhbwstuttgart/typeinference/result/ResultSet.java

modified:   src/test/resources/bytecode/javFiles/Lambda.jav
	modified:   src/test/resources/bytecode/javFiles/MatrixOP.jav
	modified:   src/test/resources/bytecode/javFiles/OL.jav
This commit is contained in:
Martin Plümicke 2019-04-27 15:44:21 +02:00
parent 1e1eb2a2f2
commit 448c489a49
4 changed files with 6 additions and 6 deletions

View File

@ -22,9 +22,8 @@ public class ResultSet {
public ResultSet(Set<ResultPair> set){
this.results = set;
this.genIns = results.stream().filter(a -> a instanceof PairTPHsmallerTPH)
//.map(b -> new GenericInsertPair( (TypePlaceholder)(b.getLeft()), (TypePlaceholder)(b.getRight())))
.collect(Collectors.toCollection(HashSet::new));
this.genIns = new HashSet<>();
results.forEach(x -> { if (x instanceof PairTPHsmallerTPH) { this.genIns.add(x);}} );
}
public boolean contains(ResultPair toCheck) {

View File

@ -8,3 +8,4 @@ public class Lambda {
};
return lam1;
}
}

View File

@ -1,6 +1,6 @@
import java.util.Vector;
import java.lang.Integer;
//import java.lang.Byte;
import java.lang.Byte;
import java.lang.Boolean;
public class MatrixOP extends Vector<Vector<Integer>> {

View File

@ -6,13 +6,13 @@ import java.lang.Double;
public class OL {
java.lang.Integer m(java.lang.Integer x) { return x + x; }
m(x) { return x + x; }
}
public class OLMain {
java.lang.Integer main(java.lang.Integer x) {
main(x) {
var ol;
ol = new OL();
return ol.m(x);