Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java
index 331aa5d46d1..567f0adb615 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java
@@ -39,7 +39,7 @@ public class CodanMarkerProblemReporter extends AbstractProblemReporter
implements IProblemReporterPersistent, IProblemReporterSessionPersistent {
private IResource resource;
private IChecker checker;
- private ArrayList<ICodanProblemMarker> toAdd = new ArrayList<ICodanProblemMarker>();
+ private ArrayList<ICodanProblemMarker> toAdd = new ArrayList<>();
/**
* Create instance, which can be use as factory for
@@ -126,7 +126,7 @@ public class CodanMarkerProblemReporter extends AbstractProblemReporter
}
protected Collection<IMarker> findResourceMarkers(IResource resource, IChecker checker) throws CoreException {
- Collection<IMarker> res = new ArrayList<IMarker>();
+ Collection<IMarker> res = new ArrayList<>();
IMarker[] markers;
if (resource.exists()) {
markers = resource.findMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE, true,
@@ -237,7 +237,7 @@ public class CodanMarkerProblemReporter extends AbstractProblemReporter
*/
protected ICodanProblemMarker similarMarker(IMarker m) {
ICodanProblemMarker mcm = CodanProblemMarker.createCodanProblemMarkerFromResourceMarker(m);
- ArrayList<ICodanProblemMarker> cand = new ArrayList<ICodanProblemMarker>();
+ ArrayList<ICodanProblemMarker> cand = new ArrayList<>();
for (ICodanProblemMarker cm : toAdd) {
if (mcm.equals(cm))
return cm;

Back to the top