diff options
author | Jonah Graham | 2018-11-20 16:20:42 +0000 |
---|---|---|
committer | Jonah Graham | 2018-11-22 21:55:36 +0000 |
commit | caf2292768deccd885b5b6989b731742e2e5edf4 (patch) | |
tree | 711a6088f2e17c7e31ebb51af1eadc1af00768e5 /core/org.eclipse.cdt.core/browser | |
parent | 8844a8f9f22802fedffa3cb2a8a21b041aa64b74 (diff) | |
download | org.eclipse.cdt-caf2292768deccd885b5b6989b731742e2e5edf4.tar.gz org.eclipse.cdt-caf2292768deccd885b5b6989b731742e2e5edf4.tar.xz org.eclipse.cdt-caf2292768deccd885b5b6989b731742e2e5edf4.zip |
Bug 540373: Cleanup: Remove redundant type arguments
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Remove redundant type arguments
and completing the wizard
Change-Id: Iaecc7010f097b4b1fabd29ccaa34ccb23a716fbf
Diffstat (limited to 'core/org.eclipse.cdt.core/browser')
-rw-r--r-- | core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeSearchScope.java | 8 | ||||
-rw-r--r-- | core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeUtil.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeSearchScope.java b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeSearchScope.java index 0e8c3ca06fe..8c892b30d1d 100644 --- a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeSearchScope.java +++ b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeSearchScope.java @@ -34,10 +34,10 @@ import org.eclipse.core.runtime.Path; */ public class TypeSearchScope implements ITypeSearchScope { - private Set<IPath> fPathSet = new HashSet<IPath>(); - private Set<IPath> fContainerSet = new HashSet<IPath>(); - private Set<ICProject> fProjectSet = new HashSet<ICProject>(); - private Set<ICProject> fEnclosingProjectSet = new HashSet<ICProject>(); + private Set<IPath> fPathSet = new HashSet<>(); + private Set<IPath> fContainerSet = new HashSet<>(); + private Set<ICProject> fProjectSet = new HashSet<>(); + private Set<ICProject> fEnclosingProjectSet = new HashSet<>(); private boolean fWorkspaceScope = false; // cached arrays diff --git a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeUtil.java b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeUtil.java index 3ccdb651794..212f4c0dd06 100644 --- a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeUtil.java +++ b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/TypeUtil.java @@ -110,7 +110,7 @@ public class TypeUtil { * exception occurs while accessing its corresponding resource */ public static ICElement[] getTypes(ITranslationUnit tu) throws CModelException { - List<ICElement> typeList = new ArrayList<ICElement>(); + List<ICElement> typeList = new ArrayList<>(); ICElement[] children = tu.getChildren(); for (int i = 0; i < children.length; ++i) { if (isDeclaringType(children[i])) @@ -131,8 +131,8 @@ public class TypeUtil { */ public static ICElement[] getAllTypes(ITranslationUnit tu) throws CModelException { ICElement[] types = getTypes(tu); - ArrayList<ICElement> allTypes = new ArrayList<ICElement>(types.length); - ArrayList<ICElement> typesToTraverse = new ArrayList<ICElement>(types.length); + ArrayList<ICElement> allTypes = new ArrayList<>(types.length); + ArrayList<ICElement> typesToTraverse = new ArrayList<>(types.length); for (ICElement type : types) { typesToTraverse.add(type); } @@ -158,7 +158,7 @@ public class TypeUtil { * @return the immediate member types declared by this type */ public static ICElement[] getTypes(ICElement elem) throws CModelException { - List<ICElement> typeList = new ArrayList<ICElement>(); + List<ICElement> typeList = new ArrayList<>(); if (isDeclaringType(elem) && elem instanceof IParent) { ICElement[] children = ((IParent) elem).getChildren(); for (int i = 0; i < children.length; ++i) { |