Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
don't autobox and use objects if null is not expected (eclipse-archiv…
Browse files Browse the repository at this point in the history
…ed#6507)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
  • Loading branch information
maggu2810 authored and kaikreuzer committed Nov 12, 2018
1 parent eb5bf8a commit 766aa5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -14,7 +14,7 @@

/**
* {@link ThingManager} interface defines methods for managing a {@link Thing}.
*
*
* @author Yordan Zhelev - Initial contribution
*/
public interface ThingManager {
Expand All @@ -28,7 +28,7 @@ public interface ThingManager {
* @return {@code false} when the {@link Thing} has {@link ThingStatus} with {@link ThingStatusDetail#DISABLED}.
* Returns {@code true} in all other cases.
*/
public Boolean isEnabled(ThingUID thingUID);
public boolean isEnabled(ThingUID thingUID);

/**
* This method is used for changing <b>enabled</b> state of the {@link Thing}
Expand Down
Expand Up @@ -1252,7 +1252,7 @@ public void setEnabled(ThingUID thingUID, boolean enabled) {
}

@Override
public Boolean isEnabled(ThingUID thingUID) {
public boolean isEnabled(ThingUID thingUID) {
Thing thing = getThing(thingUID);
return thing.isEnabled();
}
Expand Down

0 comments on commit 766aa5a

Please sign in to comment.