public Object clone() { try { CacheKey clone = (CacheKey) super.clone(); if (loaderRef != null) { clone.loaderRef = new LoaderReference(loaderRef.get(), referenceQueue, clone); } return clone; } catch (CloneNotSupportedException e) { // this should never happen throw new InternalError(); } }
public boolean equals(Object other) { if (this == other) { return true; } try { final CacheKey otherEntry = (CacheKey) other; // quick check to see if they are not equal if (hashCodeCache != otherEntry.hashCodeCache) { return false; } // are refs (both non-null) or (both null)? if (loaderRef == null) { return otherEntry.loaderRef == null; } ClassLoader loader = loaderRef.get(); return (otherEntry.loaderRef != null) // with a null reference we can no longer find // out which class loader was referenced; so // treat it as unequal && (loader != null) && (loader == otherEntry.loaderRef.get()); } catch (NullPointerException e) { } catch (ClassCastException e) { } return false; }
public boolean equals(Object other) { if (this == other) { return true; } try { final CacheKey otherEntry = (CacheKey) other; // quick check to see if they are not equal if (hashCodeCache != otherEntry.hashCodeCache) { return false; } // are refs (both non-null) or (both null)? if (loaderRef == null) { return otherEntry.loaderRef == null; } ClassLoader loader = loaderRef.get(); return (otherEntry.loaderRef != null) // with a null reference we can no longer find // out which class loader was referenced; so // treat it as unequal && (loader != null) && (loader == otherEntry.loaderRef.get()); } catch (NullPointerException e) { } catch (ClassCastException e) { } return false; }
public boolean equals(Object other) { if (this == other) { return true; } try { final CacheKey otherEntry = (CacheKey) other; // quick check to see if they are not equal if (hashCodeCache != otherEntry.hashCodeCache) { return false; } // are refs (both non-null) or (both null)? if (loaderRef == null) { return otherEntry.loaderRef == null; } ClassLoader loader = loaderRef.get(); return (otherEntry.loaderRef != null) // with a null reference we can no longer find // out which class loader was referenced; so // treat it as unequal && (loader != null) && (loader == otherEntry.loaderRef.get()); } catch (NullPointerException e) { } catch (ClassCastException e) { } return false; }
ClassLoader getLoader() { return (loaderRef != null) ? loaderRef.get() : null; }
ClassLoader getLoader() { return (loaderRef != null) ? loaderRef.get() : null; }
ClassLoader getLoader() { return (loaderRef != null) ? loaderRef.get() : null; }
public Object clone() { try { CacheKey clone = (CacheKey) super.clone(); if (loaderRef != null) { clone.loaderRef = new LoaderReference(loaderRef.get(), referenceQueue, clone); } return clone; } catch (CloneNotSupportedException e) { // this should never happen throw new InternalError(); } }
CacheKey(ClassLoader loader) { if (loader == null) { this.loaderRef = null; } else { loaderRef = new LoaderReference(loader, referenceQueue, this); } calculateHashCode(); }
CacheKey(ClassLoader loader) { if (loader == null) { this.loaderRef = null; } else { loaderRef = new LoaderReference(loader, referenceQueue, this); } calculateHashCode(); }
CacheKey(ClassLoader loader) { if (loader == null) { this.loaderRef = null; } else { loaderRef = new LoaderReference(loader, referenceQueue, this); } calculateHashCode(); }
ClassLoader getLoader() { return (loaderRef != null) ? loaderRef.get() : null; }
CacheKey(ClassLoader loader) { if (loader == null) { this.loaderRef = null; } else { loaderRef = new LoaderReference(loader, referenceQueue, this); } calculateHashCode(); }
public Object clone() { try { CacheKey clone = (CacheKey) super.clone(); if (loaderRef != null) { clone.loaderRef = new LoaderReference(loaderRef.get(), referenceQueue, clone); } return clone; } catch (CloneNotSupportedException e) { // this should never happen throw new InternalError(); } }
public Object clone() { try { CacheKey clone = (CacheKey) super.clone(); if (loaderRef != null) { clone.loaderRef = new LoaderReference(loaderRef.get(), referenceQueue, clone); } return clone; } catch (CloneNotSupportedException e) { // this should never happen throw new InternalError(); } }
public boolean equals(Object other) { if (this == other) { return true; } try { final CacheKey otherEntry = (CacheKey) other; // quick check to see if they are not equal if (hashCodeCache != otherEntry.hashCodeCache) { return false; } // are refs (both non-null) or (both null)? if (loaderRef == null) { return otherEntry.loaderRef == null; } ClassLoader loader = loaderRef.get(); return (otherEntry.loaderRef != null) // with a null reference we can no longer find // out which class loader was referenced; so // treat it as unequal && (loader != null) && (loader == otherEntry.loaderRef.get()); } catch (NullPointerException e) { } catch (ClassCastException e) { } return false; }
ClassLoader getLoader() { return (loaderRef != null) ? loaderRef.get() : null; }
public Object clone() { try { CacheKey clone = (CacheKey) super.clone(); if (loaderRef != null) { clone.loaderRef = new LoaderReference(loaderRef.get(), referenceQueue, clone); } return clone; } catch (CloneNotSupportedException e) { // this should never happen throw new InternalError(); } }
CacheKey(ClassLoader loader) { if (loader == null) { this.loaderRef = null; } else { loaderRef = new LoaderReference(loader, referenceQueue, this); } calculateHashCode(); }