Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit c3ec27b

Browse files
Added Lombok dependency
1 parent 61f7516 commit c3ec27b

File tree

5 files changed

+15
-52
lines changed

5 files changed

+15
-52
lines changed

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@
166166
</profiles>
167167

168168
<dependencies>
169+
<dependency>
170+
<groupId>org.projectlombok</groupId>
171+
<artifactId>lombok</artifactId>
172+
<version>1.18.12</version>
173+
<scope>provided</scope>
174+
</dependency>
169175
<dependency>
170176
<groupId>org.scribe</groupId>
171177
<artifactId>scribe</artifactId>
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.tagmycode.sdk;
22

3+
import lombok.Getter;
34

5+
@Getter
46
public class RateLimit {
57
private final int limit;
68
private final int remaining;
@@ -11,16 +13,4 @@ public RateLimit(int limit, int remaining, int reset) {
1113
this.remaining = remaining;
1214
this.reset = reset;
1315
}
14-
15-
public int getLimit() {
16-
return limit;
17-
}
18-
19-
public int getRemaining() {
20-
return remaining;
21-
}
22-
23-
public int getReset() {
24-
return reset;
25-
}
2616
}

src/main/java/com/tagmycode/sdk/SaveFilePath.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
package com.tagmycode.sdk;
22

3+
import lombok.Getter;
4+
35
import java.io.File;
46
import java.io.IOException;
57

8+
@Getter
69
public class SaveFilePath {
710

811
private final String path;
@@ -13,10 +16,6 @@ public SaveFilePath(String namespace) throws IOException {
1316
path = basePath + File.separator + namespace;
1417
}
1518

16-
public String getPath() {
17-
return path;
18-
}
19-
2019
public String getPathWith(String filename) {
2120
return path + File.separator + filename;
2221
}

src/main/java/com/tagmycode/sdk/authentication/OauthToken.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.tagmycode.sdk.authentication;
22

3+
import lombok.Getter;
34
import org.json.JSONException;
45
import org.json.JSONObject;
56
import org.scribe.model.Token;
67

8+
@Getter
79
public class OauthToken implements Comparable<OauthToken> {
810
private Token accessToken;
911
private Token refreshToken;
@@ -13,14 +15,6 @@ public OauthToken(String accessToken, String refreshToken) {
1315
this.refreshToken = new Token(refreshToken, "");
1416
}
1517

16-
public Token getAccessToken() {
17-
return accessToken;
18-
}
19-
20-
public Token getRefreshToken() {
21-
return refreshToken;
22-
}
23-
2418
@Override
2519
public int compareTo(OauthToken oauthToken) {
2620
return concatenateTokens(this).compareTo(concatenateTokens(oauthToken));

src/main/java/com/tagmycode/sdk/crash/Crash.java

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
import com.tagmycode.sdk.authentication.OauthToken;
44
import com.tagmycode.sdk.model.User;
5+
import lombok.Getter;
56
import org.json.JSONException;
67

78
import java.io.PrintWriter;
89
import java.io.StringWriter;
910
import java.util.HashMap;
1011
import java.util.Map;
1112

13+
@Getter
1214
public class Crash {
1315
public static final String OPERATING_SYSTEM = "operating_system";
1416
public static final String JAVA_VERSION = "java_version";
@@ -53,34 +55,6 @@ private String extractStackTrace(Throwable throwable) {
5355
return sw.toString();
5456
}
5557

56-
public String getOperatingSystem() {
57-
return operatingSystem;
58-
}
59-
60-
public String getJavaVersion() {
61-
return javaVersion;
62-
}
63-
64-
public String getAppVersion() {
65-
return appVersion;
66-
}
67-
68-
public Throwable getThrowable() {
69-
return throwable;
70-
}
71-
72-
public String getAppId() {
73-
return appId;
74-
}
75-
76-
public User getUser() {
77-
return user;
78-
}
79-
80-
public OauthToken getOauthToken() {
81-
return oauthToken;
82-
}
83-
8458
public Map<String, String> toMap() {
8559
Map<String, String> map = new HashMap<String, String>();
8660
map.put(OPERATING_SYSTEM, getOperatingSystem());

0 commit comments

Comments
 (0)