- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
private static void stopEDT(final EDTUtil edtUtil, final Runnable task) { if( null != edtUtil ) { if( edtUtil.isRunning() ) { final boolean res = edtUtil.invokeStop(true, task); if( DEBUG ) { if ( !res ) { System.err.println("Warning: invokeStop() failed"); Thread.dumpStack(); } } } edtUtil.waitUntilStopped(); // ready for restart .. } else if( null != task ) { task.run(); } }
private static void stopEDT(final EDTUtil edtUtil, final Runnable task) { if( null != edtUtil ) { if( edtUtil.isRunning() ) { final boolean res = edtUtil.invokeStop(true, task); if( DEBUG ) { if ( !res ) { System.err.println("Warning: invokeStop() failed"); ExceptionUtils.dumpStack(System.err); } } } edtUtil.waitUntilStopped(); // ready for restart .. } else if( null != task ) { task.run(); } }