Add hashcode
This commit is contained in:
@@ -139,6 +139,15 @@ public class ExitStatus implements Serializable {
|
||||
return toString().equals(obj.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
* Compatible with the equals implementation.
|
||||
*
|
||||
* @see java.lang.Object#hashCode()
|
||||
*/
|
||||
public int hashCode() {
|
||||
return toString().hashCode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an exit code to an existing {@link ExitStatus}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user