Skip to content

Commit

Permalink
Fields converted to local variables #2
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-patane committed Mar 26, 2020
1 parent 32d7d81 commit c109e0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/mcping/MCPing.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@

public class MCPing
{

private final static Gson gson = new Gson();

public FinalResponse getPing(PingOptions options) throws IOException
{
final Gson gson = new Gson();
Pinger a = new Pinger();
a.setAddress(new InetSocketAddress(options.getHostname(),options.getPort()));
a.setTimeout(options.getTimeout());
Expand Down

0 comments on commit c109e0c

Please sign in to comment.