diff options
Diffstat (limited to 'core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/InteractiveHeaderChooser.java')
-rw-r--r-- | core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/InteractiveHeaderChooser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/InteractiveHeaderChooser.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/InteractiveHeaderChooser.java index a3badc46ee4..18e32bf4423 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/InteractiveHeaderChooser.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/InteractiveHeaderChooser.java @@ -39,7 +39,7 @@ public class InteractiveHeaderChooser implements IHeaderChooser { public InteractiveHeaderChooser(String title, Shell shell) { this.title = title; this.shell = shell; - userChoiceCache = new HashMap<Collection<IPath>, IPath>(); + userChoiceCache = new HashMap<>(); } @Override @@ -49,7 +49,7 @@ public class InteractiveHeaderChooser implements IHeaderChooser { if (headers.size() == 1) return headers.iterator().next(); - Set<IPath> cacheKey = new HashSet<IPath>(headers); + Set<IPath> cacheKey = new HashSet<>(headers); // Check the decision cache. If the cache doesn't help, ask the user. // Query the cache. if (userChoiceCache.containsKey(cacheKey)) { |