diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-01-06 10:52:46 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-01-06 10:52:57 +0100 |
commit | 0fddc5fa4ea33882b60e072eee51f0e1ea585b4c (patch) | |
tree | ca06a067fbf862e691f47b0d342004f9dd97adea /sonar-batch-protocol/src | |
parent | a729de69050ef86f5da1a1c3b54b4c7d4d318893 (diff) | |
download | sonarqube-0fddc5fa4ea33882b60e072eee51f0e1ea585b4c.tar.gz sonarqube-0fddc5fa4ea33882b60e072eee51f0e1ea585b4c.zip |
Fix quality flaws5.4-M3
Diffstat (limited to 'sonar-batch-protocol/src')
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/viewer/TextLineNumber.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<String, FontMetrics>(); + fonts = new HashMap<>(); Element root = component.getDocument().getDefaultRootElement(); int index = root.getElementIndex(rowStartOffset); |