git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@478196
13f79535-47bb-0310-9956-
ffa450edef68
* Set the content to be a string
*/
public void setString( String s ) {
- if (s == null)
- return;
strValue=s;
- hasStrValue=true;
hasHashCode=false;
hasIntValue=false;
hasLongValue=false;
hasDateValue=false;
- type=T_STR;
+ if (s == null) {
+ hasStrValue=false;
+ type=T_NULL;
+ } else {
+ hasStrValue=true;
+ type=T_STR;
+ }
}
// -------------------- Conversion and getters --------------------