From: Sébastien Lesaint Date: Wed, 28 Sep 2016 16:31:43 +0000 (+0200) Subject: SONAR-8183 fix quality flaws on BackendCleanup X-Git-Tag: 6.2-RC1~543 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b1381a61ba141ee45dec4a4c3b8fac44201d031;p=sonarqube.git SONAR-8183 fix quality flaws on BackendCleanup --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/platform/BackendCleanup.java b/server/sonar-server/src/main/java/org/sonar/server/platform/BackendCleanup.java index 3d7dc3ca34a..2fc63bbb302 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/platform/BackendCleanup.java +++ b/server/sonar-server/src/main/java/org/sonar/server/platform/BackendCleanup.java @@ -170,6 +170,7 @@ public class BackendCleanup { BulkIndexer.delete(esClient, indexName, esClient.prepareSearch(indexName).setQuery(matchAllQuery())); } + @FunctionalInterface private interface TableCleaner { void clean(String tableName, Statement ddlStatement, Connection connection) throws SQLException; }