From 0fddc5fa4ea33882b60e072eee51f0e1ea585b4c Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 6 Jan 2016 10:52:46 +0100 Subject: Fix quality flaws --- .../src/main/java/org/sonar/batch/protocol/viewer/TextLineNumber.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-batch-protocol') diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/viewer/TextLineNumber.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/viewer/TextLineNumber.java index 25817ab5a4d..a7012413a1d 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/viewer/TextLineNumber.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/viewer/TextLineNumber.java @@ -346,7 +346,7 @@ public class TextLineNumber extends JPanel implements CaretListener, DocumentLis } else // We need to check all the attributes for font changes { if (fonts == null) - fonts = new HashMap(); + fonts = new HashMap<>(); Element root = component.getDocument().getDefaultRootElement(); int index = root.getElementIndex(rowStartOffset); -- cgit v1.2.3