Remove @Nullable on local variables

Signed-off-by: OBones <obones@free.fr>
pull/4325/head
OBones 2024-07-29 15:22:56 +02:00
parent 86e685277f
commit ef03c140df
2 changed files with 0 additions and 4 deletions

View File

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

View File

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