mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-14 23:38:34 +00:00
Removal of Lombok
Lombok implementation removal. I have also gone through and replaced things with inline methods and variables, lambdas, and simplified loops down, removed unnecessary guard clauses, and overall cleaned up every single class. This took a long time, please do remember to follow proper naming conventions, don't include unnecessary guard clauses, follow exception rules and comment rules, and please PLEASE remember to use the DIAMOND OPERATOR rather than just inferring RAW TYPES!!! Thank you!!
This commit is contained in:
@ -1,16 +1,13 @@
|
||||
package me.totalfreedom.totalfreedommod.util;
|
||||
|
||||
import lombok.Getter;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.parser.JSONParser;
|
||||
import org.json.simple.parser.ParseException;
|
||||
|
||||
public class Response
|
||||
{
|
||||
@Getter
|
||||
private int code;
|
||||
@Getter
|
||||
private String message;
|
||||
private final int code;
|
||||
private final String message;
|
||||
|
||||
public Response(int code, String message)
|
||||
{
|
||||
@ -20,6 +17,16 @@ public class Response
|
||||
|
||||
public JSONObject getJSONMessage() throws ParseException
|
||||
{
|
||||
return (JSONObject) new JSONParser().parse(message);
|
||||
return (JSONObject)new JSONParser().parse(message);
|
||||
}
|
||||
|
||||
public int getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMessage()
|
||||
{
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user