1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

add type arguments to quiten java compiler

This commit is contained in:
Kevin Glynn 2010-07-14 15:14:57 -05:00
parent 1f2a9adba8
commit eea4e54a17
3 changed files with 5 additions and 6 deletions

View File

@ -24,11 +24,10 @@ import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.ArrayList;
import javax.swing.text.html.HTMLDocument.HTMLReader.IsindexAction;
public class FieldSupport {
public static Annotation[] getAnnotations(Field f, Class filterBy, boolean inherits)
public static Annotation[] getAnnotations(Field f, Class<?> filterBy, boolean inherits)
{
ArrayList<Annotation> filteredAnns = new ArrayList<Annotation>();

View File

@ -31,14 +31,14 @@ public class LocaleSupport {
// singleton
private LocaleSupport() {}
private static ThreadLocal threadLocal = new InheritableThreadLocal();
private static ThreadLocal<Locale> threadLocal = new InheritableThreadLocal<Locale>();
public static void setCurrentLocale(Locale locale) {
threadLocal.set(locale);
}
public static Locale getCurrentLocale() {
Locale locale = (Locale) threadLocal.get();
Locale locale = threadLocal.get();
if (locale == null) {
return Locale.getDefault();

View File

@ -23,12 +23,12 @@ package RusticiSoftware.System;
public class EnumSupport {
// returns true iff v is a valid ordinal position of a enum in e
public static boolean isDefined(Class e, int v)
public static boolean isDefined(Class<?> e, int v)
{
return (v >= 0 && v < e.getEnumConstants().length);
}
public static String toString(Enum e, String m)
public static String toString(Enum<?> e, String m)
{
if ("D".equals(m))
{