Mercurial > hg > truffle
diff truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/compiler/JDTCompiler.java @ 22123:329fe954f6f2
Can compile Truffle API with following javac lints: -Xlint:all,-auxiliaryclass,-try,-processing
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 02 Sep 2015 13:15:51 +0200 |
parents | 9c8c0937da41 |
children | dc83cc1f94f2 |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/compiler/JDTCompiler.java Wed Sep 02 10:54:29 2015 +0200 +++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/compiler/JDTCompiler.java Wed Sep 02 13:15:51 2015 +0200 @@ -156,7 +156,7 @@ if (sortedFields != null) { sortedElements.addAll(Arrays.asList(sortedFields)); } - final Object[] sortedTypes = (Object[]) method(binaryType, "getMemberTypes", new Class[0]); + final Object[] sortedTypes = (Object[]) method(binaryType, "getMemberTypes", new Class<?>[0]); if (sortedTypes != null) { sortedElements.addAll(Arrays.asList(sortedTypes)); } @@ -182,7 +182,7 @@ Class<?> elementClass = sortedElement.getClass(); if (binaryMethod.isAssignableFrom(elementClass)) { char[] selector = (char[]) method(sortedElement, "getSelector"); - Object[] foundBindings = (Object[]) method(binding, "getMethods", new Class[]{char[].class}, selector); + Object[] foundBindings = (Object[]) method(binding, "getMethods", new Class<?>[]{char[].class}, selector); if (foundBindings == null || foundBindings.length == 0) { continue; } else if (foundBindings.length == 1) { @@ -199,13 +199,13 @@ } } else if (binaryField.isAssignableFrom(elementClass)) { char[] selector = (char[]) method(sortedElement, "getName"); - Object foundField = method(binding, "getField", new Class[]{char[].class, boolean.class}, selector, true); + Object foundField = method(binding, "getField", new Class<?>[]{char[].class, boolean.class}, selector, true); if (foundField != null) { bindings.add(foundField); } } else if (nestedType.isAssignableFrom(elementClass)) { char[] selector = (char[]) method(sortedElement, "getSourceName"); - Object foundType = method(binding, "getMemberType", new Class[]{char[].class}, selector); + Object foundType = method(binding, "getMemberType", new Class<?>[]{char[].class}, selector); if (foundType != null) { bindings.add(foundType); } @@ -221,8 +221,8 @@ Object lookupEnvironment = field(binding, "environment"); Object compoundClassName = field(binding, "compoundName"); Object nameEnvironment = field(lookupEnvironment, "nameEnvironment"); - Object nameEnvironmentAnswer = method(nameEnvironment, "findType", new Class[]{char[][].class}, compoundClassName); - Object binaryType = method(nameEnvironmentAnswer, "getBinaryType", new Class[0]); + Object nameEnvironmentAnswer = method(nameEnvironment, "findType", new Class<?>[]{char[][].class}, compoundClassName); + Object binaryType = method(nameEnvironmentAnswer, "getBinaryType", new Class<?>[0]); return binaryType; }