Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use this.getClass instead of hard coding the class type so that

subclasses will inherit a working .equals method
  • Loading branch information...
commit 51f4c2b2a7e2c9b109247709014c49602b61edad 1 parent 73db7e4
@mdentremont mdentremont authored U-dEntremont-PC\Matt committed
View
2  org.rssowl.core/src/org/rssowl/core/internal/connection/EasySSLProtocolSocketFactory.java
@@ -124,7 +124,7 @@ public Socket createSocket(final String host, final int port, final InetAddress
*/
@Override
public boolean equals(Object obj) {
- return ((obj != null) && obj.getClass().equals(EasySSLProtocolSocketFactory.class));
+ return ((obj != null) && obj.getClass().equals(this.getClass()));
}
/*
Please sign in to comment.
Something went wrong with that request. Please try again.