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

Commit

Permalink
defensive comparison in archetype's handler factory (#5193)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
  • Loading branch information
sjsf authored and maggu2810 committed Mar 7, 2018
1 parent e0ed3ef commit fe1bc09
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -55,7 +55,7 @@ public boolean supportsThingType(ThingTypeUID thingTypeUID) {
protected @Nullable ThingHandler createHandler(Thing thing) {
ThingTypeUID thingTypeUID = thing.getThingTypeUID();

if (thingTypeUID.equals(THING_TYPE_SAMPLE)) {
if (THING_TYPE_SAMPLE.equals(thingTypeUID)) {
return new ${bindingIdCamelCase}Handler(thing);
}

Expand Down

0 comments on commit fe1bc09

Please sign in to comment.