From d75f82637a266b17d856f2147c10332788cc08c5 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Sun, 2 Feb 2003 09:26:52 +0000 Subject: [PATCH] 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 --- src/java/org/apache/commons/lang/CharRange.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/commons/lang/CharRange.java b/src/java/org/apache/commons/lang/CharRange.java index ca24307f2..a13106491 100644 --- a/src/java/org/apache/commons/lang/CharRange.java +++ b/src/java/org/apache/commons/lang/CharRange.java @@ -62,7 +62,7 @@ package org.apache.commons.lang; * @author Henri Yandell * @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 @@ class CharRange { *

Is the passed in character ch inside * this range.

* + * @param ch character to test for * @return boolean true 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 @@ class CharRange { */ public String toString() { String str = ""; - if(isNegated()) { + if( isNegated() ) { str += "^"; } str += start; - if(isRange()) { + if( isRange() ) { str += "-"; str += close; }