Some changes after running Findbugs.
This commit is contained in:
parent
b0c84234cc
commit
8d70839d3b
10 changed files with 39 additions and 22 deletions
|
|
@ -30,7 +30,7 @@ public class ClientUpdateHandler implements HttpHandler {
|
|||
this.server = server;
|
||||
}
|
||||
|
||||
Pattern updatePathPattern = Pattern.compile("world/([a-zA-Z0-9_-\\.]+)/([0-9]*)");
|
||||
Pattern updatePathPattern = Pattern.compile("world/([a-zA-Z0-9_\\-\\.]+)/([0-9]*)");
|
||||
private static final HttpStatus WorldNotFound = new HttpStatus(HttpStatus.NotFound.getCode(), "World Not Found");
|
||||
@Override
|
||||
public void handle(String path, HttpRequest request, HttpResponse response) throws Exception {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public class SendMessageHandler implements HttpHandler {
|
|||
response.status = HttpStatus.OK;
|
||||
response.getBody();
|
||||
}
|
||||
public class Message {
|
||||
public static class Message {
|
||||
public String name;
|
||||
public String message;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue