Skip to content

Commit

Permalink
Renamed freeExternalResources to more appropriate destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlauer committed May 5, 2011
1 parent dbc919a commit 4264e4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ReleaseNotes.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ http://twitter.com/
http://www.cloudhopper.com/ http://www.cloudhopper.com/
Commons Util Library Commons Util Library
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
5.0 - 2011-05-03 5.0 - 2011-05-05
* Log4j dependency switched for SLF4J * Log4j dependency switched for SLF4J
* WARN: Windowing package has been refactored. Source changes were significant * 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. <= version 4.1.
* Added UnwrappedWeakReference utility class for using the referenced object's * Added UnwrappedWeakReference utility class for using the referenced object's
equals() and hashCode() values rather than WeakReference's impl which uses equals() and hashCode() values rather than WeakReference's impl which uses
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ List<UnwrappedWeakReference<WindowListener<K,R,P>>> getListeners() {
} }


/** /**
* 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, * pending offers are cancelled, followed by all outstanding futures,
* then all listeners are removed, and monitoring is cancelled. * then all listeners are removed, and monitoring is cancelled.
*/ */
public synchronized void freeExternalResources() { public synchronized void destroy() {
try { try {
this.abortPendingOffers(); this.abortPendingOffers();
} catch (Exception e) { } } catch (Exception e) { }
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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.out.println("Press any key to get rid of our reference to Window");
System.in.read(); System.in.read();


window.freeExternalResources(); window.destroy();
window2.freeExternalResources(); window2.destroy();
window = null; window = null;
window2 = null; window2 = null;
System.gc(); System.gc();
Expand Down

0 comments on commit 4264e4f

Please sign in to comment.