View | Details | Raw Unified | Return to bug 49758
Collapse All | Expand All

(-)java/javax/annotation/Resource.java (-1 / +1 lines)
Lines 32-38 Link Here
32
        APPLICATION
32
        APPLICATION
33
    }
33
    }
34
    public String name() default "";
34
    public String name() default "";
35
    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification
35
    @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match specification
36
    public Class type() default Object.class;
36
    public Class type() default Object.class;
37
    public AuthenticationType authenticationType() default AuthenticationType.CONTAINER;
37
    public AuthenticationType authenticationType() default AuthenticationType.CONTAINER;
38
    public boolean shareable() default true;
38
    public boolean shareable() default true;
(-)java/javax/ejb/EJB.java (-1 / +1 lines)
Lines 29-35 Link Here
29
public @interface EJB {
29
public @interface EJB {
30
   String name() default "";
30
   String name() default "";
31
   String description() default "";
31
   String description() default "";
32
   @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification
32
   @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match specification
33
   Class beanInterface() default java.lang.Object.class;
33
   Class beanInterface() default java.lang.Object.class;
34
   String beanName() default "";
34
   String beanName() default "";
35
   String mappedName() default "";
35
   String mappedName() default "";
(-)java/javax/el/BeanELResolver.java (-1 / +1 lines)
Lines 231-237 Link Here
231
        }
231
        }
232
232
233
        // Can't use Class<?> because API needs to match specification
233
        // Can't use Class<?> because API needs to match specification
234
        public @SuppressWarnings("unchecked") Class getPropertyType() {
234
        public @SuppressWarnings("rawtypes") Class getPropertyType() {
235
            return this.type;
235
            return this.type;
236
        }
236
        }
237
237
(-)java/javax/el/ELContext.java (-2 / +2 lines)
Lines 40-46 Link Here
40
    }
40
    }
41
    
41
    
42
    // Can't use Class<?> because API needs to match specification
42
    // Can't use Class<?> because API needs to match specification
43
    public Object getContext(@SuppressWarnings("unchecked") Class key) {
43
    public Object getContext(@SuppressWarnings("rawtypes") Class key) {
44
        if (this.map == null) {
44
        if (this.map == null) {
45
            return null;
45
            return null;
46
        }
46
        }
Lines 48-54 Link Here
48
    }
48
    }
49
    
49
    
50
    // Can't use Class<?> because API needs to match specification
50
    // Can't use Class<?> because API needs to match specification
