tmf: Switch tmf.ui to Java 7 + fix warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / colors / ColorSettingsXML.java
index 32382d0a2b3a2287894b9d9480a8e4222645bd06..fc9fd9bcb26c6ec4af949f03976d233904efa4a2 100644 (file)
@@ -163,7 +163,7 @@ public class ColorSettingsXML {
     // Helper class
     private static class ColorSettingsContentHandler extends DefaultHandler {
 
-        private List<ColorSetting> colorSettings = new ArrayList<ColorSetting>(0);
+        private List<ColorSetting> colorSettings = new ArrayList<>(0);
         private RGB fg = new RGB(0, 0, 0);
         private RGB bg = new RGB(255, 255, 255);
         private RGB tickColor = new RGB(0, 0, 0);
@@ -174,7 +174,7 @@ public class ColorSettingsXML {
         public void startElement(String uri, String localName, String qName, Attributes attributes)
                 throws SAXException {
             if (localName.equals(COLOR_SETTINGS_TAG)) {
-                colorSettings = new ArrayList<ColorSetting>();
+                colorSettings = new ArrayList<>();
             } else if (localName.equals(COLOR_SETTING_TAG)) {
                 fg = null;
                 bg = null;
This page took 0.030149 seconds and 5 git commands to generate.