commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Downey <steve.dow...@netfolio.com>
Subject CharRange UNSET ?
Date Fri, 27 Sep 2002 22:28:32 GMT
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:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message