Add additional suppression for unchecked operation. #1555

Fixes `UNCHECKED_WARNING` inspection violations.

Description:
>Unchecked overriding: return type requires unchecked conversion. Found 'java.lang.Object', required 'T' (at line 251).
Signals places where an unchecked warning is issued by the compiler, for example:
```
void f(HashMap map) {
  map.put("key", "value");
  }
```
This commit is contained in:
Michal Kordas 2015-08-08 16:46:45 +02:00 committed by Roman Ivanov
parent 66bcf5ddd0
commit 40684b5eba
1 changed files with 2 additions and 1 deletions

View File

@ -247,8 +247,9 @@ public class AutomaticBean
*/
private static class RelaxedStringArrayConverter implements Converter {
/** {@inheritDoc} */
@SuppressWarnings({"unchecked", "rawtypes"})
@Override
public Object convert(@SuppressWarnings("rawtypes") Class type, Object value) {
public Object convert(Class type, Object value) {
// Convert to a String and trim it for the tokenizer.
final StringTokenizer st = new StringTokenizer(
value.toString().trim(), ",");