Kaydet (Commit) b4203f53 authored tarafından Noel Grandin's avatar Noel Grandin

cid#1326858 Eq: Problems with implementation of equals()

Change-Id: If87666e6e4ac9397ac44bed805fc7c83ad357105
üst f126d7fb
......@@ -157,7 +157,7 @@ class WikiProtocolSocketFactory extends SSLSocketFactory
@Override
public boolean equals(Object obj)
{
return ((obj != null) && obj.getClass().equals(WikiProtocolSocketFactory.class));
return (obj != null) && (obj instanceof WikiProtocolSocketFactory);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment