CharRange uses an unassigned static character, UNSET, as a flag value
for testing if the range is a range or a single value.

This looks a little odd to me. I had the distinct impression that
accessing an unassigned value was an error. However, the comparison
works. I'm just not sure it's working as intended, and won't fail to
work an a different VM?

relevant code:
    /**
     * Used internally to represent null in a char.
     */
    private static char UNSET;

// ...

    /**
     * Is this CharRange over many characters
     *
     * @return boolean true is many characters
     */
    public boolean isRange() {
        return this.close != UNSET;
    }






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to