51
    public void putContext(@SuppressWarnings("unchecked") Class key,
51
    public void putContext(@SuppressWarnings("rawtypes") Class key,
52
            Object contextObject) throws NullPointerException {
52
            Object contextObject) throws NullPointerException {
53
        if (key == null || contextObject == null) {
53
        if (key == null || contextObject == null) {
54
            throw new NullPointerException();
54
            throw new NullPointerException();
(-)java/javax/el/ResourceBundleELResolver.java (-1 / +1 lines)
Lines 101-107 Link Here
101
101
102
    @Override
102
    @Override
103
    // Can't use Iterator<FeatureDescriptor> because API needs to match specification
103
    // Can't use Iterator<FeatureDescriptor> because API needs to match specification
104
    public @SuppressWarnings("unchecked") Iterator getFeatureDescriptors(
104
    public @SuppressWarnings({ "unchecked", "rawtypes" }) Iterator getFeatureDescriptors(
105
            ELContext context, Object base) {
105
            ELContext context, Object base) {
106
        if (base instanceof ResourceBundle) {
106
        if (base instanceof ResourceBundle) {
107
            List<FeatureDescriptor> feats = new ArrayList<FeatureDescriptor>();
107
            List<FeatureDescriptor> feats = new ArrayList<FeatureDescriptor>();
(-)java/javax/servlet/ServletRequestWrapper.java (-1 / +1 lines)
Lines 432-438 Link Here
432
     */
432
     */
433
    @SuppressWarnings("unchecked")
433
    @SuppressWarnings("unchecked")
434
    // Spec API does not use generics
434
    // Spec API does not use generics
435
    public boolean isWrapperFor(Class wrappedType) {
435
    public boolean isWrapperFor(@SuppressWarnings("rawtypes") Class wrappedType) {
436
        if (wrappedType.isAssignableFrom(request.getClass())) {
436
        if (wrappedType.isAssignableFrom(request.getClass())) {
437
            return true;
437
            return true;
438
        }
438
        }
(-)java/javax/servlet/ServletResponseWrapper.java (-1 / +1 lines)
Lines 226-232 Link Here
226
     */
226
     */
227
    @SuppressWarnings("unchecked")
227
    @SuppressWarnings("unchecked")
228
    // Spec API does not use generics
228
    // Spec API does not use generics
229
    public boolean isWrapperFor(Class wrappedType) {
229
    public boolean isWrapperFor(@SuppressWarnings("rawtypes") Class wrappedType) {
230
        if (wrappedType.isAssignableFrom(response.getClass())) {
230
        if (wrappedType.isAssignableFrom(response.getClass())) {
231
            return true;
231
            return true;
232
        }
232
        }
(-)java/javax/servlet/annotation/HandlesTypes.java (-1 / +1 lines)
Lines 29-35 Link Here
29
 */
29
 */
30
@Target({ElementType.TYPE})
30
@Target({ElementType.TYPE})
31
@Retention(RetentionPolicy.RUNTIME)
31
@Retention(RetentionPolicy.RUNTIME)
32
@SuppressWarnings("unchecked") // Spec API does not use generics
32
@SuppressWarnings("rawtypes") // Spec API does not use generics
33
public @interface HandlesTypes {
33
public @interface HandlesTypes {
34
34
35
    /**
35
    /**
(-)java/javax/servlet/jsp/el/ExpressionEvaluator.java (-2 / +2 lines)
Lines 83-89 Link Here
83
     *                Thrown if parsing errors were found.
83
     *                Thrown if parsing errors were found.
84
     */
84
     */
85
    public abstract Expression parseExpression(String expression,
85
    public abstract Expression parseExpression(String expression,
86
            @SuppressWarnings("unchecked")// TCK signature fails with generics
86
            @SuppressWarnings("rawtypes")// TCK signature fails with generics
87
            Class expectedType, FunctionMapper fMapper) throws ELException;
87
            Class expectedType, FunctionMapper fMapper) throws ELException;
88
88
89
    /**
89
    /**
Lines 109-115 Link Here
109
     */
109
     */
110
    public abstract Object evaluate(
110
    public abstract Object evaluate(
111
            String expression,
111
            String expression,
112
            @SuppressWarnings("unchecked")// TCK signature fails with generics
112
            @SuppressWarnings("rawtypes")// TCK signature fails with generics
113
            Class expectedType, VariableResolver vResolver,
113
            Class expectedType, VariableResolver vResolver,
114
            FunctionMapper fMapper) throws ELException;
114
            FunctionMapper fMapper) throws ELException;
115
}
115
}
(-)java/javax/servlet/jsp/el/ImplicitObjectELResolver.java (-1 / +1 lines)
Lines 121-127 Link Here
121
    }
121
    }
122
122
123
    @Override
123
    @Override
124
    @SuppressWarnings("unchecked") // TCK signature test fails with generics
124
    @SuppressWarnings({ "unchecked", "rawtypes" }) // TCK signature test fails with generics
125
    public Class getType(ELContext context, Object base, Object property)
125
    public Class getType(ELContext context, Object base, Object property)
126
            throws NullPointerException, PropertyNotFoundException, ELException {
126
            throws NullPointerException, PropertyNotFoundException, ELException {
127
        if (context == null) {
127
        if (context == null) {
(-)java/javax/servlet/jsp/tagext/TagSupport.java (-1 / +1 lines)
Lines 73-79 Link Here
73
     */
73
     */
74
    public static final Tag findAncestorWithClass(Tag from,
74
    public static final Tag findAncestorWithClass(Tag from,
75
            // TCK signature test fails with generics
75
            // TCK signature test fails with generics
76
            @SuppressWarnings("unchecked")
76
            @SuppressWarnings("rawtypes")
77
            Class klass) {
77
            Class klass) {
78
        boolean isInterface = false;
78
        boolean isInterface = false;
79
79
(-)java/javax/xml/ws/WebServiceRef.java (-2 / +2 lines)
Lines 28-36 Link Here
28
28
29
public @interface WebServiceRef {
29
public @interface WebServiceRef {
30
    public String name() default "";
30
    public String name() default "";
31
    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification
31
    @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match specification
32
    public Class type() default java.lang.Object.class;
32
    public Class type() default java.lang.Object.class;
33
    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification
33
    @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match specification
34
    public Class value() default java.lang.Object.class;
34
    public Class value() default java.lang.Object.class;
35
    public String wsdlLocation() default "";
35
    public String wsdlLocation() default "";
36
    public String mappedName() default "";
36
    public String mappedName() default "";
(-)java/org/apache/el/lang/EvaluationContext.java (-2 / +2 lines)
Lines 55-61 Link Here
55
55
56
    @Override
56
    @Override
57
    // Can't use Class<?> because API needs to match specification in superclass
57
    // Can't use Class<?> because API needs to match specification in superclass
58
    public Object getContext(@SuppressWarnings("unchecked") Class key) {
58
    public Object getContext(@SuppressWarnings("rawtypes") Class key) {
59
        return this.elContext.getContext(key);
59
        return this.elContext.getContext(key);
60
    }
60
    }
61
61
Lines 71-77 Link Here
71
71
72
    @Override
72
    @Override
73
    // Can't use Class<?> because API needs to match specification in superclass
73
    // Can't use Class<?> because API needs to match specification in superclass
74
    public void putContext(@SuppressWarnings("unchecked") Class key,
74
    public void putContext(@SuppressWarnings("rawtypes") Class key,
75
            Object contextObject) {
75
            Object contextObject) {
76
        this.elContext.putContext(key, contextObject);
76
        this.elContext.putContext(key, contextObject);
77
    }
77
    }
(-)java/org/apache/el/parser/AstValue.java (-2 / +2 lines)
Lines 227-233 Link Here
227
    @Override
227
    @Override
228
    // Interface el.parser.Node uses raw types (and is auto-generated)
228
    // Interface el.parser.Node uses raw types (and is auto-generated)
229
    public MethodInfo getMethodInfo(EvaluationContext ctx, 
229
    public MethodInfo getMethodInfo(EvaluationContext ctx, 
230
            @SuppressWarnings("unchecked") Class[] paramTypes)
230
            @SuppressWarnings("rawtypes") Class[] paramTypes)
231
            throws ELException {
231
            throws ELException {
232
        Target t = getTarget(ctx);
232
        Target t = getTarget(ctx);
233
        Method m = ReflectionUtil.getMethod(t.base, t.property, paramTypes);
233
        Method m = ReflectionUtil.getMethod(t.base, t.property, paramTypes);
Lines 238-244 Link Here
238
    @Override
238
    @Override
239
    // Interface el.parser.Node uses a raw type (and is auto-generated)
239
    // Interface el.parser.Node uses a raw type (and is auto-generated)
240
    public Object invoke(EvaluationContext ctx, 
240
    public Object invoke(EvaluationContext ctx, 
241
            @SuppressWarnings("unchecked") Class[] paramTypes,
241
            @SuppressWarnings("rawtypes") Class[] paramTypes,
242
            Object[] paramValues) throws ELException {
242
            Object[] paramValues) throws ELException {
243
        
243
        
244
        Target t = getTarget(ctx);
244
        Target t = getTarget(ctx);
(-)java/org/apache/jasper/el/ELContextWrapper.java (-2 / +2 lines)
Lines 55-61 Link Here
55
    }
55
    }
56
56
57
    @Override
57
    @Override
58
    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match super-class specification
58
    @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match super-class specification
59
    public Object getContext(Class key) {
59
    public Object getContext(Class key) {
60
        return this.target.getContext(key);
60
        return this.target.getContext(key);
61
    }
61
    }
Lines 71-77 Link Here
71
    }
71
    }
72
72
73
    @Override
73
    @Override
74
    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match super-class specification
74
    @SuppressWarnings("rawtypes") // Can't use Class<?> because API needs to match super-class specification
75
    public void putContext(Class key, Object contextObject) throws NullPointerException {
75
    public void putContext(Class key, Object contextObject) throws NullPointerException {
76
        this.target.putContext(key, contextObject);
76
        this.target.putContext(key, contextObject);
77
    }
77
    }
(-)java/org/apache/jasper/el/ExpressionEvaluatorImpl.java (-2 / +2 lines)
Lines 36-42 Link Here
36
36
37
    @Override
37
    @Override
38
    public Expression parseExpression(String expression,
38
    public Expression parseExpression(String expression,
39
            @SuppressWarnings("unchecked") // API does not use generics
39
            @SuppressWarnings("rawtypes") // API does not use generics
40
            Class expectedType,
40
            Class expectedType,
41
            FunctionMapper fMapper) throws ELException {
41
            FunctionMapper fMapper) throws ELException {
42
        try {
42
        try {
Lines 54-60 Link Here
54
54
55
    @Override
55
    @Override
56
    public Object evaluate(String expression,
56
    public Object evaluate(String expression,
57
            @SuppressWarnings("unchecked") // API does not use generics
57
            @SuppressWarnings("rawtypes") // API does not use generics
58
            Class expectedType,
58
            Class expectedType,
59
            VariableResolver vResolver, FunctionMapper fMapper)
59
            VariableResolver vResolver, FunctionMapper fMapper)
60
            throws ELException {
60
            throws ELException {
(-)java/org/apache/naming/resources/DirContextURLConnection.java (-1 / +1 lines)
Lines 350-356 Link Here
350
    /**
350
    /**
351
     * Get object content.
351
     * Get object content.
352
     */
352
     */
353
    @SuppressWarnings("unchecked") // overridden method uses raw type Class[]
353
    @SuppressWarnings("rawtypes") // overridden method uses raw type Class[]
354
    @Override
354
    @Override
355
    public Object getContent(Class[] classes)
355
    public Object getContent(Class[] classes)
356
        throws IOException {
356
        throws IOException {

Return to bug 49758