ARTEMIS-1406 removing impossible instanceof

This commit is contained in:
Justin Bertram 2017-09-29 15:21:37 -05:00 committed by Howard Gao
parent 4fd2e4e6c2
commit 94b53c67c0
1 changed files with 1 additions and 8 deletions

View File

@ -366,14 +366,7 @@ final class MappedSequentialFile implements SequentialFile {
@Override
public void renameTo(String newFileName) throws Exception {
try {
close();
} catch (Exception e) {
if (e instanceof IOException) {
factory.onIOError(new ActiveMQIOErrorException(e.getMessage(), e), e.getMessage(), this);
}
throw e;
}
close();
if (this.fileName == null) {
this.fileName = this.file.getName();
}