Removed deprecated methods (#721)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>pull/766/head
parent
bb86507871
commit
1bbf250d1f
|
@ -46,12 +46,6 @@ public class BridgeBuilder extends ThingBuilder {
|
||||||
return new BridgeBuilder(bridge);
|
return new BridgeBuilder(bridge);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public static BridgeBuilder create(ThingUID thingUID) {
|
|
||||||
BridgeImpl bridge = new BridgeImpl(thingUID);
|
|
||||||
return new BridgeBuilder(bridge);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static BridgeBuilder create(ThingTypeUID thingTypeUID, ThingUID thingUID) {
|
public static BridgeBuilder create(ThingTypeUID thingTypeUID, ThingUID thingUID) {
|
||||||
BridgeImpl bridge = new BridgeImpl(thingTypeUID, thingUID);
|
BridgeImpl bridge = new BridgeImpl(thingTypeUID, thingUID);
|
||||||
return new BridgeBuilder(bridge);
|
return new BridgeBuilder(bridge);
|
||||||
|
|
|
@ -51,12 +51,6 @@ public class ThingBuilder {
|
||||||
return new ThingBuilder(thing);
|
return new ThingBuilder(thing);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public static ThingBuilder create(ThingUID thingUID) {
|
|
||||||
ThingImpl thing = new ThingImpl(thingUID);
|
|
||||||
return new ThingBuilder(thing);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ThingBuilder create(ThingTypeUID thingTypeUID, ThingUID thingUID) {
|
public static ThingBuilder create(ThingTypeUID thingTypeUID, ThingUID thingUID) {
|
||||||
ThingImpl thing = new ThingImpl(thingTypeUID, thingUID);
|
ThingImpl thing = new ThingImpl(thingTypeUID, thingUID);
|
||||||
return new ThingBuilder(thing);
|
return new ThingBuilder(thing);
|
||||||
|
|
|
@ -56,16 +56,6 @@ public class BridgeImpl extends ThingImpl implements Bridge {
|
||||||
super(thingTypeUID, bridgeId);
|
super(thingTypeUID, bridgeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param thingUID
|
|
||||||
* @throws IllegalArgumentException
|
|
||||||
* @deprecated use {@link #BridgeImpl(ThingTypeUID, ThingUID)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public BridgeImpl(ThingUID thingUID) throws IllegalArgumentException {
|
|
||||||
super(thingUID);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param thingTypeUID
|
* @param thingTypeUID
|
||||||
* @param thingUID
|
* @param thingUID
|
||||||
|
|
|
@ -95,21 +95,6 @@ public class ThingImpl implements Thing {
|
||||||
this.thingTypeUID = thingTypeUID;
|
this.thingTypeUID = thingTypeUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param thingUID
|
|
||||||
* @throws IllegalArgumentException
|
|
||||||
* @deprecated use {@link #ThingImpl(ThingTypeUID, ThingUID)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public ThingImpl(ThingUID thingUID) throws IllegalArgumentException {
|
|
||||||
if ("".equals(thingUID.getThingTypeId())) {
|
|
||||||
throw new IllegalArgumentException(
|
|
||||||
"The given ThingUID does not specify a ThingType. You might want to use ThingImpl(ThingTypeUID, ThingUID) instead.");
|
|
||||||
}
|
|
||||||
this.uid = thingUID;
|
|
||||||
this.thingTypeUID = new ThingTypeUID(thingUID.getBindingId(), thingUID.getThingTypeId());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param thingTypeUID thing type UID
|
* @param thingTypeUID thing type UID
|
||||||
* @param thingUID
|
* @param thingUID
|
||||||
|
|
Loading…
Reference in New Issue