mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 923306 - Make annotationProcessors build with -Xlint:all. r=ckitching
This commit is contained in:
parent
7e9466764b
commit
c6b85c48fd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user