@@ -80,7 +80,6 @@ static boolean rangeAccepts(final String range, final String value) {
8080 return parsedRange != null && parsedRange .accepts (valToCompare );
8181 }
8282
83-
8483 private static Range parse (final String rangeValue ) {
8584 if (rangeValue == null || rangeValue .trim ().isEmpty ()) {
8685 return null ;
@@ -156,8 +155,11 @@ private interface Range {
156155
157156 private static final class BasicRange implements Range {
158157 private final DeweyDecimal lowerBound ;
158+
159159 private final DeweyDecimal upperBound ;
160+
160161 private final boolean lowerInclusive ;
162+
161163 private final boolean upperInclusive ;
162164
163165 private BasicRange (final DeweyDecimal lowerBound , final boolean lowerInclusive ,
@@ -216,6 +218,7 @@ private static final class DeweyDecimal {
216218 *
217219 * @param components an array of integer components.
218220 */
221+ @ SuppressWarnings ("unused" )
219222 public DeweyDecimal (final int [] components ) {
220223 this .components = new int [components .length ];
221224 System .arraycopy (components , 0 , this .components , 0 , components .length );
@@ -242,11 +245,11 @@ public DeweyDecimal(final String string)
242245
243246 components [i ] = Integer .parseInt (component );
244247
245- //Strip '.' token
248+ // Strip '.' token
246249 if (tokenizer .hasMoreTokens ()) {
247250 tokenizer .nextToken ();
248251
249- //If it ended in a dot, throw an exception
252+ // If it ended in a dot, throw an exception
250253 if (!tokenizer .hasMoreTokens ()) {
251254 throw new NumberFormatException ("DeweyDecimal ended in a '.'" );
252255 }
@@ -259,6 +262,7 @@ public DeweyDecimal(final String string)
259262 *
260263 * @return the number of components in dewey decimal
261264 */
265+ @ SuppressWarnings ("unused" )
262266 public int getSize () {
263267 return components .length ;
264268 }
@@ -269,6 +273,7 @@ public int getSize() {
269273 * @param index the index of components
270274 * @return the value of component at index
271275 */
276+ @ SuppressWarnings ("unused" )
272277 public int get (final int index ) {
273278 return components [index ];
274279 }
@@ -393,6 +398,7 @@ public String toString() {
393398 * @return result
394399 * @see java.lang.Comparable#compareTo(Object)
395400 */
401+ @ SuppressWarnings ("unused" )
396402 public int compareTo (DeweyDecimal other ) {
397403 final int max = Math .max (other .components .length , components .length );
398404 for (int i = 0 ; i < max ; i ++) {
0 commit comments