Unchecked warning suppression fixes

This commit is contained in:
Ville Skyttä 2016-08-25 12:08:08 +03:00 committed by Clebert Suconic
parent 30c617da3c
commit 9d0dcf7f63
3 changed files with 6 additions and 3 deletions

View File

@ -378,7 +378,8 @@ public class ActiveMQBytesMessage extends ActiveMQMessage implements BytesMessag
}
@Override
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) {
@SuppressWarnings("unchecked")
public boolean isBodyAssignableTo(Class c) {
return c.isAssignableFrom(byte[].class);
}

View File

@ -384,7 +384,8 @@ public final class ActiveMQMapMessage extends ActiveMQMessage implements MapMess
}
@Override
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) {
@SuppressWarnings("unchecked")
public boolean isBodyAssignableTo(Class c) {
if (hasNoBody()) {
return true;
}

View File

@ -120,7 +120,8 @@ public class ActiveMQTextMessage extends ActiveMQMessage implements TextMessage
}
@Override
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) {
@SuppressWarnings("unchecked")
public boolean isBodyAssignableTo(ctiClass c) {
if (text == null)
return true;
return c.isAssignableFrom(java.lang.String.class);