Remove @Nullable on local variables
Signed-off-by: OBones <obones@free.fr>pull/4325/head
parent
86e685277f
commit
ef03c140df
|
@ -145,7 +145,6 @@ public class ProfileTypeResource implements RESTResource {
|
|||
}
|
||||
|
||||
private boolean profileTypeMatchesChannelType(ProfileType profileType, ChannelType channelType) {
|
||||
@Nullable
|
||||
ChannelKind supportedChannelKind = profileType.getSupportedChannelKind();
|
||||
if (supportedChannelKind != null && supportedChannelKind != channelType.getKind())
|
||||
return false;
|
||||
|
@ -160,7 +159,6 @@ public class ProfileTypeResource implements RESTResource {
|
|||
if (supportedItemTypesOfChannelOnProfileType.isEmpty()) {
|
||||
return true;
|
||||
} else {
|
||||
@Nullable
|
||||
String itemType = channelType.getItemType();
|
||||
return itemType != null
|
||||
&& supportedItemTypesOfChannelOnProfileType.contains(ItemUtil.getMainItemType(itemType));
|
||||
|
|
|
@ -126,7 +126,6 @@ public class ItemChannelLinkConfigDescriptionProvider implements ConfigDescripti
|
|||
}
|
||||
|
||||
private boolean isSupportedChannelType(ProfileType profileType, Channel channel, @Nullable Locale locale) {
|
||||
@Nullable
|
||||
ChannelKind supportedChannelKind = profileType.getSupportedChannelKind();
|
||||
if (supportedChannelKind != null && supportedChannelKind != channel.getKind())
|
||||
return false;
|
||||
|
@ -150,7 +149,6 @@ public class ItemChannelLinkConfigDescriptionProvider implements ConfigDescripti
|
|||
return false;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
String itemType = channelType.getItemType();
|
||||
return itemType != null
|
||||
&& supportedItemTypesOfChannelOnProfileType.contains(ItemUtil.getMainItemType(itemType));
|
||||
|
|
Loading…
Reference in New Issue