Skip to content
Snippets Groups Projects
Commit 22aec374 authored by Richard Cordovano's avatar Richard Cordovano
Browse files

Remove JFX dependency in TSK

parent 36bd8a16
No related branches found
No related tags found
No related merge requests found
...@@ -257,12 +257,12 @@ public TagsFilter() { ...@@ -257,12 +257,12 @@ public TagsFilter() {
* the direct source (file or artifact) of the events has either been * the direct source (file or artifact) of the events has either been
* tagged or not tagged. * tagged or not tagged.
* *
* @param eventSourceIsTagged Whether the direct sources of the events * @param eventSourcesAreTagged Whether the direct sources of the events
* need to be tagged or not tagged to be * need to be tagged or not tagged to be
* accepted by this filter. * accepted by this filter.
*/ */
public TagsFilter(boolean eventSourceIsTagged) { public TagsFilter(boolean eventSourcesAreTagged) {
this.eventSourcesAreTagged = eventSourceIsTagged; this.eventSourcesAreTagged = eventSourcesAreTagged;
} }
/** /**
...@@ -388,11 +388,6 @@ public TextFilter(String descriptionSubstring) { ...@@ -388,11 +388,6 @@ public TextFilter(String descriptionSubstring) {
this.descriptionSubstring = descriptionSubstring.trim(); this.descriptionSubstring = descriptionSubstring.trim();
} }
@Override
public String getDisplayName() {
return BundleProvider.getBundle().getString("TextFilter.displayName.text");
}
/** /**
* Sets the substring that must be present in one or more of the * Sets the substring that must be present in one or more of the
* descriptions of each event that passes the filter. * descriptions of each event that passes the filter.
...@@ -403,6 +398,11 @@ public synchronized void setDescriptionSubstring(String descriptionSubstring) { ...@@ -403,6 +398,11 @@ public synchronized void setDescriptionSubstring(String descriptionSubstring) {
this.descriptionSubstring = descriptionSubstring.trim(); this.descriptionSubstring = descriptionSubstring.trim();
} }
@Override
public String getDisplayName() {
return BundleProvider.getBundle().getString("TextFilter.displayName.text");
}
/** /**
* Gets the substring that must be present in one or more of the * Gets the substring that must be present in one or more of the
* descriptions of each event that passes the filter. * descriptions of each event that passes the filter.
...@@ -433,7 +433,7 @@ public boolean equals(Object obj) { ...@@ -433,7 +433,7 @@ public boolean equals(Object obj) {
@Override @Override
public int hashCode() { public int hashCode() {
int hash = 5; int hash = 5;
hash = 29 * hash + Objects.hashCode(descriptionSubstring); hash = 29 * hash + Objects.hashCode(this.descriptionSubstring);
return hash; return hash;
} }
...@@ -724,7 +724,7 @@ protected void addSubFilter(SubFilterType subfilter) { ...@@ -724,7 +724,7 @@ protected void addSubFilter(SubFilterType subfilter) {
* @return The filters. * @return The filters.
*/ */
public final List<SubFilterType> getSubFilters() { public final List<SubFilterType> getSubFilters() {
return subFilters; // RJCTODO: DO we need to hand out a mutable reference? return subFilters;
} }
/** /**
...@@ -885,21 +885,22 @@ public HashHitsFilter() { ...@@ -885,21 +885,22 @@ public HashHitsFilter() {
* the files that are the direct or indirect sources of the events * the files that are the direct or indirect sources of the events
* either have or do not have hash set hits. * either have or do not have hash set hits.
* *
* @param hasHashHit Whether or not the files associated with the events * @param eventSourcesHaveHashSetHits Whether or not the files
* have or do not have hash set hits. * associated with the events have or
* do not have hash set hits.
*/ */
public HashHitsFilter(boolean hasHashHit) { public HashHitsFilter(boolean eventSourcesHaveHashSetHits) {
eventSourcesHaveHashSetHits = hasHashHit; this.eventSourcesHaveHashSetHits = eventSourcesHaveHashSetHits;
} }
/** /**
* Sets whether or not the files associated with the events have or do * Sets whether or not the files associated with the events have or do
* not have hash set hits * not have hash set hits
* *
* @param hasHashHit True or false. * @param eventSourcesHaveHashSetHits True or false.
*/ */
public synchronized void setEventSourcesHaveHashSetHits(boolean hasHashHit) { public synchronized void setEventSourcesHaveHashSetHits(boolean eventSourcesHaveHashSetHits) {
eventSourcesHaveHashSetHits = hasHashHit; this.eventSourcesHaveHashSetHits = eventSourcesHaveHashSetHits;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment