Skip to content

Commit f1aa34d

Browse files
committed
Add Deprecated annotations.
1 parent c42b02a commit f1aa34d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/com/iobeam/api/resource/Device.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class Device implements Serializable {
1717
/**
1818
* A wrapper class around a String that uniquely identifies the device.
1919
*/
20+
@Deprecated
2021
public static final class Id implements Serializable {
2122

2223
private final String id;

src/main/java/com/iobeam/api/service/DeviceService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public GetDevice get(final String deviceId) {
7373
return new GetDevice(deviceId);
7474
}
7575

76+
@Deprecated
7677
public GetDevice get(final Device.Id deviceId) {
7778
return get(deviceId.getId());
7879
}
@@ -138,6 +139,7 @@ public Delete delete(String deviceId) {
138139
return new Delete(deviceId);
139140
}
140141

142+
@Deprecated
141143
public Delete delete(Device.Id deviceId) {
142144
return delete(deviceId.getId());
143145
}

0 commit comments

Comments
 (0)