Skip to content

Commit 8d2e9a5

Browse files
committed
Add back deprecated constructor
1 parent c6dabb6 commit 8d2e9a5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/main/java/com/maxmind/minfraud/response/Device.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ public Device(
3838
this.localTime = localTime;
3939
}
4040

41+
/**
42+
* @deprecated This constructor only exists for backward compatibility
43+
* and will be removed in the next major release.
44+
*
45+
* @param confidence The device confidence.
46+
* @param id The device ID.
47+
* @param lastSeen When the device was last seen.
48+
*/
49+
public Device(
50+
Double confidence,
51+
UUID id,
52+
String lastSeen
53+
) {
54+
this(confidence, id, lastSeen, null);
55+
}
56+
4157
public Device() {
4258
this(null, null, null, null);
4359
}

0 commit comments

Comments
 (0)