1 <p> The return value of this method should be checked. One common
2 cause of this warning is to invoke a method on an immutable object,
3 thinking that it updates the object. For example, in the following code
7 String dateString = getHeaderField(name);
11 <p>the programmer seems to be thinking that the trim() method will update
12 the String referenced by dateString. But since Strings are immutable, the trim()
13 function returns a new String value, which is being ignored here. The code
14 should be corrected to: </p>
17 String dateString = getHeaderField(name);
18 dateString = dateString.trim();