Project

General

Profile

« Previous | Next » 

Revision f6439701

Added by Andreas Kohlbecker almost 6 years ago

avoiding unchecked genrics

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/CdmEditorPresenterBase.java
173 173
        super.onEditorPreSaveEvent(preSaveEvent);
174 174
    }
175 175

  
176
    @SuppressWarnings("unchecked")
177 176
    @Override
178 177
    // @EventBusListenerMethod // already annotated at super class
179 178
    public void onEditorSaveEvent(EditorSaveEvent<DTO> saveEvent){
......
197 196
            pca.printEntityGraph(System.err);
198 197
            pca.printCopyEntities(System.err);
199 198
        }
200
        EntityChangeEvent changeEvent = null;
199
        EntityChangeEvent<?> changeEvent = null;
201 200
        try {
202 201
            dto = preSaveBean(dto);
203
            changeEvent = getStore().saveBean(cdmEntity, (AbstractView) getView());
202
            changeEvent = getStore().saveBean(cdmEntity, (AbstractView<?>) getView());
204 203

  
205 204
            if(changeEvent != null){
206 205
                viewEventBus.publish(this, changeEvent);

Also available in: Unified diff