diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2017-02-16 11:03:54 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2017-02-17 11:30:11 +0100 |
commit | ea5d6b69e5ec9cda11c0996de0d48f25d2c386e5 (patch) | |
tree | 81a9d6d9f7463ed548cca94309a8ab4b58d8aa7f | |
parent | f3ad5e860b72293ddb263960de7d3cdcad98d6b8 (diff) | |
download | sonarqube-ea5d6b69e5ec9cda11c0996de0d48f25d2c386e5.tar.gz sonarqube-ea5d6b69e5ec9cda11c0996de0d48f25d2c386e5.zip |
Replace anonymous classes with method reference in WebServiceTest
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/server/ws/WebServiceTest.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/WebServiceTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/WebServiceTest.java index 7caeab68bcd..a91cae06d17 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/WebServiceTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/WebServiceTest.java @@ -461,12 +461,7 @@ public class WebServiceTest { .setDescription("Show metric") .setSince("4.2") .setResponseExample(getClass().getResource("WebServiceTest/response-example.txt")) - .setHandler(new RequestHandler() { - @Override - public void handle(Request request, Response response) { - show(request, response); - } - }); + .setHandler(this::show); newController.createAction("create") .setDescription("Create metric") @@ -479,12 +474,7 @@ public class WebServiceTest { new Changelog("6.4", "Last event"), new Changelog("6.0", "Old event"), new Changelog("4.5.6", "Very old event")) - .setHandler(new RequestHandler() { - @Override - public void handle(Request request, Response response) { - create(request, response); - } - }); + .setHandler(this::create); newController.done(); } |