Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodRefactoring.java')
-rwxr-xr-xcore/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodRefactoring.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodRefactoring.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodRefactoring.java
index 7ede8de5c8b..6574bb089ae 100755
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodRefactoring.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodRefactoring.java
@@ -84,7 +84,7 @@ public class ImplementMethodRefactoring extends CRefactoring {
super(element, selection, project);
data = new ImplementMethodData();
methodDefinitionInsertLocationFinder = new MethodDefinitionInsertLocationFinder();
- insertLocations = new HashMap<IASTSimpleDeclaration, InsertLocation>();
+ insertLocations = new HashMap<>();
}
@Override
@@ -121,7 +121,7 @@ public class ImplementMethodRefactoring extends CRefactoring {
throws OperationCanceledException, CoreException {
final SubMonitor sm = SubMonitor.convert(pm, 2);
IASTTranslationUnit ast = getAST(tu, sm.newChild(1));
- final List<IASTSimpleDeclaration> list = new ArrayList<IASTSimpleDeclaration>();
+ final List<IASTSimpleDeclaration> list = new ArrayList<>();
ast.accept(new ASTVisitor() {
{
shouldVisitDeclarations = true;
@@ -318,7 +318,7 @@ public class ImplementMethodRefactoring extends CRefactoring {
}
private IFile[] getAllFilesToModify() {
- List<IFile> files = new ArrayList<IFile>(2);
+ List<IFile> files = new ArrayList<>(2);
IFile file = (IFile) tu.getResource();
if (file != null) {
files.add(file);

Back to the top