1
0
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:
adam-m
2012-03-14 10:19:42 -04:00
parent cba25234d2
commit 9e67c1ad1f
4 changed files with 6 additions and 6 deletions

View File

@@ -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(){

View File

@@ -150,7 +150,7 @@ public class ExtractedContentViewer implements DataContentViewer {
@Override
public void resetComponent() {
setPanel(Collections.EMPTY_LIST);
setPanel(new ArrayList<MarkupSource>());
panel.resetHitDisplay();
}

View File

@@ -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>();
}
}

View File

@@ -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()) {