diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java index 5547b33ee9d..4ce0d077f0a 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java @@ -48,7 +48,7 @@ import junit.framework.Test; * Tests the behavior of the IIndex API when dealing with multiple projects */ public class IndexCompositeTests extends BaseTestCase { - Set createdProjects = new HashSet(); + Set createdProjects = new HashSet<>(); /* * Convenience class for setting up projects. @@ -56,8 +56,8 @@ public class IndexCompositeTests extends BaseTestCase { private class ProjectBuilder { private final String name; private final boolean cpp; - private List dependencies = new ArrayList(); - private Map path2content = new HashMap(); + private List dependencies = new ArrayList<>(); + private Map path2content = new HashMap<>(); ProjectBuilder(String name, boolean cpp) { this.name = name; diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/util/ICancelable.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/util/ICancelable.java index eb4a3cc9f38..412712d8790 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/util/ICancelable.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/util/ICancelable.java @@ -16,7 +16,6 @@ package org.eclipse.cdt.internal.core.util; * @since 5.0 */ public interface ICancelable { - /** * Marks the receiver cancelled. */ diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IPDOMASTProcessor.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IPDOMASTProcessor.java index 0f725cd0a13..1d1e9c86ee6 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IPDOMASTProcessor.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IPDOMASTProcessor.java @@ -16,7 +16,7 @@ import org.eclipse.core.runtime.CoreException; * The PDOMASTProcessor extension point allows contributors to the org.eclipse.cdt.core.PDOMASTProcessor * extension-point to store their own information in the persisted index. The intent is for * contributors to define their own ILinkage to avoid managing conflicts with the storage format - * for existing Linkages. + * for existing linkages. *

* NOTE: The existing org.eclipse.cdt.core.language extension-point, allows new pdomLinkageFactories * to be added. However, the {@link IPDOMLinkageFactory} interface which must be implemented is @@ -27,9 +27,9 @@ import org.eclipse.core.runtime.CoreException; */ public interface IPDOMASTProcessor { /** - * Process the input ast by adding significant symbols to the given output map. Return the - * linkage id that should be used to store the result, or {@link ILinkage#NO_LINKAGE_ID} if - * the AST contained nothing of significance to this processor. + * Processes the input AST by adding significant symbols to the given output map. Returns the linkage id + * that should be used to store the result, or {@link ILinkage#NO_LINKAGE_ID} if the AST contained nothing + * of significance to this processor. * * @param ast The input AST to be processed. * @param symbols The output map of significant symbols. diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/DefaultLogService.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/DefaultLogService.java index 0e7164b6422..f8eec7539a5 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/DefaultLogService.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/DefaultLogService.java @@ -12,8 +12,6 @@ package org.eclipse.cdt.core.parser; /** * @author jcamelon - * */ -public class DefaultLogService extends AbstractParserLogService -{ +public class DefaultLogService extends AbstractParserLogService { } diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/WritableCIndex.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/WritableCIndex.java index 6a677a5310c..80be2625a72 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/WritableCIndex.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/WritableCIndex.java @@ -80,8 +80,7 @@ public class WritableCIndex extends CIndex implements IWritableIndex { for (IncludeInformation include : includes) { if (include.fLocation != null) { - include.fTargetFile= addFile(linkageID, include.fLocation, - include.fSignificantMacros); + include.fTargetFile= addFile(linkageID, include.fLocation, include.fSignificantMacros); } } getWritableFragment().addFileContent(file, includes, macros, names, resolver, lock);