Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2014-08-13 14:26:38 -0400
committerSergey Prigogin2014-08-13 15:03:53 -0400
commit21c0d0a2f82385824af3ca33cc2d68a09838be6b (patch)
tree59b5f6a5f5881ac73638bd4f8371ed0de51b2efa /codan/org.eclipse.cdt.codan.core
parentebb9bced0df84ad8ca9ff8476d529d56093a25d1 (diff)
downloadorg.eclipse.cdt-21c0d0a2f82385824af3ca33cc2d68a09838be6b.tar.gz
org.eclipse.cdt-21c0d0a2f82385824af3ca33cc2d68a09838be6b.tar.xz
org.eclipse.cdt-21c0d0a2f82385824af3ca33cc2d68a09838be6b.zip
Cosmetics.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core')
-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 331aa5d46d..567f0adb61 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