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 @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);
} }

View File

@ -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;
} }

View File

@ -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);