Fixes #661 -JsrExtension is missing hashCode() and equals()

This commit is contained in:
Joakim Erdfelt 2016-06-22 10:42:31 -07:00
parent 2731ac1752
commit b2d6d06b48
1 changed files with 17 additions and 0 deletions

View File

@ -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()
{