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
|
@Override
|
||||||
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) {
|
@SuppressWarnings("unchecked")
|
||||||
|
public boolean isBodyAssignableTo(Class c) {
|
||||||
return c.isAssignableFrom(byte[].class);
|
return c.isAssignableFrom(byte[].class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -384,7 +384,8 @@ public final class ActiveMQMapMessage extends ActiveMQMessage implements MapMess
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) {
|
@SuppressWarnings("unchecked")
|
||||||
|
public boolean isBodyAssignableTo(Class c) {
|
||||||
if (hasNoBody()) {
|
if (hasNoBody()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,7 +120,8 @@ public class ActiveMQTextMessage extends ActiveMQMessage implements TextMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) {
|
@SuppressWarnings("unchecked")
|
||||||
|
public boolean isBodyAssignableTo(ctiClass c) {
|
||||||
if (text == null)
|
if (text == null)
|
||||||
return true;
|
return true;
|
||||||
return c.isAssignableFrom(java.lang.String.class);
|
return c.isAssignableFrom(java.lang.String.class);
|
||||||
|
|
Loading…
Reference in New Issue