Example
public
static
class
ClassA {
private
URL url =
new
URL(
"http://example.com"
);
private
Map m;
public void
methodA {
Object o = m.remove(url);
}
}
Solution
Reconsider the use of a Map to store URL objects.