[miio] fix annotation for mibasicChannel (#9396)

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
Marcel 2020-12-16 11:04:03 -08:00 committed by GitHub
parent 9d6cc070eb
commit 4b5b6f8f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ public class MiIoBasicChannel {
return (property != null) ? property : "";
}
public void setProperty(String property) {
public void setProperty(@Nullable String property) {
this.property = property;
}
@ -103,7 +103,7 @@ public class MiIoBasicChannel {
}
}
public void setSiid(Integer siid) {
public void setSiid(@Nullable Integer siid) {
this.siid = siid;
}
@ -116,7 +116,7 @@ public class MiIoBasicChannel {
}
}
public void setPiid(Integer piid) {
public void setPiid(@Nullable Integer piid) {
this.piid = piid;
}
@ -133,7 +133,7 @@ public class MiIoBasicChannel {
return (fn == null || type == null || fn.isEmpty()) ? getChannel() : fn;
}
public void setFriendlyName(String friendlyName) {
public void setFriendlyName(@Nullable String friendlyName) {
this.friendlyName = friendlyName;
}
@ -142,7 +142,7 @@ public class MiIoBasicChannel {
return channel != null ? channel : "";
}
public void setChannel(String channel) {
public void setChannel(@Nullable String channel) {
this.channel = channel;
}
@ -155,7 +155,7 @@ public class MiIoBasicChannel {
}
}
public void setChannelType(String channelType) {
public void setChannelType(@Nullable String channelType) {
this.channelType = channelType;
}
@ -164,7 +164,7 @@ public class MiIoBasicChannel {
return type != null ? type : "";
}
public void setType(String type) {
public void setType(@Nullable String type) {
this.type = type;
}
@ -173,7 +173,7 @@ public class MiIoBasicChannel {
return unit != null ? unit : "";
}
public void setUnit(String unit) {
public void setUnit(@Nullable String unit) {
this.unit = unit;
}
@ -190,7 +190,7 @@ public class MiIoBasicChannel {
return rf != null && rf.booleanValue() && !getProperty().isEmpty();
}
public void setRefresh(Boolean refresh) {
public void setRefresh(@Nullable Boolean refresh) {
this.refresh = refresh;
}
@ -199,7 +199,7 @@ public class MiIoBasicChannel {
return channelCustomRefreshCommand != null ? channelCustomRefreshCommand : "";
}
public void setChannelCustomRefreshCommand(String channelCustomRefreshCommand) {
public void setChannelCustomRefreshCommand(@Nullable String channelCustomRefreshCommand) {
this.channelCustomRefreshCommand = channelCustomRefreshCommand;
}
@ -208,7 +208,7 @@ public class MiIoBasicChannel {
return channelGroup != null ? channelGroup : "";
}
public void setChannelGroup(String channelGroup) {
public void setChannelGroup(@Nullable String channelGroup) {
this.channelGroup = channelGroup;
}
@ -225,7 +225,7 @@ public class MiIoBasicChannel {
return transfortmation;
}
public void setTransfortmation(String transfortmation) {
public void setTransfortmation(@Nullable String transfortmation) {
this.transfortmation = transfortmation;
}
@ -233,7 +233,7 @@ public class MiIoBasicChannel {
return category;
}
public void setCategory(String category) {
public void setCategory(@Nullable String category) {
this.category = category;
}
@ -241,7 +241,7 @@ public class MiIoBasicChannel {
return tags;
}
public void setTags(LinkedHashSet<String> tags) {
public void setTags(@Nullable LinkedHashSet<String> tags) {
this.tags = tags;
}
@ -250,7 +250,7 @@ public class MiIoBasicChannel {
return (readmeComment != null) ? readmeComment : "";
}
public void setReadmeComment(String readmeComment) {
public void setReadmeComment(@Nullable String readmeComment) {
this.readmeComment = readmeComment;
}