explicit types to diamonds

This commit is contained in:
Anna.Kozlova
2016-08-08 16:41:19 +02:00
parent 21668f8479
commit 947fae191f
116 changed files with 634 additions and 634 deletions

View File

@@ -36,16 +36,16 @@ public class MatchEngine {
private MatchNode rootNode = null;
private final Map<String, Object> variables = new HashMap<String, Object>();
private final Map<String, Object> variables = new HashMap<>();
private static final Map<String, MatchProperties> stat_properties = new HashMap<String, MatchProperties>();
private static final Map<String, MatchProperties> expr_properties = new HashMap<String, MatchProperties>();
private static final Map<String, Integer> stat_type = new HashMap<String, Integer>();
private static final Map<String, Integer> expr_type = new HashMap<String, Integer>();
private static final Map<String, Integer> expr_func_type = new HashMap<String, Integer>();
private static final Map<String, Integer> expr_exit_type = new HashMap<String, Integer>();
private static final Map<String, Integer> stat_if_type = new HashMap<String, Integer>();
private static final Map<String, VarType> expr_const_type = new HashMap<String, VarType>();
private static final Map<String, MatchProperties> stat_properties = new HashMap<>();
private static final Map<String, MatchProperties> expr_properties = new HashMap<>();
private static final Map<String, Integer> stat_type = new HashMap<>();
private static final Map<String, Integer> expr_type = new HashMap<>();
private static final Map<String, Integer> expr_func_type = new HashMap<>();
private static final Map<String, Integer> expr_exit_type = new HashMap<>();
private static final Map<String, Integer> stat_if_type = new HashMap<>();
private static final Map<String, VarType> expr_const_type = new HashMap<>();
static {
stat_properties.put("type", MatchProperties.STATEMENT_TYPE);
@@ -109,11 +109,11 @@ public class MatchEngine {
String[] lines = description.split("\n");
int depth = 0;
LinkedList<MatchNode> stack = new LinkedList<MatchNode>();
LinkedList<MatchNode> stack = new LinkedList<>();
for(String line : lines) {
List<String> properties = new ArrayList<String>(Arrays.asList(line.split("\\s+"))); // split on any number of whitespaces
List<String> properties = new ArrayList<>(Arrays.asList(line.split("\\s+"))); // split on any number of whitespaces
if(properties.get(0).isEmpty()) {
properties.remove(0);
}