Permalink
Browse files

Renamed freeExternalResources to more appropriate destroy()

  • Loading branch information...
1 parent dbc919a commit 4264e4fcd974523b6b379d680bc95ae9b1ddde27 @jjlauer jjlauer committed May 5, 2011
View
@@ -3,10 +3,10 @@ http://twitter.com/
http://www.cloudhopper.com/
Commons Util Library
--------------------------------------------------------------------------------
-5.0 - 2011-05-03
+5.0 - 2011-05-05
* Log4j dependency switched for SLF4J
* WARN: Windowing package has been refactored. Source changes were significant
- enough (and unavoidable) to create a major backwards incompatability with
+ enough (and unavoidable) to create a major backwards incompatibility with
<= version 4.1.
* Added UnwrappedWeakReference utility class for using the referenced object's
equals() and hashCode() values rather than WeakReference's impl which uses
@@ -218,11 +218,11 @@ public void removeListener(WindowListener<K,R,P> listener) {
}
/**
- * Shutdown this window by freeing all resources associated with it. All
+ * Destroy this window by freeing all resources associated with it. All
* pending offers are cancelled, followed by all outstanding futures,
* then all listeners are removed, and monitoring is cancelled.
*/
- public synchronized void freeExternalResources() {
+ public synchronized void destroy() {
try {
this.abortPendingOffers();
} catch (Exception e) { }
@@ -84,8 +84,8 @@ public void expired(WindowFuture<Integer, String, String> entry) {
System.out.println("Press any key to get rid of our reference to Window");
System.in.read();
- window.freeExternalResources();
- window2.freeExternalResources();
+ window.destroy();
+ window2.destroy();
window = null;
window2 = null;
System.gc();

0 comments on commit 4264e4f

Please sign in to comment.