Bug 923306 - Make annotationProcessors build with -Xlint:all. r=ckitching

This commit is contained in:
Nick Alexander 2013-10-09 17:05:37 -07:00
parent 7e9466764b
commit c6b85c48fd

View File

@ -505,12 +505,12 @@ public class Utils {
* @param aClass Class to check for CharSequence-esqueness
* @return True if the given class implements CharSequence, false otherwise.
*/
public static boolean isCharSequence(Class aClass) {
public static boolean isCharSequence(Class<?> aClass) {
if (aClass.getCanonicalName().equals("java.lang.CharSequence")) {
return true;
}
Class[] interfaces = aClass.getInterfaces();
for (Class c : interfaces) {
Class<?>[] interfaces = aClass.getInterfaces();
for (Class<?> c : interfaces) {
if (c.getCanonicalName().equals("java.lang.CharSequence")) {
return true;
}