Unchecked warning suppression fixes
This commit is contained in:
parent
30c617da3c
commit
9d0dcf7f63
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue