On Wed, Sep 7, 2011 at 1:26 PM, Gary Gregory <[email protected]> wrote: > Should LockableFileWriter.close() be changed from: > > public void close() throws IOException { > try { > out.close(); > } finally { > lockFile.delete(); > } > > to: > > public boolean close() throws IOException { > try { > out.close(); > } finally { > return lockFile.delete(); > } > > ?
close() is overriden from java.io.Writer which has a return type of void - so this is not possible. Niall > > Gary > > -- > E-Mail: [email protected] | [email protected] > JUnit in Action, 2nd Ed: http://s.apache.org/rl > Spring Batch in Action: http://s.apache.org/HOq > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
