Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 1a0ec1c

Browse files
committed
Use lombok constructor
1 parent 2c6fa65 commit 1a0ec1c

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

src/main/java/com/thebluealliance/api/v3/requests/DataRequest.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,19 @@
66
import java.net.HttpURLConnection;
77
import java.net.URL;
88

9+
import lombok.Value;
10+
911
/**
1012
* Used to issue a direct request for data to The Blue Alliance via a URL
1113
*/
14+
@Value
1215
public class DataRequest {
1316

1417
public static final String TBA_BASE_URL = "https://www.thebluealliance.com/api/v3";
1518
public static final String HEADER_AUTH = "X-TBA-Auth-Key";
1619
public static final String HEADER_MODIFIED = "If-Modified-Since";
1720

18-
private String AUTH_KEY;
19-
20-
/**
21-
* Constructs an object to make a data request
22-
*
23-
* @param authKey TBA API com.thebluealliance.api.v3 authentication key
24-
*/
25-
public DataRequest(String authKey) {
26-
AUTH_KEY = authKey;
27-
}
21+
String AUTH_KEY;
2822

2923
/**
3024
* Retrieves data from TBA API using a URL, without a <code>If-Modified-Since</code> header

0 commit comments

Comments
 (0)