plugins: prevent plugins from overriding equals and hashCode
This has no legitimate use and several parts of the core assume that they are not overridden
This commit is contained in:
@@ -32,6 +32,18 @@ public abstract class Plugin implements Module
|
|||||||
{
|
{
|
||||||
protected Injector injector;
|
protected Injector injector;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final int hashCode()
|
||||||
|
{
|
||||||
|
return super.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final boolean equals(Object obj)
|
||||||
|
{
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user