mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-06 02:24:30 +00:00
fix keyword search compile warns
This commit is contained in:
@@ -91,7 +91,7 @@ class ExtractedContentPanel extends javax.swing.JPanel {
|
||||
});
|
||||
|
||||
|
||||
setSources(Collections.EMPTY_LIST);
|
||||
setSources(new ArrayList<MarkupSource>());
|
||||
|
||||
extractedTextPane.setComponentPopupMenu(rightClickMenu);
|
||||
ActionListener actList = new ActionListener(){
|
||||
|
||||
@@ -150,7 +150,7 @@ public class ExtractedContentViewer implements DataContentViewer {
|
||||
|
||||
@Override
|
||||
public void resetComponent() {
|
||||
setPanel(Collections.EMPTY_LIST);
|
||||
setPanel(new ArrayList<MarkupSource>());
|
||||
panel.resetHitDisplay();
|
||||
}
|
||||
|
||||
|
||||
@@ -58,11 +58,11 @@ class KeywordSearchFilterNode extends FilterNode {
|
||||
|
||||
Property<String> getSnippetProperty() {
|
||||
|
||||
Property<String> prop = new PropertySupport.ReadOnly("snippet",
|
||||
Property<String> prop = new PropertySupport.ReadOnly<String>("snippet",
|
||||
String.class, "Context", "Snippet of matching content.") {
|
||||
|
||||
@Override
|
||||
public Object getValue() {
|
||||
public String getValue() {
|
||||
return getSnippet();
|
||||
}
|
||||
};
|
||||
@@ -135,7 +135,7 @@ class KeywordSearchFilterNode extends FilterNode {
|
||||
}
|
||||
@Override
|
||||
protected List<Action> defaultVisit(Content c) {
|
||||
return Collections.EMPTY_LIST;
|
||||
return new ArrayList<Action>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ public class KeywordSearchResultFactory extends ChildFactory<KeyValueQuery> {
|
||||
@Override
|
||||
protected boolean createKeys(List<KeyValueQuery> toPopulate) {
|
||||
//final String origQuery = queryThing.getName();
|
||||
final KeyValueQuery queryThingQuery = (KeyValueQuery) queryThing;
|
||||
final KeyValueQuery queryThingQuery = queryThing;
|
||||
final KeywordSearchQuery tcq = queryThingQuery.getQuery();
|
||||
|
||||
if (!tcq.validate()) {
|
||||
|
||||
Reference in New Issue
Block a user