You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2019/01/08 15:04:41 UTC

[sling-org-apache-sling-app-cms] 03/04: Cleaning up some Sonar flags

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch feature/file-metadata-loaded
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit c1af916c5e2aaeb6c8d1c7ff73921012ccc707c0
Author: Dan Klco <dk...@apache.org>
AuthorDate: Tue Jan 8 10:00:32 2019 -0500

    Cleaning up some Sonar flags
---
 .../core/insights/impl/providers/HTMLValdiatorInsightProvider.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/main/java/org/apache/sling/cms/core/insights/impl/providers/HTMLValdiatorInsightProvider.java b/core/src/main/java/org/apache/sling/cms/core/insights/impl/providers/HTMLValdiatorInsightProvider.java
index 1e3be12..ac9e19e 100644
--- a/core/src/main/java/org/apache/sling/cms/core/insights/impl/providers/HTMLValdiatorInsightProvider.java
+++ b/core/src/main/java/org/apache/sling/cms/core/insights/impl/providers/HTMLValdiatorInsightProvider.java
@@ -100,11 +100,11 @@ public class HTMLValdiatorInsightProvider extends BaseInsightProvider {
             response = client.execute(httpPost);
             HttpEntity entity = response.getEntity();
             JsonObject json = Json.createReader(new StringReader(EntityUtils.toString(entity))).readObject();
-            log.debug("Loaded response: {}", json.toString(), 2);
+            log.debug("Loaded response: {}", json);
             JsonArray messages = json.getJsonArray("messages");
             int errors = 0;
             int warnings = 0;
-            Set<String> msgSet = new HashSet<String>();
+            Set<String> msgSet = new HashSet<>();
             for (int i = 0; i < messages.size(); i++) {
                 JsonObject message = messages.getJsonObject(i);
                 if ("error".equals(message.getString("type"))) {