Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/typesystem/TypeSystemParser.java @ 7854:8e56c6951c86
Minor refactoring.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 25 Feb 2013 13:05:23 +0100 |
parents | 5e3d1a68664e |
children | c4c3f50fa9c2 |
comparison
equal
deleted
inserted
replaced
7853:f4be7a2e783c | 7854:8e56c6951c86 |
---|---|
160 if (isPrimitiveWrapper(primitiveType)) { | 160 if (isPrimitiveWrapper(primitiveType)) { |
161 log.error(templateType, templateTypeAnnotation, annotationValue, "Types must not contain primitive wrapper types."); | 161 log.error(templateType, templateTypeAnnotation, annotationValue, "Types must not contain primitive wrapper types."); |
162 continue; | 162 continue; |
163 } | 163 } |
164 | 164 |
165 TypeMirror boxedType = primitiveType; | 165 TypeMirror boxedType = Utils.boxType(context, primitiveType); |
166 if (boxedType.getKind().isPrimitive()) { | |
167 boxedType = processingEnv.getTypeUtils().boxedClass((PrimitiveType) boxedType).asType(); | |
168 } | |
169 | 166 |
170 if (Utils.typeEquals(boxedType, objectType)) { | 167 if (Utils.typeEquals(boxedType, objectType)) { |
171 log.error(templateType, templateTypeAnnotation, annotationValue, "Types must not contain the generic type java.lang.Object."); | 168 log.error(templateType, templateTypeAnnotation, annotationValue, "Types must not contain the generic type java.lang.Object."); |
172 continue; | 169 continue; |
173 } | 170 } |