Removed a few checkstyle complaints.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137243 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2003-02-02 09:26:52 +00:00
parent b6f8afe153
commit d75f82637a
1 changed files with 6 additions and 5 deletions

View File

@ -62,7 +62,7 @@
* @author <a href="bayard@generationjava.com">Henri Yandell</a>
* @author Stephen Colebourne
* @since 1.0
* @version $Id: CharRange.java,v 1.3 2002/12/23 00:32:24 scolebourne Exp $
* @version $Id: CharRange.java,v 1.4 2003/02/02 09:26:52 bayard Exp $
*/
class CharRange {
@ -156,11 +156,12 @@ public boolean isRange() {
* <p>Is the passed in character <code>ch</code> inside
* this range.</p>
*
* @param ch character to test for
* @return boolean <code>true</code> is in range
*/
public boolean inRange(char ch) {
if(isRange()) {
return ((ch >= start) && (ch <= close) );
if( isRange() ) {
return ((ch >= start) && (ch <= close));
} else {
return start == ch;
}
@ -194,11 +195,11 @@ public void setNegated(boolean negated) {
*/
public String toString() {
String str = "";
if(isNegated()) {
if( isNegated() ) {
str += "^";
}
str += start;
if(isRange()) {
if( isRange() ) {
str += "-";
str += close;
}