aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/commons/lang3/builder/IDKey.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/commons/lang3/builder/IDKey.java')
-rw-r--r--src/org/apache/commons/lang3/builder/IDKey.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/org/apache/commons/lang3/builder/IDKey.java b/src/org/apache/commons/lang3/builder/IDKey.java
index 6b1d4ee..2db08ad 100644
--- a/src/org/apache/commons/lang3/builder/IDKey.java
+++ b/src/org/apache/commons/lang3/builder/IDKey.java
@@ -13,7 +13,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
*/
package org.apache.commons.lang3.builder;
@@ -21,13 +21,13 @@ package org.apache.commons.lang3.builder;
// adapted from org.apache.axis.utils.IDKey
/**
- * Wrap an identity key (System.identityHashCode())
+ * Wrap an identity key (System.identityHashCode())
* so that an object can only be equal() to itself.
- *
+ *
* This is necessary to disambiguate the occasional duplicate
* identityHashCodes that can occur.
- *
- */
+ *
+ */
final class IDKey {
private final Object value;
private final int id;
@@ -35,12 +35,12 @@ final class IDKey {
/**
* Constructor for IDKey
* @param _value The value
- */
+ */
public IDKey(Object _value) {
- // This is the Object hashcode
- id = System.identityHashCode(_value);
- // There have been some cases (LANG-459) that return the
- // same identity hash code for different objects. So
+ // This is the Object hashcode
+ id = System.identityHashCode(_value);
+ // There have been some cases (LANG-459) that return the
+ // same identity hash code for different objects. So
// the value is also added to disambiguate these cases.
value = _value;
}
@@ -48,7 +48,7 @@ final class IDKey {
/**
* returns hashcode - i.e. the system identity hashcode.
* @return the hashcode
- */
+ */
@Override
public int hashCode() {
return id;
@@ -58,7 +58,7 @@ final class IDKey {
* checks if instances are equal
* @param other The other object to compare to
* @return if the instances are for the same object
- */
+ */
@Override
public boolean equals(Object other) {
if (!(other instanceof IDKey)) {