unanonymous'd

This commit is contained in:
alisolarflare 2017-06-24 13:34:15 -04:00
parent 3ae2b0c028
commit 196efad665
3 changed files with 18 additions and 27 deletions

View file

@ -5,20 +5,15 @@ import com.google.gson.GsonBuilder;
public class StaticMain {
public static void main(String[] args){
@SuppressWarnings("unused")
class output{
String ali = "pls";
String iie = "whaddap";
String norbipeti = "¯\\_(ツ)_/¯";
}
GsonBuilder builder = new GsonBuilder();
Gson gson = builder.create();
System.out.println(gson.toJson(new output()));
}
static class output{
public String ali = "pls";
public String iie = "whaddap";
public String norbipeti = "¯\\_(ツ)_/¯";
}
}

View file

@ -15,12 +15,7 @@ public class HelloJSON extends ModCommand{
@Override
public boolean OnCommand(Player player, String alias, String[] args) {
@SuppressWarnings("unused")
class output{
String ali = "pls";
String iie = "whaddap";
String norbipeti = "¯\\_(ツ)_/¯";
}
GsonBuilder builder = new GsonBuilder();
Gson gson = builder.create();
@ -28,5 +23,10 @@ public class HelloJSON extends ModCommand{
player.sendMessage(gson.toJson(new output()));
return true;
}
class output{
String ali = "pls";
String iie = "whaddap";
String norbipeti = "¯\\_(ツ)_/¯";
}
}

View file

@ -18,20 +18,16 @@ public class HelloJSONPage extends Page {
public Response handlePage(HttpExchange exchange) {
return new Response(200, getResponseString(), exchange);
}
class output{
String ali = "pls";
String iie = "whaddap";
String norbipeti = "¯\\_(ツ)_/¯";
}
private String getResponseString() {
@SuppressWarnings("unused")
class output{
String ali = "pls";
String iie = "whaddap";
String norbipeti = "¯\\_(ツ)_/¯";
}
GsonBuilder builder = new GsonBuilder();
Gson gson = builder.create();
return gson.toJson(new output());
}
}