Libraryless. Click here for Pure Java version (3017L/18K).
!7 import java.beans.*; sclass Fixer extends DynModule { void start { PropertyChangeListener[] l = UIManager.getPropertyChangeListeners(); pnl(map className(l)); for (O o : l) if (eq(className(o), "javax.swing.border.TitledBorder$1") && getOpt(o, "this$0") != null) { setOpt(o, "this$0", null); print("FIXED " + o); } } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016261 |
Snippet name: | Fix PropertyChangeListener leaks [Dyn Module] |
Eternal ID of this version: | #1016261/3 |
Text MD5: | 676899d4dac3033ccde0835ea9d21e7e |
Transpilation MD5: | 6bb8e6bfb0aab86a847cd214fd0904be |
Author: | stefan |
Category: | javax / modules |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-12 19:40:04 |
Source code size: | 390 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 399 / 490 |
Version history: | 2 change(s) |
Referenced in: | #1016262 - fixSwingTitledBorderMemoryLeak |