Skip to content

Commit

Permalink
Revert "HACK COMMIT NEEDS TO BE REVERTED. KRISHNA"
Browse files Browse the repository at this point in the history
This reverts commit 67b0517.
  • Loading branch information
krinara86 committed Jul 7, 2020
1 parent 67b0517 commit 539d7d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class AnalysisKickOff {

private static ResultsCCUIListener resultsReporter;
private IJavaProject curProj;
private boolean depOnly = true;
private boolean depOnly = false;

public void analyzeDependenciesOnly(final Boolean depOnly) {
this.depOnly = depOnly;
Expand Down Expand Up @@ -68,7 +68,7 @@ public boolean setUp(final IJavaElement iJavaElement) {
AnalysisKickOff.resultsReporter = ResultsCCUIListener.createListener(ip);
}

resultsReporter.analyzeDependenciesOnly(false);
resultsReporter.analyzeDependenciesOnly(depOnly);

resultsReporter.getMarkerGenerator().clearMarkers(ip);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ public void reportError(final AbstractError error) {
final String errorCrySLRuleName = error.getRule().getClassName();

sourceFile = unitToResource(errorLocation);
//TODO: THis needs to be removed. HACK from Krishna
if(sourceFile == this.currentProject.getFile("src/" + errorLocation.getMethod().getDeclaringClass().getName().replace(".", "/") + ".java")) {
return;
}
//TODO: End of hack
final int lineNumber = ((AbstractHost) errorLocation.getUnit().get()).getJavaSourceStartLineNumber();

final int stmtId = error.hashCode();
Expand Down Expand Up @@ -297,7 +292,7 @@ private IResource unitToResource(final Statement stmt) {
return Utils.findClassByName(className.getName(), this.currentProject);
}
catch (final ClassNotFoundException e) {
//Activator.getDefault().logError(e);
Activator.getDefault().logError(e);
}
// Fall-back path when retrieval of actual path fails. If the statement below
// fails, it should be left untouched as the actual bug is above.
Expand Down

0 comments on commit 539d7d1

Please sign in to comment.