Skip to content

Commit bf54cbb

Browse files
committed
fix: make constructors public for SyncHttpDelivery
1 parent 0b97a64 commit bf54cbb

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/main/java/com/bugsnag/delivery/SyncHttpDelivery.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,21 @@ public class SyncHttpDelivery implements HttpDelivery {
2222
public static final String DEFAULT_SESSION_ENDPOINT = "https://sessions.bugsnag.com";
2323
protected static final int DEFAULT_TIMEOUT = 5000;
2424

25-
protected String endpoint = DEFAULT_NOTIFY_ENDPOINT;
25+
protected String endpoint;
2626
protected int timeout = DEFAULT_TIMEOUT;
2727
protected Proxy proxy;
2828

29-
SyncHttpDelivery(String endpoint) {
29+
/**
30+
* Creates a new instance, which defaults to the https://notify.bugsnag.com endpoint
31+
*/
32+
public SyncHttpDelivery() {
33+
this(SyncHttpDelivery.DEFAULT_NOTIFY_ENDPOINT);
34+
}
35+
36+
/**
37+
* Creates a new instance, which uses a custom endpoint
38+
*/
39+
public SyncHttpDelivery(String endpoint) {
3040
this.endpoint = endpoint;
3141
}
3242

0 commit comments

Comments
 (0)