diff options
Diffstat (limited to 'qt/org.eclipse.cdt.qt.ui.tests/src/org/eclipse/cdt/qt/tests/QObjectTests.java')
-rw-r--r-- | qt/org.eclipse.cdt.qt.ui.tests/src/org/eclipse/cdt/qt/tests/QObjectTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/org.eclipse.cdt.qt.ui.tests/src/org/eclipse/cdt/qt/tests/QObjectTests.java b/qt/org.eclipse.cdt.qt.ui.tests/src/org/eclipse/cdt/qt/tests/QObjectTests.java index 4617dbb955c..59d87af3c2a 100644 --- a/qt/org.eclipse.cdt.qt.ui.tests/src/org/eclipse/cdt/qt/tests/QObjectTests.java +++ b/qt/org.eclipse.cdt.qt.ui.tests/src/org/eclipse/cdt/qt/tests/QObjectTests.java @@ -368,7 +368,7 @@ public class QObjectTests extends BaseQtTestCase { throws Exception { // this map is used to make sure that all expected attributes are found - Map<String, ExpectedQProperty> qprops = new HashMap<String, QObjectTests.ExpectedQProperty>(); + Map<String, ExpectedQProperty> qprops = new HashMap<>(); for (ExpectedQProperty qprop : expectedProperties) if (qprops.containsKey(qprop.name)) fail("duplicate properties in expected list " + qprop.name); @@ -382,7 +382,7 @@ public class QObjectTests extends BaseQtTestCase { assertEquals("unexpected type for " + expected.name, expected.name, qprop.getName()); // make sure that all attributes that were found were expected - Set<Attribute> allAttrs = new HashSet<Attribute>(Arrays.asList(Attribute.values())); + Set<Attribute> allAttrs = new HashSet<>(Arrays.asList(Attribute.values())); for (int i = 0; i < expected.attributes.length; ++i) { Attribute attr = (Attribute) expected.attributes[i]; |