Fixes #661 -JsrExtension is missing hashCode() and equals()
This commit is contained in:
parent
2731ac1752
commit
b2d6d06b48
|
@ -91,6 +91,23 @@ public class JsrExtension implements Extension
|
|||
return parameters;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o)
|
||||
{
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
JsrExtension that = (JsrExtension) o;
|
||||
|
||||
return name != null ? name.equals(that.name) : that.name == null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return name != null ? name.hashCode() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue