query.trim() doesn't modify the String Object in KeywordSearchTupleSet.java
Status: Beta
Brought to you by:
jheer
Return value of String.trim() ignored in prefuse.data.search.KeywordSearchTupleSet.search(String)
The return value of this method should be checked. The cause of this bug is to invoke a method on an immutable object, thinking that it updates the object.
But since Strings are immutable, the trim() function returns a new String value, which is being ignored here. The code should be corrected to: query = query.trim();