Change log.error to System.err.
This commit is contained in:
+1
-1
@@ -214,7 +214,7 @@ public class FixedViolationHunkParser extends FixedViolationParser {
|
||||
}
|
||||
if (bugEndLine - bugStartLine > Configuration.HUNK_SIZE || fixEndLine - fixStartLine > Configuration.HUNK_SIZE) {
|
||||
this.largeHunk ++;
|
||||
log.error("#LargeHunk: " + revFile.getName());
|
||||
System.err.println("#LargeHunk: " + revFile.getName());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@ public class FixedViolationParser extends Parser {
|
||||
if (gumTreeResults == null) {
|
||||
return null;
|
||||
} else if (gumTreeResults.size() == 0){
|
||||
log.error("#NoSourceCodeChange: " + revFile.getName());
|
||||
System.err.println("#NoSourceCodeChange: " + revFile.getName());
|
||||
return actionSets;
|
||||
} else {
|
||||
// Regroup GumTre results.
|
||||
@@ -75,7 +75,7 @@ public class FixedViolationParser extends Parser {
|
||||
actionSets = sorter.sortAscending();
|
||||
|
||||
if (actionSets.size() == 0) {
|
||||
log.error("#NoStatementChange: " + revFile.getName());
|
||||
System.err.println("#NoStatementChange: " + revFile.getName());
|
||||
}
|
||||
|
||||
return actionSets;
|
||||
|
||||
@@ -44,7 +44,7 @@ public class AkkaParser {
|
||||
|
||||
ActorSystem system = null;
|
||||
ActorRef parsingActor = null;
|
||||
int numberOfWorkers = 200;
|
||||
int numberOfWorkers = 400;
|
||||
final WorkMessage msg = new WorkMessage(0, msgFiles);
|
||||
try {
|
||||
log.info("Akka begins...");
|
||||
|
||||
@@ -89,7 +89,7 @@ public class ParseFixPatternWorker extends UntypedActor {
|
||||
File positionFile = msgFile.getPositionFile();
|
||||
if (revFile.getName().toLowerCase().contains("test")) {
|
||||
testAlarms += countAlarms(positionFile);
|
||||
log.error("#TestViolation: " + revFile.getName());
|
||||
System.err.println("#TestViolation: " + revFile.getName());
|
||||
// continue;
|
||||
}
|
||||
// Parser parser = null;
|
||||
@@ -121,7 +121,7 @@ public class ParseFixPatternWorker extends UntypedActor {
|
||||
if ("".equals(editScript)) {
|
||||
if (parser.resultType == 1) {
|
||||
nullGumTreeResults += countAlarms(positionFile);
|
||||
log.error("#NullGumTreeResult: " + revFile.getName());
|
||||
System.err.println("#NullGumTreeResult: " + revFile.getName());
|
||||
} else if (parser.resultType == 2) {
|
||||
noSourceCodeChanges += countAlarms(positionFile);
|
||||
}
|
||||
@@ -154,15 +154,15 @@ public class ParseFixPatternWorker extends UntypedActor {
|
||||
// err.println("task timed out");
|
||||
future.cancel(true);
|
||||
expNums += countAlarms(positionFile);
|
||||
log.error("#Timeout: " + revFile.getName());
|
||||
System.err.println("#Timeout: " + revFile.getName());
|
||||
} catch (InterruptedException e) {
|
||||
expNums += countAlarms(positionFile);
|
||||
// err.println("task interrupted");
|
||||
log.error("#TimeInterrupted: " + revFile.getName());
|
||||
System.err.println("#TimeInterrupted: " + revFile.getName());
|
||||
} catch (ExecutionException e) {
|
||||
expNums += countAlarms(positionFile);
|
||||
// err.println("task aborted");
|
||||
log.error("#TimeAborted: " + revFile.getName());
|
||||
System.err.println("#TimeAborted: " + revFile.getName());
|
||||
} finally {
|
||||
executor.shutdownNow();
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@ public class HunkActionFilter {
|
||||
violation.getActionSets().addAll(matchedActionSets);
|
||||
selectedViolations.add(violation);
|
||||
} else {
|
||||
log.error("#NullMatchedGumTreeResult: " + revFile.getName().replace("#", "/") + " : " +violation.getStartLineNum() + " : " +
|
||||
System.err.println("#NullMatchedGumTreeResult: " + revFile.getName().replace("#", "/") + " : " +violation.getStartLineNum() + " : " +
|
||||
violation.getEndLineNum() + " : " + violation.getAlarmType());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user