]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] fix annotation for mibasicChannel (#9396)
authorMarcel <marcel@verpaalen.com>
Wed, 16 Dec 2020 19:04:03 +0000 (11:04 -0800)
committerGitHub <noreply@github.com>
Wed, 16 Dec 2020 19:04:03 +0000 (11:04 -0800)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicChannel.java

index 97b7ac5e8dab684d28fc9ebde075fff56e3598eb..576c9b4462508bb9a66152a92528656b1ae95fa1 100644 (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;
     }