I work with an existing framework where I need to set some attribute to empty if certain conditions are met. Unfortunately, the framework does not allow setting only the whitespace value for the attribute value. In particular, he performs
!(org.apache.commons.lang.StringUtils.isBlank(value)) check the value
Is it possible to somehow get around this and set a value that looks empty / invisible to the eye but is not considered a space?
I'm using a dash “-” right now, but I think it would be interesting to know if this is possible.
java whitespace
Codeblue
source share