Skip to content

Commit

Permalink
Bugfix: selection of distinct findings with same source - added date …
Browse files Browse the repository at this point in the history
…to source string to allow distinction
  • Loading branch information
Martin Mory committed Apr 11, 2019
1 parent 3325851 commit 70fad25
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@

import jadx.gui.ui.codearea.MarkedLocation;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Map;
import java.util.TreeMap;
import java.util.Date;


public class TaintAnalysisFinding {
private MarkedLocation source;
private MarkedLocation sink;
private ArrayList<MarkedLocation> intermediateFlows;
private Map<String, Boolean> attributes;
private final String creationDate;

public TaintAnalysisFinding(){
intermediateFlows = new ArrayList<MarkedLocation>();
attributes = new TreeMap<>();
creationDate = new SimpleDateFormat(" (HH:mm:ss)").format(new Date());
}

public void removeSource(){
Expand Down Expand Up @@ -98,8 +102,8 @@ public void showAllHighlights(){
@Override
public String toString(){
if(source == null)
return "<no source>";
return source.toString();
return "<no source>" + creationDate;
return source.toString() + creationDate;
}

public void setAttribute(String key, boolean value){
Expand Down

0 comments on commit 70fad25

Please sign in to comment.