Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-02-10 20:45:16 -0500
committerSergey Prigogin2012-02-10 20:47:52 -0500
commit5db78a20c84976de899c8516e8038d209bbacb84 (patch)
treeed5d00183c77334d3a4b786a8c7dad0532766eab /codan/org.eclipse.cdt.codan.ui
parent8034e44101b1c565c8cfed01ee42d6bb75761013 (diff)
downloadorg.eclipse.cdt-5db78a20c84976de899c8516e8038d209bbacb84.tar.gz
org.eclipse.cdt-5db78a20c84976de899c8516e8038d209bbacb84.tar.xz
org.eclipse.cdt-5db78a20c84976de899c8516e8038d209bbacb84.zip
Cosmetics.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.ui')
-rw-r--r--codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java
index ce6121332b..74942d07c7 100644
--- a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java
+++ b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java
@@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Andrew Gvozdev - initial API and implementation
+ * Andrew Gvozdev - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.codan.internal.ui;
@@ -32,22 +32,22 @@ import org.eclipse.ui.IMarkerResolutionGenerator;
public class CodanProblemMarkerResolutionGenerator implements IMarkerResolutionGenerator {
private static final String EXTENSION_POINT_NAME = "codanMarkerResolution"; //$NON-NLS-1$
- private static Map<String, Collection<ConditionalResolution>> resolutions = new HashMap<String, Collection<ConditionalResolution>>();
- private static boolean resolutionsLoaded = false;
+ private static final Map<String, Collection<ConditionalResolution>> resolutions = new HashMap<String, Collection<ConditionalResolution>>();
+ private static boolean resolutionsLoaded;
static class ConditionalResolution {
IMarkerResolution res;
String messagePattern;
- public ConditionalResolution(IMarkerResolution res2, String messagePattern2) {
- res = res2;
- messagePattern = messagePattern2;
+ public ConditionalResolution(IMarkerResolution res, String messagePattern) {
+ this.res = res;
+ this.messagePattern = messagePattern;
}
}
@Override
public IMarkerResolution[] getResolutions(IMarker marker) {
- if (resolutionsLoaded == false) {
+ if (!resolutionsLoaded) {
readExtensions();
}
String id = marker.getAttribute(ICodanProblemMarker.ID, null);

Back to the top