@Test public void testDestroy() { tested.current = "some"; tested.onChangeCallback = () -> { }; tested.destroy(); assertNull(tested.current); assertNull(tested.onChangeCallback); }
@PreDestroy public void destroy() { current = null; onChangeCallback = null; languages.clear(); }
MonacoEditorPresenter { @PreDestroy public void destroy() { current = null; onChangeCallback = null; languages.clear(); } }
MonacoEditorPresenter { @PreDestroy public void destroy() { current = null; onChangeCallback = null; languages.clear(); } @Inject  MonacoEditorPresenter(MonacoEditorView view); }
MonacoEditorPresenter { @PreDestroy public void destroy() { current = null; onChangeCallback = null; languages.clear(); } @Inject  MonacoEditorPresenter(MonacoEditorView view); @PostConstruct void init(); MonacoEditorPresenter setOnChangeCallback(OnChangeCallback onChangeCallback); MonacoEditorPresenter setWidthPx(int widthPx); MonacoEditorPresenter setHeightPx(int heightPx); MonacoEditorPresenter setReadOnly(boolean readOnly); MonacoEditorPresenter addLanguage(MonacoEditorLanguage module); void setValue(String languageId, String value); String getValue(); String getLanguageId(); MonacoEditorView getView(); @PreDestroy void destroy(); }
MonacoEditorPresenter { @PreDestroy public void destroy() { current = null; onChangeCallback = null; languages.clear(); } @Inject  MonacoEditorPresenter(MonacoEditorView view); @PostConstruct void init(); MonacoEditorPresenter setOnChangeCallback(OnChangeCallback onChangeCallback); MonacoEditorPresenter setWidthPx(int widthPx); MonacoEditorPresenter setHeightPx(int heightPx); MonacoEditorPresenter setReadOnly(boolean readOnly); MonacoEditorPresenter addLanguage(MonacoEditorLanguage module); void setValue(String languageId, String value); String getValue(); String getLanguageId(); MonacoEditorView getView(); @PreDestroy void destroy();  }