Added hashCode method for inner Token class as recommended by PMD
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4a453bd132
commit
3f84c0412c
|
@ -618,6 +618,15 @@ public class DurationFormatUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a hashcode for the token equal to the
|
||||||
|
* hashcode for the token's value. Thus 'TT' and 'TTTT'
|
||||||
|
* will have the same hashcode.
|
||||||
|
*/
|
||||||
|
public int hashCode() {
|
||||||
|
return this.value.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents this token as a String.
|
* Represents this token as a String.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue