APPLICATION
}
public String name() default "";
- @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification
+ @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match specification
public Class type() default Object.class;
public AuthenticationType authenticationType() default AuthenticationType.CONTAINER;
public boolean shareable() default true;
public @interface EJB {
String name() default "";
String description() default "";
- @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification
+ @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match specification
Class beanInterface() default java.lang.Object.class;
String beanName() default "";
String mappedName() default "";
}
// Can't use Class<?> because API needs to match specification
- public @SuppressWarnings("unchecked") Class getPropertyType() {
+ public @SuppressWarnings("rawtypes") Class getPropertyType() {
return this.type;
}
}
// Can't use Class<?> because API needs to match specification
- public Object getContext(@SuppressWarnings("unchecked") Class key) {
+ public Object getContext(@SuppressWarnings("rawtypes") Class key) {
if (this.map == null) {
return null;
}
}
// Can't use Class<?> because API needs to match specification
- public void putContext(@SuppressWarnings("unchecked") Class key,
+ public void putContext(@SuppressWarnings("rawtypes") Class key,
Object contextObject) throws NullPointerException {
if (key == null || contextObject == null) {
throw new NullPointerException();
@Override
// Can't use Iterator<FeatureDescriptor> because API needs to match specification
- public @SuppressWarnings("unchecked") Iterator getFeatureDescriptors(
+ public @SuppressWarnings({ "unchecked", "rawtypes" }) Iterator getFeatureDescriptors(
ELContext context, Object base) {
if (base instanceof ResourceBundle) {
List<FeatureDescriptor> feats = new ArrayList<FeatureDescriptor>();
*/
@SuppressWarnings("unchecked")
// Spec API does not use generics
- public boolean isWrapperFor(Class wrappedType) {
+ public boolean isWrapperFor(@SuppressWarnings("rawtypes") Class wrappedType) {
if (wrappedType.isAssignableFrom(request.getClass())) {
return true;
}
*/
@SuppressWarnings("unchecked")
// Spec API does not use generics
- public boolean isWrapperFor(Class wrappedType) {
+ public boolean isWrapperFor(@SuppressWarnings("rawtypes") Class wrappedType) {
if (wrappedType.isAssignableFrom(response.getClass())) {
return true;
}
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
-@SuppressWarnings("unchecked") // Spec API does not use generics
+@SuppressWarnings("rawtypes") // Spec API does not use generics
public @interface HandlesTypes {
/**
* Thrown if parsing errors were found.
*/
public abstract Expression parseExpression(String expression,
- @SuppressWarnings("unchecked")// TCK signature fails with generics
+ @SuppressWarnings("rawtypes")// TCK signature fails with generics
Class expectedType, FunctionMapper fMapper) throws ELException;
/**
*/
public abstract Object evaluate(
String expression,
- @SuppressWarnings("unchecked")// TCK signature fails with generics
+ @SuppressWarnings("rawtypes")// TCK signature fails with generics
Class expectedType, VariableResolver vResolver,
FunctionMapper fMapper) throws ELException;
}
}
@Override
- @SuppressWarnings("unchecked") // TCK signature test fails with generics
+ @SuppressWarnings({ "unchecked", "rawtypes" }) // TCK signature test fails with generics
public Class getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
*/
public static final Tag findAncestorWithClass(Tag from,
// TCK signature test fails with generics
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
Class klass) {
boolean isInterface = false;
public @interface WebServiceRef {
public String name() default "";
- @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification
+ @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match specification
public Class type() default java.lang.Object.class;
- @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification
+ @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match specification
public Class value() default java.lang.Object.class;
public String wsdlLocation() default "";
public String mappedName() default "";
@Override
// Can't use Class<?> because API needs to match specification in superclass
- public Object getContext(@SuppressWarnings("unchecked") Class key) {
+ public Object getContext(@SuppressWarnings("rawtypes") Class key) {
return this.elContext.getContext(key);
}
@Override
// Can't use Class<?> because API needs to match specification in superclass
- public void putContext(@SuppressWarnings("unchecked") Class key,
+ public void putContext(@SuppressWarnings("rawtypes") Class key,
Object contextObject) {
this.elContext.putContext(key, contextObject);
}
@Override
// Interface el.parser.Node uses raw types (and is auto-generated)
public MethodInfo getMethodInfo(EvaluationContext ctx,
- @SuppressWarnings("unchecked") Class[] paramTypes)
+ @SuppressWarnings("rawtypes") Class[] paramTypes)
throws ELException {
Target t = getTarget(ctx);
Method m = ReflectionUtil.getMethod(t.base, t.property, paramTypes);
@Override
// Interface el.parser.Node uses a raw type (and is auto-generated)
public Object invoke(EvaluationContext ctx,
- @SuppressWarnings("unchecked") Class[] paramTypes,
+ @SuppressWarnings("rawtypes") Class[] paramTypes,
Object[] paramValues) throws ELException {
Target t = getTarget(ctx);
}
@Override
- @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match super-class specification
+ @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match super-class specification
public Object getContext(Class key) {
return this.target.getContext(key);
}
}
@Override
- @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match super-class specification
+ @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match super-class specification
public void putContext(Class key, Object contextObject) throws NullPointerException {
this.target.putContext(key, contextObject);
}
@Override
public Expression parseExpression(String expression,
- @SuppressWarnings("unchecked") // API does not use generics
+ @SuppressWarnings("rawtypes") // API does not use generics
Class expectedType,
FunctionMapper fMapper) throws ELException {
try {
@Override
public Object evaluate(String expression,
- @SuppressWarnings("unchecked") // API does not use generics
+ @SuppressWarnings("rawtypes") // API does not use generics
Class expectedType,
VariableResolver vResolver, FunctionMapper fMapper)
throws ELException {
/**
* Get object content.
*/
- @SuppressWarnings("unchecked") // overridden method uses raw type Class[]
+ @SuppressWarnings("rawtypes") // overridden method uses raw type Class[]
@Override
public Object getContent(Class[] classes)
throws IOException {
<add>
Extend Checkstyle validation checks to check import order. (markt)
</add>
+ <fix>
+ <bug>49758</bug>: Fix generics warnings exposed by a fix in Eclipse 3.6.
+ Patch provided by sebb. (markt)
+ </fix>
</changelog>
</subsection>
</section>