SaveReturn saveAnalysis ( final File f ) { Future < Object > waiter = mainFrame . getBackgroundExecutor ( ) . submit ( ( ) -> { BugSaver . saveBugs ( f , mainFrame . getBugCollection ( ) , mainFrame . getProject ( ) ) ; return null ; } ) ; try { waiter . get ( ) ; } catch ( InterruptedException e ) { return SaveReturn . SAVE_ERROR ; } catch ( ExecutionException e ) { return SaveReturn . SAVE_ERROR ; } mainFrame . setProjectChanged ( false ) ; return SaveReturn . SAVE_SUCCESSFUL ; }
Save current analysis as file passed in . Return SAVE_SUCCESSFUL if save successful . Method doesn t do much . This method is more if need to do other things in the future for saving analysis . And to keep saving naming convention .