ARTEMIS-1406 removing impossible instanceof
This commit is contained in:
parent
4fd2e4e6c2
commit
94b53c67c0
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue