Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 11:20:42 -0500
committerJonah Graham2018-11-22 16:47:02 -0500
commit170e654b4796bad1453ae85a427b97317d67a69a (patch)
tree6ca9b8a8fedd5fd25f97eb79c408312e256ff981 /codan/org.eclipse.cdt.codan.core
parent35996a5c5ca5c254959ba48241eaada6dbf8628d (diff)
downloadorg.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.tar.gz
org.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.tar.xz
org.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.zip
Bug 540373: Cleanup: Format & Remove trailing whitespace
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Format source code - Remove trailing white spaces on all lines and completing the wizard Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core')
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanCorePlugin.java42
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanRuntime.java20
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractCheckerWithProblemPreferences.java29
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/Checkers.java3
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java12
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IChecker.java3
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICheckerWithPreferences.java6
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICodanProblemMarker.java10
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemCategory.java10
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemElement.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemMultiple.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemReporterPersistent.java8
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java16
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ProblemProfileChangeEvent.java3
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBasicBlock.java6
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBranchNode.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ICfgData.java6
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IConnectorNode.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IControlFlowGraph.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IDecisionNode.java6
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IExitNode.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IJumpNode.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/INodeFactory.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IPlainNode.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleIncoming.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleOutgoing.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IStartNode.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java5
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java42
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/FileScopeProblemPreference.java5
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreference.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeDescriptor.java10
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeValue.java10
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceDescriptor.java20
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceValue.java10
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java3
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java3
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CharOperation.java65
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckerInvocationContext.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegistry.java13
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersTimeStats.java1
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanBuilder.java25
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanPreferencesLoader.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanRunner.java11
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/PreferenceInitializer.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractBasicBlock.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleIncomingNode.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleOutgoingNode.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/BranchNode.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ConnectorNode.java8
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/JumpNode.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/PlainNode.java4
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/StartNode.java2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java10
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemCategory.java6
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemMarker.java3
57 files changed, 258 insertions, 244 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanCorePlugin.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanCorePlugin.java
index df76ea4b4a..c5342d8489 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanCorePlugin.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanCorePlugin.java
@@ -137,9 +137,9 @@ public class CodanCorePlugin extends Plugin {
private final boolean isDebuggingEnabled(final String optionPath) {
if (optionPath == null)
return true;
- if (debugOptions==null)
+ if (debugOptions == null)
getTrace();
- if (debugOptions==null)
+ if (debugOptions == null)
return false;
boolean debugEnabled = false;
if (debugOptions.isDebugEnabled()) {
@@ -155,24 +155,38 @@ public class CodanCorePlugin extends Plugin {
*/
private static final DebugTrace NULL_TRACE = new DebugTrace() {
@Override
- public void trace(String option, String message) {}
+ public void trace(String option, String message) {
+ }
+
@Override
- public void trace(String option, String message, Throwable error) {}
+ public void trace(String option, String message, Throwable error) {
+ }
+
@Override
- public void traceDumpStack(String option) {}
+ public void traceDumpStack(String option) {
+ }
+
@Override
- public void traceEntry(String option) {}
+ public void traceEntry(String option) {
+ }
+
@Override
- public void traceEntry(String option, Object methodArgument) {}
+ public void traceEntry(String option, Object methodArgument) {
+ }
+
@Override
- public void traceEntry(String option, Object[] methodArguments) {}
+ public void traceEntry(String option, Object[] methodArguments) {
+ }
+
@Override
- public void traceExit(String option) {}
+ public void traceExit(String option) {
+ }
+
@Override
- public void traceExit(String option, Object result) {}
+ public void traceExit(String option, Object result) {
+ }
};
-
synchronized private static DebugTrace getTrace() {
if (trace == null) {
Plugin plugin = getDefault();
@@ -181,15 +195,15 @@ public class CodanCorePlugin extends Plugin {
if (bundle != null) {
BundleContext context = bundle.getBundleContext();
if (context != null) {
- ServiceTracker<DebugOptions, DebugOptions> tracker = new ServiceTracker<DebugOptions, DebugOptions>(context, DebugOptions.class.getName(), null);
+ ServiceTracker<DebugOptions, DebugOptions> tracker = new ServiceTracker<DebugOptions, DebugOptions>(
+ context, DebugOptions.class.getName(), null);
try {
tracker.open();
debugOptions = tracker.getService();
if (debugOptions != null) {
trace = debugOptions.newDebugTrace(bundle.getSymbolicName());
}
- }
- finally {
+ } finally {
tracker.close();
}
}
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanRuntime.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanRuntime.java
index dd9b197056..493f5fb06e 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanRuntime.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/CodanRuntime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2011 Alena Laskavaia
+ * Copyright (c) 2009, 2011 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -24,9 +24,9 @@ import org.eclipse.cdt.codan.internal.core.model.ProblemLocationFactory;
/**
* Runtime singleton class to get access to Codan framework parts
- *
+ *
* Clients may extend this class to override default framework parts.
- *
+ *
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
@@ -50,7 +50,7 @@ public class CodanRuntime {
/**
* Get runtime problem reporter. Default reported generated problem markers.
- *
+ *
* @return
*/
public IProblemReporter getProblemReporter() {
@@ -59,7 +59,7 @@ public class CodanRuntime {
/**
* Set different problem reporter.
- *
+ *
* @param reporter
*/
public void setProblemReporter(IProblemReporter reporter) {
@@ -68,7 +68,7 @@ public class CodanRuntime {
/**
* Get instance of of Codan Runtime
- *
+ *
* @return
*/
public static CodanRuntime getInstance() {
@@ -78,7 +78,7 @@ public class CodanRuntime {
/**
* Get builder. Builder can used to run code analysis on given resource
* using API.
- *
+ *
* @return
*/
public ICodanBuilder getBuilder() {
@@ -87,7 +87,7 @@ public class CodanRuntime {
/**
* Get checkers registry.
- *
+ *
* @return
* @since 2.0
*/
@@ -97,7 +97,7 @@ public class CodanRuntime {
/**
* Get problem location factory.
- *
+ *
* @return
*/
public IProblemLocationFactory getProblemLocationFactory() {
@@ -107,7 +107,7 @@ public class CodanRuntime {
/**
* Set another problem location factory - only need if default is not
* sufficient, i.e IProblemLocation is implemented differently
- *
+ *
* @param factory
*/
public void setProblemLocationFactory(IProblemLocationFactory factory) {
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractCheckerWithProblemPreferences.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractCheckerWithProblemPreferences.java
index 10fbc4bce2..ac91b3dbf4 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractCheckerWithProblemPreferences.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractCheckerWithProblemPreferences.java
@@ -34,20 +34,18 @@ import org.eclipse.core.runtime.IPath;
* Checker can produce several problems, but preferences are per problem.
* Sharing preferences between problems is not supported now.
*/
-public abstract class AbstractCheckerWithProblemPreferences extends AbstractChecker
- implements ICheckerWithPreferences {
+public abstract class AbstractCheckerWithProblemPreferences extends AbstractChecker implements ICheckerWithPreferences {
/**
* Checker that actually has parameter must override this
*/
@Override
public void initPreferences(IProblemWorkingCopy problem) {
getTopLevelPreference(problem); // initialize
- getLaunchModePreference(problem).enableInLaunchModes(
- CheckerLaunchMode.RUN_AS_YOU_TYPE,
- CheckerLaunchMode.RUN_ON_DEMAND,
- CheckerLaunchMode.RUN_ON_FULL_BUILD,
+ getLaunchModePreference(problem).enableInLaunchModes(CheckerLaunchMode.RUN_AS_YOU_TYPE,
+ CheckerLaunchMode.RUN_ON_DEMAND, CheckerLaunchMode.RUN_ON_FULL_BUILD,
CheckerLaunchMode.RUN_ON_INC_BUILD);
- getSuppressionCommentPreference(problem).setValue(SuppressionCommentProblemPreference.generateDefaultComment(problem));
+ getSuppressionCommentPreference(problem)
+ .setValue(SuppressionCommentProblemPreference.generateDefaultComment(problem));
}
/**
@@ -171,8 +169,7 @@ public abstract class AbstractCheckerWithProblemPreferences extends AbstractChec
public IProblemPreference addPreference(IProblemWorkingCopy problem, String key, String label,
Object defaultValue) {
MapProblemPreference map = getTopLevelPreference(problem);
- BasicProblemPreference info = new BasicProblemPreference(key, label,
- PreferenceType.typeOf(defaultValue));
+ BasicProblemPreference info = new BasicProblemPreference(key, label, PreferenceType.typeOf(defaultValue));
map.addChildDescriptor(info);
setDefaultPreferenceValue(problem, key, defaultValue);
return info;
@@ -192,12 +189,12 @@ public abstract class AbstractCheckerWithProblemPreferences extends AbstractChec
* values or set different element type
*
*/
- public ListProblemPreference addListPreference(IProblemWorkingCopy problem, String key,
- String label, String itemLabel) {
+ public ListProblemPreference addListPreference(IProblemWorkingCopy problem, String key, String label,
+ String itemLabel) {
MapProblemPreference map = getTopLevelPreference(problem);
ListProblemPreference list = new ListProblemPreference(key, label);
- list.setChildDescriptor(new BasicProblemPreference(ListProblemPreference.COMMON_DESCRIPTOR_KEY,
- itemLabel, PreferenceType.TYPE_STRING));
+ list.setChildDescriptor(new BasicProblemPreference(ListProblemPreference.COMMON_DESCRIPTOR_KEY, itemLabel,
+ PreferenceType.TYPE_STRING));
return (ListProblemPreference) map.addChildDescriptor(list);
}
@@ -209,8 +206,7 @@ public abstract class AbstractCheckerWithProblemPreferences extends AbstractChec
* @param defaultValue - default value of the preference
* @return added preference
*/
- public IProblemPreference addPreference(IProblemWorkingCopy problem, IProblemPreference pref,
- Object defaultValue) {
+ public IProblemPreference addPreference(IProblemWorkingCopy problem, IProblemPreference pref, Object defaultValue) {
MapProblemPreference map = getTopLevelPreference(problem);
String key = pref.getKey();
pref = map.addChildDescriptor(pref);
@@ -226,8 +222,7 @@ public abstract class AbstractCheckerWithProblemPreferences extends AbstractChec
* @param key - preference key
* @param defaultValue - value of preference to be set
*/
- protected void setDefaultPreferenceValue(IProblemWorkingCopy problem, String key,
- Object defaultValue) {
+ protected void setDefaultPreferenceValue(IProblemWorkingCopy problem, String key, Object defaultValue) {
MapProblemPreference map = getTopLevelPreference(problem);
if (map.getChildValue(key) == null)
map.setChildValue(key, defaultValue);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/Checkers.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/Checkers.java
index 2003ae70fd..9526ec98fa 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/Checkers.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/Checkers.java
@@ -30,5 +30,6 @@ public final class Checkers {
return checker.runInEditor() && checker instanceof IRunnableInEditorChecker;
}
- private Checkers() {}
+ private Checkers() {
+ }
}
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java
index 5fe2c704af..38cb8b93d2 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java
@@ -82,15 +82,15 @@ public enum CodanSeverity {
*/
public String toTranslatableString() {
switch (this) {
- case Info:
+ case Info:
return Messages.CodanSeverity_Info;
- case Warning:
- return Messages.CodanSeverity_Warning;
+ case Warning:
+ return Messages.CodanSeverity_Warning;
- case Error:
- default:
- return Messages.CodanSeverity_Error;
+ case Error:
+ default:
+ return Messages.CodanSeverity_Error;
}
}
}
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IChecker.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IChecker.java
index f036be1963..116f1568b4 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IChecker.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IChecker.java
@@ -51,8 +51,7 @@ public interface IChecker {
* @throws OperationCanceledException if the checker was interrupted.
* @since 2.0
*/
- boolean processResource(IResource resource, ICheckerInvocationContext context)
- throws OperationCanceledException;
+ boolean processResource(IResource resource, ICheckerInvocationContext context) throws OperationCanceledException;
/**
* Called after processing a resource.
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICheckerWithPreferences.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICheckerWithPreferences.java
index 4394703b89..d632df1225 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICheckerWithPreferences.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICheckerWithPreferences.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Alena Laskavaia
+ * Copyright (c) 2009, 2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -23,14 +23,14 @@ package org.eclipse.cdt.codan.core.model;
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same.
* </p>
- *
+ *
* @noextend This interface is not intended to be extended by clients.
*/
public interface ICheckerWithPreferences {
/**
* Implement this method to set default parameters for checkers with
* parameters.
- *
+ *
* @param problem
* - instance of problem working copy
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICodanProblemMarker.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICodanProblemMarker.java
index a2f38f913c..8a8d6d8b7d 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICodanProblemMarker.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ICodanProblemMarker.java
@@ -20,7 +20,7 @@ import org.eclipse.core.runtime.CoreException;
/**
* Instance of a problem. Intermediate representation before problem become a
* marker.
- *
+ *
* @since 2.0
*/
public interface ICodanProblemMarker {
@@ -34,14 +34,14 @@ public interface ICodanProblemMarker {
/**
* Returns problem of which type this instance is created
- *
+ *
* @return problem
*/
public IProblem getProblem();
/**
* Resource on which this problem instance is created
- *
+ *
* @return resource
*/
public IResource getResource();
@@ -49,7 +49,7 @@ public interface ICodanProblemMarker {
/**
* Creates a maker on a resource represented by location, which attributes
* that this instance carries
- *
+ *
* @return marker
* @throws CoreException
*/
@@ -58,7 +58,7 @@ public interface ICodanProblemMarker {
/**
* Create a message by applying messagePattern from a problem to a problem
* arguments
- *
+ *
* @return message
*/
public String createMessage();
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemCategory.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemCategory.java
index 9952020536..c9f40ad61f 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemCategory.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemCategory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Alena Laskavaia
+ * Copyright (c) 2009, 2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -20,28 +20,28 @@ package org.eclipse.cdt.codan.core.model;
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same.
* </p>
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IProblemCategory extends IProblemElement {
/**
* Category name
- *
+ *
* @return category name
*/
String getName();
/**
* Unique category id
- *
+ *
* @return id
*/
String getId();
/**
* Category children (other categories or problems)
- *
+ *
* @return children of the category
*/
IProblemElement[] getChildren();
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemElement.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemElement.java
index eb903a2b6e..71539b79c8 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemElement.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemElement.java
@@ -16,14 +16,14 @@ package org.eclipse.cdt.codan.core.model;
/**
* Problem element represents problem category {@link IProblemCategory} or
* problem {@link IProblem}
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IProblemElement extends Cloneable {
/**
* clone method should be implemented to support problem cloning
- *
+ *
* @see {@link Object#clone}
* @return new object which is copy of this one
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemMultiple.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemMultiple.java
index 17d1afd96a..3fd507e330 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemMultiple.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemMultiple.java
@@ -16,12 +16,12 @@ package org.eclipse.cdt.codan.core.model;
/**
* Additional interface to the problem kind to quiry either it supports multiple
* instances or not
- *
+ *
* @since 2.0
*/
public interface IProblemMultiple {
/**
- *
+ *
* @return true if problem can be replicated by the user, i.e. multiple is
* true in the extension
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemReporterPersistent.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemReporterPersistent.java
index 2b26faedc1..90d288513c 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemReporterPersistent.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemReporterPersistent.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Alena Laskavaia
+ * Copyright (c) 2009, 2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -18,7 +18,7 @@ import org.eclipse.core.resources.IResource;
/**
* IProblemReporterPersistent - interface to report problems, which are
* persistent, ex. markers
- *
+ *
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
@@ -28,7 +28,7 @@ import org.eclipse.core.resources.IResource;
public interface IProblemReporterPersistent extends IProblemReporter {
/**
* Delete all problems associated with resource created by given checker
- *
+ *
* @param resource
* @param checker
*/
@@ -36,7 +36,7 @@ public interface IProblemReporterPersistent extends IProblemReporter {
/**
* Delete all problems associated with resource
- *
+ *
* @param resource
*/
public void deleteProblems(IResource resource);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java
index a6927178d6..4d30e908fb 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java
@@ -17,13 +17,13 @@ import org.eclipse.cdt.codan.core.param.IProblemPreference;
/**
* Modifiable problem.
- *
+ *
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same.
* </p>
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
@@ -31,14 +31,14 @@ public interface IProblemWorkingCopy extends IProblem {
/**
* Set severity for this this problem instance. Severity can only be changed
* in profile not by checker when printing problems.
- *
+ *
* @param sev - codan severity
*/
void setSeverity(CodanSeverity sev);
/**
* Sets checker enablement.
- *
+ *
* @param enabled - true if problem is enabled in profile
*/
void setEnabled(boolean enabled);
@@ -47,7 +47,7 @@ public interface IProblemWorkingCopy extends IProblem {
* Sets default message pattern. UI would call this method if user does not
* like default settings, checker should not use method, default message
* pattern should be set in checker extension
- *
+ *
* @param messagePattern - java style message patter, e.g.
* "Variable {0} is never used".
*/
@@ -57,15 +57,15 @@ public interface IProblemWorkingCopy extends IProblem {
* Sets value for the checker parameter, checker may set value during
* initialization only, which would the default. User control this values
* through ui later.
- *
+ *
* @param pref - preference to set
- *
+ *
*/
public void setPreference(IProblemPreference pref);
/**
* Sets problem description
- *
+ *
* @param desc - problem description - short version, but longer than name
*/
public void setDescription(String desc);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ProblemProfileChangeEvent.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ProblemProfileChangeEvent.java
index c44f1e3e9a..1ed6d47073 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ProblemProfileChangeEvent.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/ProblemProfileChangeEvent.java
@@ -48,7 +48,8 @@ public final class ProblemProfileChangeEvent extends EventObject {
* @param oldValue the old preference value
* @param newValue the new preference value
*/
- public ProblemProfileChangeEvent(IProblemProfile profile, Object resource, String key, Object oldValue, Object newValue) {
+ public ProblemProfileChangeEvent(IProblemProfile profile, Object resource, String key, Object oldValue,
+ Object newValue) {
super(resource);
this.key = key;
this.newValue = newValue;
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBasicBlock.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBasicBlock.java
index 8d5ee14f96..fbfc9b9bea 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBasicBlock.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBasicBlock.java
@@ -17,14 +17,14 @@ package org.eclipse.cdt.codan.core.model.cfg;
* Control flow graph's basic block node - super interface of all nodes.
* It has set on incoming nodes and outgoing nodes.
* <p/>
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IBasicBlock {
/**
* Incoming nodes - nodes that executed immediately before this one
- *
+ *
* @return array of incoming nodes, empty array of none
*/
IBasicBlock[] getIncomingNodes();
@@ -32,7 +32,7 @@ public interface IBasicBlock {
/**
* Outgoing nodes - where control would be passed. Can be more than one if
* node is condition.
- *
+ *
* @return array of outgoing nodes, empty of none
*/
IBasicBlock[] getOutgoingNodes();
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBranchNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBranchNode.java
index b065748164..6ff55601c2 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBranchNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IBranchNode.java
@@ -16,7 +16,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
/**
* Node that represent empty operator with label, such as case branch or label
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ICfgData.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ICfgData.java
index f46f1a65fb..b02a3bfc89 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ICfgData.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ICfgData.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009,2010 Alena Laskavaia
+ * Copyright (c) 2009,2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -16,7 +16,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
/**
* Interface to access data object that control flow graph block carries,
* usually it is an ast node.
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
@@ -28,7 +28,7 @@ public interface ICfgData {
/**
* Sets data object for the node
- *
+ *
* @param data
*/
public abstract void setData(Object data);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IConnectorNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IConnectorNode.java
index c2aeb9df71..2bcc3c89fd 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IConnectorNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IConnectorNode.java
@@ -16,7 +16,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
/**
* Connector node has multiple incoming branches and single outgoing.
* Incoming nodes are usually instance of {@link IJumpNode}
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IControlFlowGraph.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IControlFlowGraph.java
index f333426f54..5e93fe1ca6 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IControlFlowGraph.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IControlFlowGraph.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Alena Laskavaia
+ * Copyright (c) 2009, 2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -32,7 +32,7 @@ import java.util.Iterator;
* change of control direction
* <li> {@link IBranchNode} - usually node where decision node connect to,
* labels represent a way where controls goes to
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IDecisionNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IDecisionNode.java
index ea24f476de..eeecec8c91 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IDecisionNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IDecisionNode.java
@@ -14,18 +14,18 @@
package org.eclipse.cdt.codan.core.model.cfg;
/**
- *
+ *
* Interface for decision node. This node represent condition node in the graph,
* it has one incoming arc and many outgoing, each of outgoing node should be
* IBranchNode
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IDecisionNode extends IBasicBlock, ISingleIncoming {
/**
* Node where branches of decision node merge
- *
+ *
* @return the "merge" node
*/
IConnectorNode getMergeNode();
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IExitNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IExitNode.java
index 945dc16dd3..362a841f25 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IExitNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IExitNode.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Alena Laskavaia
+ * Copyright (c) 2009, 2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -16,7 +16,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
/**
* Exit node of the graph. Usually return from the function, can also be throw
* or abort, such at exit(0) call.
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IJumpNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IJumpNode.java
index 8616d0511b..2c2c6f1f5d 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IJumpNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IJumpNode.java
@@ -17,7 +17,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
* Node that changes the control of the graph, i.e. passes control to non-next
* statement. Can be used to implement gotos, break, continue, end of branches.
* Outgoing node is always {@link IConnectorNode}
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/INodeFactory.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/INodeFactory.java
index 6494228ac7..80913a5f04 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/INodeFactory.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/INodeFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Alena Laskavaia
+ * Copyright (c) 2009, 2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -15,7 +15,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
/**
* Control Flow Graph Node factory
- *
+ *
* @noextend This interface is not intended to be extended by clients.
*/
public interface INodeFactory {
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IPlainNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IPlainNode.java
index 06f18d8c76..5b62a92c19 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IPlainNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IPlainNode.java
@@ -16,7 +16,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
/**
* Has one incoming, one outgoing connection. Usually expression statement or
* declaration.
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleIncoming.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleIncoming.java
index 23bdcdc876..a0034b62d7 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleIncoming.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleIncoming.java
@@ -15,7 +15,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
/**
* Node with one incoming arc
- *
+ *
* @noextend This interface is not intended to be extended by clients.
*/
public interface ISingleIncoming {
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleOutgoing.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleOutgoing.java
index c709f73d9d..49abcb721f 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleOutgoing.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/ISingleOutgoing.java
@@ -15,7 +15,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
/**
* Node with one outgoing arc
- *
+ *
* @noextend This interface is not intended to be extended by clients.
*/
public interface ISingleOutgoing {
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IStartNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IStartNode.java
index ed5e1f8c2d..cdca22ae69 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IStartNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/cfg/IStartNode.java
@@ -17,7 +17,7 @@ package org.eclipse.cdt.codan.core.model.cfg;
* Start node of the control flow graph. Each graph has only one start node. It
* has no incoming arcs and one outgoing arc. It also contains iterator for
* function exit nodes.
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java
index e352891180..a603d5d819 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java
@@ -65,7 +65,8 @@ public abstract class AbstractProblemPreference implements IProblemPreference {
if (isValidIdentifier(key))
this.key = key;
else
- throw new IllegalArgumentException("Key must have java identifier syntax or number, i.e no dots and other funky stuff: " + key); //$NON-NLS-1$
+ throw new IllegalArgumentException(
+ "Key must have java identifier syntax or number, i.e no dots and other funky stuff: " + key); //$NON-NLS-1$
}
protected boolean isValidIdentifier(String id) {
@@ -213,7 +214,7 @@ public abstract class AbstractProblemPreference implements IProblemPreference {
* @return true when value if default (usually don't require storage in this case)
* @since 2.0
*/
- public boolean isDefault(){
+ public boolean isDefault() {
return false;
}
}
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java
index ced90b26b2..ebf1cb87c0 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2012 Alena Laskavaia
+ * Copyright (c) 2009, 2012 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -20,9 +20,9 @@ import java.util.regex.Pattern;
/**
* Preference representing a problem preference of a basic type.
- *
+ *
* @see IProblemPreferenceDescriptor.PreferenceType for types.
- *
+ *
*/
public class BasicProblemPreference extends AbstractProblemPreference {
protected Object value;
@@ -35,7 +35,7 @@ public class BasicProblemPreference extends AbstractProblemPreference {
/**
* Set preferene type
- *
+ *
* @param type
*/
public void setType(PreferenceType type) {
@@ -46,7 +46,7 @@ public class BasicProblemPreference extends AbstractProblemPreference {
/**
* Generate an info with given key and label
- *
+ *
* @param key
* - property id (use in actual property hash of a checker)
* @param label
@@ -61,7 +61,7 @@ public class BasicProblemPreference extends AbstractProblemPreference {
/**
* Generate an info with given key and label
- *
+ *
* @param key
* - property id (use in actual property hash of a checker)
* @param label
@@ -93,7 +93,7 @@ public class BasicProblemPreference extends AbstractProblemPreference {
/*
* (non-Javadoc)
- *
+ *
* @see
* org.eclipse.cdt.codan.core.param.IProblemPreferenceValue#importValue(
* java.lang.String)
@@ -103,20 +103,20 @@ public class BasicProblemPreference extends AbstractProblemPreference {
if (str.startsWith("\"")) //$NON-NLS-1$
str = unescape(str);
switch (getType()) {
- case TYPE_STRING:
- setValue(str);
- break;
- case TYPE_INTEGER:
- setValue(Integer.parseInt(str));
- break;
- case TYPE_BOOLEAN:
- setValue(Boolean.valueOf(str));
- break;
- case TYPE_FILE:
- setValue(new File(str));
- break;
- default:
- throw new IllegalArgumentException(getType() + " is not supported for basic type"); //$NON-NLS-1$
+ case TYPE_STRING:
+ setValue(str);
+ break;
+ case TYPE_INTEGER:
+ setValue(Integer.parseInt(str));
+ break;
+ case TYPE_BOOLEAN:
+ setValue(Boolean.valueOf(str));
+ break;
+ case TYPE_FILE:
+ setValue(new File(str));
+ break;
+ default:
+ throw new IllegalArgumentException(getType() + " is not supported for basic type"); //$NON-NLS-1$
}
}
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/FileScopeProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/FileScopeProblemPreference.java
index b1f82299ee..f30cb20fe8 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/FileScopeProblemPreference.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/FileScopeProblemPreference.java
@@ -129,11 +129,12 @@ public class FileScopeProblemPreference extends AbstractProblemPreference {
}
@Override
- public boolean isDefault(){
- if (inclusion.length==0 && exclusion.length==0)
+ public boolean isDefault() {
+ if (inclusion.length == 0 && exclusion.length == 0)
return true;
return false;
}
+
@Override
public String exportValue() {
return exportPathList(INCLUSION, inclusion) + "," //$NON-NLS-1$
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreference.java
index 3c9413a4b9..9a8e61036e 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreference.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreference.java
@@ -17,11 +17,11 @@ package org.eclipse.cdt.codan.core.param;
* Problem preference. If problem has more than one it can be composite, i.e.
* map. Instead of implementing this interface clients must extend
* {@link AbstractProblemPreference} class.
- *
+ *
* Problem Preference constist of preference metadata
* (IProblemPreferenceDescriptor)
* and value of preference (IProblemPreferenceValue).
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeDescriptor.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeDescriptor.java
index 3d3cde5c3c..96e5dc13c0 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeDescriptor.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeDescriptor.java
@@ -15,7 +15,7 @@ package org.eclipse.cdt.codan.core.param;
/**
* Composite descriptor. For descriptors like map and list.
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
@@ -23,7 +23,7 @@ public interface IProblemPreferenceCompositeDescriptor {
/**
* Available if type is composite. Returns value of subdescriptor with the
* name of key. For the "list" type key is the number (index).
- *
+ *
* @param key
* - name of the subdescriptor.
* @return child preference of the given key
@@ -32,14 +32,14 @@ public interface IProblemPreferenceCompositeDescriptor {
/**
* Available for composite types. Returns array of children.
- *
+ *
* @return array of children. 0 size of none.
*/
IProblemPreference[] getChildDescriptors();
/**
* Add preference
- *
+ *
* @param preference
* @return added preference
*/
@@ -47,7 +47,7 @@ public interface IProblemPreferenceCompositeDescriptor {
/**
* Remove preference
- *
+ *
* @param preference
*/
void removeChildDescriptor(IProblemPreference preference);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeValue.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeValue.java
index 65a51f3b5b..76854ceece 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeValue.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceCompositeValue.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009,2010 Alena Laskavaia
+ * Copyright (c) 2009,2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -15,14 +15,14 @@ package org.eclipse.cdt.codan.core.param;
/**
* Interface for container type preferences, such as map or list
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IProblemPreferenceCompositeValue {
/**
* Returns value of the child element of a given key
- *
+ *
* @param key
* @return value of the child preference
*/
@@ -30,7 +30,7 @@ public interface IProblemPreferenceCompositeValue {
/**
* Sets the value of the child element of a given key
- *
+ *
* @param key
* @param value
*/
@@ -38,7 +38,7 @@ public interface IProblemPreferenceCompositeValue {
/**
* Removes child element matching the given key
- *
+ *
* @param key
*/
void removeChildValue(String key);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceDescriptor.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceDescriptor.java
index d560a4ac59..0f79abb2b1 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceDescriptor.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceDescriptor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Alena Laskavaia
+ * Copyright (c) 2009, 2010 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -21,14 +21,14 @@ import java.util.Map;
* Problem parameter usually key=value settings that allows to alter checker
* behaviour for given problem. For example if checker finds violation of naming
* conventions for function, parameter would be the pattern of allowed names.
- *
+ *
* IProblemPreferenceDescriptor represent preference's meta-info for the ui. If
* more than one parameter is required it can be map or list of sub-preferences.
* This is only needed for auto-generated ui for parameter
* editing. For more complex cases custom ui control should be used. Extend
* {@link AbstractProblemPreference} class
* to implement this interface.
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
@@ -115,7 +115,7 @@ public interface IProblemPreferenceDescriptor extends Cloneable {
/**
* Key of the preference. Key must be java-like identified or number. Cannot
* contain dots. Cannot be null.
- *
+ *
* @return key
*/
String getKey();
@@ -125,7 +125,7 @@ public interface IProblemPreferenceDescriptor extends Cloneable {
* map. For list type child preference can be
* accessed by number (index), if map is the type child preference can be
* accessed by a key (string)
- *
+ *
* @return type of the preference
*/
PreferenceType getType();
@@ -134,28 +134,28 @@ public interface IProblemPreferenceDescriptor extends Cloneable {
* Additional info on how it is represented in the ui, for example boolean
* can be represented as checkbox, drop-down and so on, Values TBD.
* Not supported at the moment.
- *
+ *
* @return ui info or null if not set
*/
String getUiInfo();
/**
* User visible label for the parameter control in UI
- *
+ *
* @return the label
*/
String getLabel();
/**
* Detailed explanation of parameter. Not supported at the moment.
- *
+ *
* @return the toolTip text
*/
String getToolTip();
/**
* default clone implementation
- *
+ *
* @return clone of the object
*/
Object clone();
@@ -167,7 +167,7 @@ public interface IProblemPreferenceDescriptor extends Cloneable {
/**
* Combined key of values from parents plus itself separated by dot
- *
+ *
* @return qualified key
*/
String getQualifiedKey();
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceValue.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceValue.java
index 842d0523a2..fcf1c4a58f 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceValue.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/IProblemPreferenceValue.java
@@ -17,14 +17,14 @@ package org.eclipse.cdt.codan.core.param;
* Value of the problem preference. If more than one it can be composite, i.e.
* map.Extend {@link AbstractProblemPreference} class
* to implement this interface.
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IProblemPreferenceValue extends Cloneable {
/**
* Get value of preference.
- *
+ *
* @return object that represents the value. Limited number of object types
* are allowed.
* @see IProblemPreferenceDescriptor.PreferenceType
@@ -33,7 +33,7 @@ public interface IProblemPreferenceValue extends Cloneable {
/**
* Set value of preference represented by this object.
- *
+ *
* @param value
*/
void setValue(Object value);
@@ -41,14 +41,14 @@ public interface IProblemPreferenceValue extends Cloneable {
/**
* Export value in string representation required for storing in eclipse
* preferences.
- *
+ *
* @return string representation of the value
*/
String exportValue();
/**
* Import value from string into internal object state.
- *
+ *
* @param str
* - string from preferences, previously exported by exportValue
* method.
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java
index 7d6970a5b9..6ed92ddd65 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java
@@ -220,7 +220,8 @@ public class ListProblemPreference extends AbstractProblemPreference
@Override
public void importValue(String str) {
- if (str.isEmpty()) return;
+ if (str.isEmpty())
+ return;
StreamTokenizer tokenizer = getImportTokenizer(str);
try {
importValue(tokenizer);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java
index 43bc5e7d2d..0ef0cbc615 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java
@@ -38,7 +38,8 @@ import org.eclipse.cdt.codan.core.model.AbstractCheckerWithProblemPreferences;
*/
public class MapProblemPreference extends AbstractProblemPreference
implements IProblemPreferenceCompositeValue, IProblemPreferenceCompositeDescriptor {
- private Map<String, IProblemPreference> hash = Collections.synchronizedMap(new LinkedHashMap<String, IProblemPreference>());
+ private Map<String, IProblemPreference> hash = Collections
+ .synchronizedMap(new LinkedHashMap<String, IProblemPreference>());
/**
* Default constructor
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CharOperation.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CharOperation.java
index 37e7767c12..7e0399874b 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CharOperation.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CharOperation.java
@@ -1320,14 +1320,14 @@ public final class CharOperation {
*/
public static boolean isWhitespace(char c) {
switch (c) {
- case 10: /* \ u000a: LINE FEED */
- case 12: /* \ u000c: FORM FEED */
- case 13: /* \ u000d: CARRIAGE RETURN */
- case 32: /* \ u0020: SPACE */
- case 9: /* \ u0009: HORIZONTAL TABULATION */
- return true;
- default:
- return false;
+ case 10: /* \ u000a: LINE FEED */
+ case 12: /* \ u000c: FORM FEED */
+ case 13: /* \ u000d: CARRIAGE RETURN */
+ case 32: /* \ u0020: SPACE */
+ case 9: /* \ u0009: HORIZONTAL TABULATION */
+ return true;
+ default:
+ return false;
}
}
@@ -1712,13 +1712,13 @@ public final class CharOperation {
* @return true if the a sub-pattern matches the subpart of the given name,
* false otherwise
*/
- public static final boolean match(CharSequence pattern, int patternStart, int patternEnd,
- CharSequence name, int nameStart, int nameEnd, boolean isCaseSensitive) {
+ public static final boolean match(CharSequence pattern, int patternStart, int patternEnd, CharSequence name,
+ int nameStart, int nameEnd, boolean isCaseSensitive) {
return match(pattern, patternStart, patternEnd, name, nameStart, nameEnd, isCaseSensitive, false);
}
- public static final boolean match(CharSequence pattern, int patternStart, int patternEnd,
- CharSequence name, int nameStart, int nameEnd, boolean isCaseSensitive, boolean allowEscaping) {
+ public static final boolean match(CharSequence pattern, int patternStart, int patternEnd, CharSequence name,
+ int nameStart, int nameEnd, boolean isCaseSensitive, boolean allowEscaping) {
if (name == null)
return false; // null name cannot match
if (pattern == null)
@@ -1732,7 +1732,8 @@ public final class CharOperation {
/* check first segment */
char patternChar = 0;
boolean isEscaped = false;
- while ((iPattern < patternEnd) && ((patternChar = pattern.charAt(iPattern)) != '*' || (patternChar == '*' && isEscaped))) {
+ while ((iPattern < patternEnd)
+ && ((patternChar = pattern.charAt(iPattern)) != '*' || (patternChar == '*' && isEscaped))) {
if (allowEscaping && pattern.charAt(iPattern) == '\\' && !isEscaped) {
iPattern++;
isEscaped = true;
@@ -1741,8 +1742,8 @@ public final class CharOperation {
isEscaped = false;
if (iName == nameEnd)
return false;
- if (patternChar != (isCaseSensitive ? name.charAt(iName) : Character.toLowerCase(name.charAt(iName))) &&
- patternChar != '?') {
+ if (patternChar != (isCaseSensitive ? name.charAt(iName) : Character.toLowerCase(name.charAt(iName)))
+ && patternChar != '?') {
return false;
}
iName++;
@@ -1773,8 +1774,8 @@ public final class CharOperation {
continue checkSegment;
}
/* check current name character */
- if ((isCaseSensitive ? name.charAt(iName) : Character.toLowerCase(name.charAt(iName))) != patternChar &&
- patternChar != '?') {
+ if ((isCaseSensitive ? name.charAt(iName) : Character.toLowerCase(name.charAt(iName))) != patternChar
+ && patternChar != '?') {
iPattern = segmentStart; // mismatch - restart current segment
iName = ++prefixStart;
continue checkSegment;
@@ -1816,7 +1817,8 @@ public final class CharOperation {
* @return true if the pattern matches the filepath using the pathSepatator,
* false otherwise
*/
- public static final boolean pathMatch(CharSequence pattern, CharSequence filepath, boolean isCaseSensitive, char pathSeparator) {
+ public static final boolean pathMatch(CharSequence pattern, CharSequence filepath, boolean isCaseSensitive,
+ char pathSeparator) {
if (filepath == null)
return false; // null name cannot match
if (pattern == null)
@@ -1850,14 +1852,13 @@ public final class CharOperation {
if (fSegmentEnd < 0)
fSegmentEnd = fLength;
// first segments
- while (pSegmentStart < pLength
- && !freeLeadingDoubleStar
- && !(pSegmentEnd == pLength && freeTrailingDoubleStar ||
- (pSegmentEnd == pSegmentStart + 2 && pattern.charAt(pSegmentStart) == '*' &&
- pattern.charAt(pSegmentStart + 1) == '*'))) {
+ while (pSegmentStart < pLength && !freeLeadingDoubleStar
+ && !(pSegmentEnd == pLength && freeTrailingDoubleStar || (pSegmentEnd == pSegmentStart + 2
+ && pattern.charAt(pSegmentStart) == '*' && pattern.charAt(pSegmentStart + 1) == '*'))) {
if (fSegmentStart >= fLength)
return false;
- if (!CharOperation.match(pattern, pSegmentStart, pSegmentEnd, filepath, fSegmentStart, fSegmentEnd, isCaseSensitive)) {
+ if (!CharOperation.match(pattern, pSegmentStart, pSegmentEnd, filepath, fSegmentStart, fSegmentEnd,
+ isCaseSensitive)) {
return false;
}
// jump to next segment
@@ -1872,9 +1873,8 @@ public final class CharOperation {
}
/* check sequence of doubleStar+segment */
int pSegmentRestart;
- if ((pSegmentStart >= pLength && freeTrailingDoubleStar)
- || (pSegmentEnd == pSegmentStart + 2 && pattern.charAt(pSegmentStart) == '*' &&
- pattern.charAt(pSegmentStart + 1) == '*')) {
+ if ((pSegmentStart >= pLength && freeTrailingDoubleStar) || (pSegmentEnd == pSegmentStart + 2
+ && pattern.charAt(pSegmentStart) == '*' && pattern.charAt(pSegmentStart + 1) == '*')) {
pSegmentEnd = CharOperation.indexOf(pathSeparator, pattern, pSegmentStart = pSegmentEnd + 1);
// skip separator
if (pSegmentEnd < 0)
@@ -1907,8 +1907,8 @@ public final class CharOperation {
continue checkSegment;
}
/* path segment is ending */
- if (pSegmentEnd == pSegmentStart + 2 && pattern.charAt(pSegmentStart) == '*' &&
- pattern.charAt(pSegmentStart + 1) == '*') {
+ if (pSegmentEnd == pSegmentStart + 2 && pattern.charAt(pSegmentStart) == '*'
+ && pattern.charAt(pSegmentStart + 1) == '*') {
pSegmentEnd = CharOperation.indexOf(pathSeparator, pattern, pSegmentStart = pSegmentEnd + 1);
// skip separator
if (pSegmentEnd < 0)
@@ -1920,7 +1920,8 @@ public final class CharOperation {
continue checkSegment;
}
/* chech current path segment */
- if (!CharOperation.match(pattern, pSegmentStart, pSegmentEnd, filepath, fSegmentStart, fSegmentEnd, isCaseSensitive)) {
+ if (!CharOperation.match(pattern, pSegmentStart, pSegmentEnd, filepath, fSegmentStart, fSegmentEnd,
+ isCaseSensitive)) {
// mismatch - restart current path segment
pSegmentEnd = CharOperation.indexOf(pathSeparator, pattern, pSegmentStart = pSegmentRestart);
if (pSegmentEnd < 0)
@@ -1948,8 +1949,8 @@ public final class CharOperation {
fSegmentEnd = fLength;
}
return (pSegmentRestart >= pSegmentEnd) || (fSegmentStart >= fLength && pSegmentStart >= pLength)
- || (pSegmentStart == pLength - 2 && pattern.charAt(pSegmentStart) == '*' &&
- pattern.charAt(pSegmentStart + 1) == '*')
+ || (pSegmentStart == pLength - 2 && pattern.charAt(pSegmentStart) == '*'
+ && pattern.charAt(pSegmentStart + 1) == '*')
|| (pSegmentStart == pLength && freeTrailingDoubleStar);
}
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckerInvocationContext.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckerInvocationContext.java
index ff5be864d7..deeed71413 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckerInvocationContext.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckerInvocationContext.java
@@ -59,7 +59,7 @@ public class CheckerInvocationContext implements ICheckerInvocationContext {
public synchronized <T extends ICodanDisposable> void add(T object) {
Object old = objectStorage.put(object.getClass(), object);
if (old != null && object != old) {
- objectStorage.put(old.getClass(), old); // Restore old value.
+ objectStorage.put(old.getClass(), old); // Restore old value.
throw new IllegalArgumentException();
}
}
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegistry.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegistry.java
index 8b78490c60..c49e47126b 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegistry.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegistry.java
@@ -340,11 +340,9 @@ public class CheckersRegistry implements Iterable<IChecker>, ICheckersRegistry {
((ProblemProfile) wp).setResource(ResourcesPlugin.getWorkspace());
// load default values
CodanPreferencesLoader loader = new CodanPreferencesLoader(wp);
- Preferences[] preferences = {
- InstanceScope.INSTANCE.getNode(CodanCorePlugin.PLUGIN_ID),
+ Preferences[] preferences = { InstanceScope.INSTANCE.getNode(CodanCorePlugin.PLUGIN_ID),
ConfigurationScope.INSTANCE.getNode(CodanCorePlugin.PLUGIN_ID),
- DefaultScope.INSTANCE.getNode(CodanCorePlugin.PLUGIN_ID),
- };
+ DefaultScope.INSTANCE.getNode(CodanCorePlugin.PLUGIN_ID), };
loader.load(preferences);
profiles.put(ResourcesPlugin.getWorkspace(), wp);
}
@@ -371,8 +369,7 @@ public class CheckersRegistry implements Iterable<IChecker>, ICheckersRegistry {
// Load default values
CodanPreferencesLoader loader = new CodanPreferencesLoader(prof);
Preferences projectNode = CodanPreferencesLoader.getProjectNode((IProject) element);
- if (projectNode != null &&
- !projectNode.getBoolean(PreferenceConstants.P_USE_PARENT, true)) {
+ if (projectNode != null && !projectNode.getBoolean(PreferenceConstants.P_USE_PARENT, true)) {
loader.load(projectNode);
}
profiles.put(element, prof);
@@ -421,8 +418,8 @@ public class CheckersRegistry implements Iterable<IChecker>, ICheckersRegistry {
if (problem == null)
throw new IllegalArgumentException(p.getId() + " is not registered"); //$NON-NLS-1$
if (problem.isEnabled() && checker instanceof AbstractCheckerWithProblemPreferences) {
- LaunchModeProblemPreference pref =
- ((AbstractCheckerWithProblemPreferences) checker).getLaunchModePreference(problem);
+ LaunchModeProblemPreference pref = ((AbstractCheckerWithProblemPreferences) checker)
+ .getLaunchModePreference(problem);
if (pref.isRunningInMode(mode)) {
return true;
}
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersTimeStats.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersTimeStats.java
index 714e871700..94ecf856c6 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersTimeStats.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersTimeStats.java
@@ -59,6 +59,7 @@ public class CheckersTimeStats {
return String.format("%4d %4d %4.2f %4.2f%%", duration, count, ave, per); //$NON-NLS-1$
}
}
+
private Map<String, TimeRecord> records = new HashMap<String, TimeRecord>();
/**
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanBuilder.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanBuilder.java
index efeac95552..9128f1c8a4 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanBuilder.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanBuilder.java
@@ -53,17 +53,17 @@ public class CodanBuilder extends IncrementalProjectBuilder implements ICodanBui
public boolean visit(IResourceDelta delta) throws CoreException {
IResource resource = delta.getResource();
switch (delta.getKind()) {
- case IResourceDelta.ADDED:
- // Handle added resource
- processResourceDelta(resource, monitor);
- break;
- case IResourceDelta.REMOVED:
- // Handle removed resource
- break;
- case IResourceDelta.CHANGED:
- // Handle changed resource
- processResourceDelta(resource, monitor);
- break;
+ case IResourceDelta.ADDED:
+ // Handle added resource
+ processResourceDelta(resource, monitor);
+ break;
+ case IResourceDelta.REMOVED:
+ // Handle removed resource
+ break;
+ case IResourceDelta.CHANGED:
+ // Handle changed resource
+ processResourceDelta(resource, monitor);
+ break;
}
// Return true to continue visiting children.
return true;
@@ -123,7 +123,8 @@ public class CodanBuilder extends IncrementalProjectBuilder implements ICodanBui
@Override
public void processResource(IResource resource, IProgressMonitor monitor, CheckerLaunchMode mode, Object model) {
- if (!enabled) return;
+ if (!enabled)
+ return;
if (model != null) {
if (mode == CheckerLaunchMode.RUN_AS_YOU_TYPE)
CodanRunner.runInEditor(model, resource, monitor);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanPreferencesLoader.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanPreferencesLoader.java
index e4206fc661..6b26b6c8b1 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanPreferencesLoader.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanPreferencesLoader.java
@@ -142,7 +142,7 @@ public class CodanPreferencesLoader {
* @param storePreferences
*/
public void load(Preferences[] storePreferences) {
- IPreferencesService prefService = Platform.getPreferencesService();
+ IPreferencesService prefService = Platform.getPreferencesService();
IProblem[] probs = getProblems();
for (int i = 0; i < probs.length; i++) {
String id = probs[i].getId();
@@ -185,7 +185,7 @@ public class CodanPreferencesLoader {
* @param storePreferences
*/
private void setProblemPreferenceValues(String problemId, Preferences[] storePreferences) {
- IPreferencesService prefService = Platform.getPreferencesService();
+ IPreferencesService prefService = Platform.getPreferencesService();
IProblem prob = baseModel.findProblem(problemId);
String prefKey = getPreferencesKey(problemId);
if (prefKey == null)
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanRunner.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanRunner.java
index 7a1028255e..837bc24e60 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanRunner.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanRunner.java
@@ -36,7 +36,8 @@ import org.eclipse.osgi.util.NLS;
*/
public class CodanRunner {
/** Do not instantiate. All methods are static */
- private CodanRunner() {}
+ private CodanRunner() {
+ }
/**
* Runs all checkers that support "run as you type" mode.
@@ -61,8 +62,8 @@ public class CodanRunner {
processResource(resource, null, checkerLaunchMode, monitor);
}
- private static void processResource(IResource resource, Object model,
- CheckerLaunchMode checkerLaunchMode, IProgressMonitor monitor) {
+ private static void processResource(IResource resource, Object model, CheckerLaunchMode checkerLaunchMode,
+ IProgressMonitor monitor) {
CheckersRegistry chegistry = CheckersRegistry.getInstance();
int checkers = chegistry.getCheckersSize();
IResource[] children = null;
@@ -113,8 +114,8 @@ public class CodanRunner {
//CheckersTimeStats.getInstance().printStats();
}
- if (children != null &&
- (checkerLaunchMode == CheckerLaunchMode.RUN_ON_FULL_BUILD || checkerLaunchMode == CheckerLaunchMode.RUN_ON_DEMAND)) {
+ if (children != null && (checkerLaunchMode == CheckerLaunchMode.RUN_ON_FULL_BUILD
+ || checkerLaunchMode == CheckerLaunchMode.RUN_ON_DEMAND)) {
for (IResource child : children) {
if (monitor.isCanceled())
return;
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/PreferenceInitializer.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/PreferenceInitializer.java
index 57b90ea2cb..47ac8270e5 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/PreferenceInitializer.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/PreferenceInitializer.java
@@ -26,8 +26,8 @@ import org.eclipse.core.runtime.preferences.IEclipsePreferences;
public class PreferenceInitializer extends AbstractPreferenceInitializer {
@Override
public void initializeDefaultPreferences() {
- IEclipsePreferences node =
- DefaultScope.INSTANCE.getNode(CodanCorePlugin.getDefault().getBundle().getSymbolicName());
+ IEclipsePreferences node = DefaultScope.INSTANCE
+ .getNode(CodanCorePlugin.getDefault().getBundle().getSymbolicName());
node.putBoolean(PreferenceConstants.P_RUN_ON_BUILD, false);
node.putBoolean(PreferenceConstants.P_RUN_IN_EDITOR, true);
node.putBoolean(PreferenceConstants.P_USE_PARENT, true);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractBasicBlock.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractBasicBlock.java
index 3eb3ca0866..965e4b458d 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractBasicBlock.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractBasicBlock.java
@@ -38,14 +38,14 @@ public abstract class AbstractBasicBlock implements IBasicBlock, ICfgData {
/**
* Add a node to list of outgoing nodes of this node
- *
+ *
* @param node - node to add
*/
public abstract void addOutgoing(IBasicBlock node);
/**
* Add a node to list of incoming nodes of this node
- *
+ *
* @param node - node to add
*/
public abstract void addIncoming(IBasicBlock node);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleIncomingNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleIncomingNode.java
index 20304d02a7..1d1722f077 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleIncomingNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleIncomingNode.java
@@ -37,7 +37,7 @@ public abstract class AbstractSingleIncomingNode extends AbstractBasicBlock impl
@Override
public int getIncomingSize() {
- return prev!=null?1:0;
+ return prev != null ? 1 : 0;
}
@Override
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleOutgoingNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleOutgoingNode.java
index d4cfccb0f8..4bc7870168 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleOutgoingNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/AbstractSingleOutgoingNode.java
@@ -18,7 +18,7 @@ import org.eclipse.cdt.codan.core.model.cfg.ISingleOutgoing;
/**
* Abstract implementation of basic block with single outgoing arc (node)
- *
+ *
*/
public abstract class AbstractSingleOutgoingNode extends AbstractBasicBlock implements ISingleOutgoing {
private IBasicBlock next;
@@ -47,7 +47,7 @@ public abstract class AbstractSingleOutgoingNode extends AbstractBasicBlock impl
/**
* Sets outgoing node
- *
+ *
* @param node
*/
public void setOutgoing(IBasicBlock node) {
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/BranchNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/BranchNode.java
index 495f518e26..5dddf49f62 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/BranchNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/BranchNode.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2012 Alena Laskavaia
+ * Copyright (c) 2009, 2012 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ConnectorNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ConnectorNode.java
index 65d54f4d1b..bb9317989a 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ConnectorNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ConnectorNode.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2012 Alena Laskavaia
+ * Copyright (c) 2009, 2012 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -36,7 +36,7 @@ public class ConnectorNode extends AbstractSingleOutgoingNode implements IConnec
/*
* (non-Javadoc)
- *
+ *
* @seeorg.eclipse.cdt.codan.provisional.core.model.cfg.IBasicBlock#
* getIncomingIterator()
*/
@@ -47,7 +47,7 @@ public class ConnectorNode extends AbstractSingleOutgoingNode implements IConnec
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.cdt.codan.core.model.cfg.IBasicBlock#getIncomingSize ()
*/
@Override
@@ -57,7 +57,7 @@ public class ConnectorNode extends AbstractSingleOutgoingNode implements IConnec
/*
* (non-Javadoc)
- *
+ *
* @seeorg.eclipse.cdt.codan.provisional.core.model.cfg.IConnectorNode#
* hasBackwardIncoming()
*/
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java
index 9eca42441d..bae7880dab 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java
@@ -171,7 +171,7 @@ public class ControlFlowGraph implements IControlFlowGraph {
if (result.contains(start))
return;
if (liveNodes.contains(start))
- return; // a live node is by definition not dead
+ return; // a live node is by definition not dead
result.add(start);
for (IBasicBlock bb : start.getOutgoingNodes()) {
getDeadNodes(bb, result, liveNodes);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/JumpNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/JumpNode.java
index 82241c5384..eefdefd1bf 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/JumpNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/JumpNode.java
@@ -20,7 +20,7 @@ import org.eclipse.cdt.codan.core.model.cfg.IJumpNode;
/**
* Jump node is node that connects unusual control pass, such as goto, break and
* continue
- *
+ *
*/
public class JumpNode extends AbstractSingleIncomingNode implements IJumpNode {
private IConnectorNode jump;
@@ -42,7 +42,7 @@ public class JumpNode extends AbstractSingleIncomingNode implements IJumpNode {
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.cdt.codan.core.model.cfg.IJumpNode#getJumpNode()
*/
@Override
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/PlainNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/PlainNode.java
index fed982b941..84b6245e57 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/PlainNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/PlainNode.java
@@ -18,7 +18,7 @@ import org.eclipse.cdt.codan.core.model.cfg.IPlainNode;
/**
* Plain node has one incoming arc and one outgoing arc
- *
+ *
*/
public class PlainNode extends AbstractSingleIncomingNode implements IPlainNode {
protected IBasicBlock next;
@@ -50,7 +50,7 @@ public class PlainNode extends AbstractSingleIncomingNode implements IPlainNode
/*
* (non-Javadoc)
- *
+ *
* @see
* org.eclipse.cdt.codan.internal.core.cfg.AbstractBasicBlock#addOutgoing
* (org.eclipse.cdt.codan.core.model.cfg.IBasicBlock)
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/StartNode.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/StartNode.java
index 3da0ae1cb2..44ce684e5f 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/StartNode.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/StartNode.java
@@ -18,7 +18,7 @@ import org.eclipse.cdt.codan.core.model.cfg.IStartNode;
/**
* Start node has no incoming, one outgoing and it is connect to function exits
- *
+ *
*/
public class StartNode extends AbstractSingleOutgoingNode implements IStartNode {
protected StartNode() {
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 d8aba91848..57b218c909 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
@@ -104,8 +104,8 @@ public class CodanMarkerProblemReporter extends AbstractProblemReporter
@Override
public void deleteAllProblems() {
try {
- ResourcesPlugin.getWorkspace().getRoot().deleteMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE,
- true, IResource.DEPTH_INFINITE);
+ ResourcesPlugin.getWorkspace().getRoot().deleteMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE, true,
+ IResource.DEPTH_INFINITE);
} catch (CoreException e) {
CodanCorePlugin.log(e);
}
@@ -132,14 +132,12 @@ public class CodanMarkerProblemReporter extends AbstractProblemReporter
Collection<IMarker> res = new ArrayList<>();
IMarker[] markers;
if (resource.exists()) {
- markers = resource.findMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE, true,
- IResource.DEPTH_INFINITE);
+ markers = resource.findMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE, true, IResource.DEPTH_INFINITE);
} else {
if (resource.getProject() == null || !resource.getProject().isAccessible())
return res;
// non resource markers attached to a project itself
- markers = resource.getProject().findMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE, true,
- IResource.DEPTH_ZERO);
+ markers = resource.getProject().findMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE, true, IResource.DEPTH_ZERO);
}
ICheckersRegistry reg = CodanRuntime.getInstance().getCheckersRegistry();
Collection<IProblem> problems = reg.getRefProblems(checker);
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemCategory.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemCategory.java
index a17b6ceda8..8951f69574 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemCategory.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemCategory.java
@@ -83,7 +83,7 @@ public class CodanProblemCategory extends CodanProblemElement implements IProble
/**
* Find all categories in which problem with id present
- *
+ *
* @param c - root category
* @param id - problem id
* @return list of categories
@@ -125,7 +125,7 @@ public class CodanProblemCategory extends CodanProblemElement implements IProble
/*
* (non-Javadoc)
- *
+ *
* @see java.lang.Object#clone()
*/
@Override
@@ -149,7 +149,7 @@ public class CodanProblemCategory extends CodanProblemElement implements IProble
/*
* (non-Javadoc)
- *
+ *
* @see
* org.eclipse.cdt.codan.internal.core.model.CodanProblemElement#setProfile
* (org.eclipse.cdt.codan.core.model.IProblemProfile)
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemMarker.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemMarker.java
index 658d9f2159..0b2cab1aa4 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemMarker.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanProblemMarker.java
@@ -89,7 +89,8 @@ public class CodanProblemMarker implements ICodanProblemMarker {
marker.setAttribute(IMarker.CHAR_START, loc.getStartingChar());
String propArgs = serializeArgs(args);
marker.setAttribute(PROBLEM_ARGS, propArgs);
- IProblemCategory[] cats = CodanProblemCategory.findProblemCategories(getProfile(file).getRoot(), problem.getId());
+ IProblemCategory[] cats = CodanProblemCategory.findProblemCategories(getProfile(file).getRoot(),
+ problem.getId());
String cat = cats.length > 0 ? cats[0].getId() : ""; //$NON-NLS-1$
marker.setAttribute(CATEGORY, cat);
return marker;

Back to the top