[grid] Remove unthrown exception from method signatures
@@ -61,13 +61,13 @@ public RegistrationServlet(GridRegistry registry) {
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
- throws ServletException, IOException {
+ throws IOException {
process(request, response);
}
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
- throws ServletException, IOException {
+ throws IOException {
process(request, response);
}
@@ -105,11 +105,10 @@ protected void process(HttpServletRequest request, HttpServletResponse response)
reply(response, "ok");
- new Thread(new Runnable() { // Thread safety reviewed
- public void run() {
+ // Thread safety reviewed
+ new Thread(() -> {
getRegistry().add(proxy);
log.fine("proxy added " + proxy.getRemoteHost());
- }
}).start();
}
