Unused import; missing @Override markers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e4147b75c
commit
52baa809b8
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.lang3;
|
package org.apache.commons.lang3;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||||
|
@ -49,6 +48,7 @@ public final class Pair<L, R> implements Serializable {
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj == this) {
|
if (obj == this) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -63,6 +63,7 @@ public final class Pair<L, R> implements Serializable {
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return new HashCodeBuilder().append(left).append(right).toHashCode();
|
return new HashCodeBuilder().append(left).append(right).toHashCode();
|
||||||
}
|
}
|
||||||
|
@ -70,6 +71,7 @@ public final class Pair<L, R> implements Serializable {
|
||||||
/**
|
/**
|
||||||
* Returns a String representation of the Pair in the form: (L,R)
|
* Returns a String representation of the Pair in the form: (L,R)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("(");
|
builder.append("(");
|
||||||
|
|
Loading…
Reference in New Issue