Mercurial > hg > truffle
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeGenFactory.java @ 19299:8e4f683e16d9
Truffle-DSL: fixed warning
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 11 Feb 2015 18:10:02 +0100 |
parents | b31b2f289e7d |
children | 37bbcabf7744 |
comparison
equal
deleted
inserted
replaced
19298:244f1b50be4c | 19299:8e4f683e16d9 |
---|---|
2123 } | 2123 } |
2124 } | 2124 } |
2125 return new CodeTree[]{expressionBuilder.build(), assertionBuilder.build()}; | 2125 return new CodeTree[]{expressionBuilder.build(), assertionBuilder.build()}; |
2126 } | 2126 } |
2127 | 2127 |
2128 private Map<Variable, CodeTree> castBoundTypes(Map<Variable, LocalVariable> bindings) { | 2128 private static Map<Variable, CodeTree> castBoundTypes(Map<Variable, LocalVariable> bindings) { |
2129 | |
2130 Map<Variable, CodeTree> resolvedBindings = new HashMap<>(); | 2129 Map<Variable, CodeTree> resolvedBindings = new HashMap<>(); |
2131 for (Variable variable : bindings.keySet()) { | 2130 for (Variable variable : bindings.keySet()) { |
2132 LocalVariable localVariable = bindings.get(variable); | 2131 LocalVariable localVariable = bindings.get(variable); |
2133 CodeTree resolved = localVariable.createReference(); | 2132 CodeTree resolved = localVariable.createReference(); |
2134 TypeMirror sourceType = localVariable.getTypeMirror(); | 2133 TypeMirror sourceType = localVariable.getTypeMirror(); |