summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Ruiz2012-02-21 18:18:56 (EST)
committerSergey Prigogin2012-02-23 16:26:24 (EST)
commitd7f5c2bd7cad5b922d205a1f3f832d7d07576d92 (patch)
treea03f06acddde62a7e64dfd7265658bfee1e36c8d
parent00c29ec7eb32e3120d1023bfc3252d2f80fd7f01 (diff)
downloadorg.eclipse.cdt-d7f5c2bd7cad5b922d205a1f3f832d7d07576d92.zip
org.eclipse.cdt-d7f5c2bd7cad5b922d205a1f3f832d7d07576d92.tar.gz
org.eclipse.cdt-d7f5c2bd7cad5b922d205a1f3f832d7d07576d92.tar.bz2
Minor code cleanup.
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/externaltool/CppcheckOutputParser.java3
-rw-r--r--codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/internal/core/externaltool/ExternalToolInvokerTest.java1
2 files changed, 1 insertions, 3 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/externaltool/CppcheckOutputParser.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/externaltool/CppcheckOutputParser.java
index 81a237d..5329532 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/externaltool/CppcheckOutputParser.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/externaltool/CppcheckOutputParser.java
@@ -29,7 +29,7 @@ import org.eclipse.core.resources.IFile;
* @since 1.1
*/
public class CppcheckOutputParser extends AbstractOutputParser {
- // the pattern for parsing the message is:
+ // sample line to parse:
//
// [/src/HelloWorld.cpp:19]: (style) The scope of the variable 'i' can be reduced
// ----------1--------- -2 --3-- ------------------4-------------------------
@@ -39,7 +39,6 @@ public class CppcheckOutputParser extends AbstractOutputParser {
// 2: line where problem was found
// 3: problem severity
// 4: problem description
-
private static Pattern pattern = Pattern.compile("\\[(.*):(\\d+)\\]:\\s*\\((.*)\\)\\s*(.*)"); //$NON-NLS-1$
private final InvocationParameters parameters;
diff --git a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/internal/core/externaltool/ExternalToolInvokerTest.java b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/internal/core/externaltool/ExternalToolInvokerTest.java
index 0aa87c6..87f88f6 100644
--- a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/internal/core/externaltool/ExternalToolInvokerTest.java
+++ b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/internal/core/externaltool/ExternalToolInvokerTest.java
@@ -102,7 +102,6 @@ public class ExternalToolInvokerTest extends CodanTestCase {
// };
public void testInvokesProcessCorrectly() throws Throwable {
String aboveComment = getAboveComment();
- System.out.println(aboveComment);
loadcode(aboveComment);
String expectedCommand = expectedCommand();
InvocationParameters parameters = new InvocationParameters(currentIFile, currentIFile,