diff options
Diffstat (limited to 'qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyExpansion.java')
-rw-r--r-- | qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyExpansion.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyExpansion.java b/qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyExpansion.java index 7f1ec424c89..4b7c1519991 100644 --- a/qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyExpansion.java +++ b/qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyExpansion.java @@ -348,14 +348,14 @@ public class QPropertyExpansion { // it is added as an unspecified attribute. If the loop completes, then we create a list of proposals // for from that unspecified list. - List<Attribute> unspecifiedAttributes = new ArrayList<Attribute>(); + List<Attribute> unspecifiedAttributes = new ArrayList<>(); for (IQProperty.Attribute attr : IQProperty.Attribute.values()) { if (attr.hasValue && (prevIdentifier != null && attr.identifier.equals(prevIdentifier.ident))) { Collection<QPropertyAttributeProposal> attrProposals = QPropertyAttributeProposal.buildProposals(attr, context, type, name); if (attrProposals != null) { - List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>(); + List<ICompletionProposal> proposals = new ArrayList<>(); for (QPropertyAttributeProposal value : attrProposals) if (prefix == null || value.getIdentifier().startsWith(prefix)) proposals.add(value.createProposal(prefix, context.getInvocationOffset())); @@ -373,7 +373,7 @@ public class QPropertyExpansion { unspecifiedAttributes.add(new Attribute(attr)); } - List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>(); + List<ICompletionProposal> proposals = new ArrayList<>(); for (Attribute attr : unspecifiedAttributes) { ICompletionProposal proposal = attr.getProposal(contextId, context); if (proposal != null) |