HADOOP-17588. CryptoInputStream#close() should be syncronized. Contributed by RenukaPrasad C

This commit is contained in:
Boyina, Hemanth Kumar 2021-04-06 18:06:10 +05:30
parent 36014b8282
commit e86050fae5
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ public class CryptoInputStream extends FilterInputStream implements
}
@Override
public void close() throws IOException {
public synchronized void close() throws IOException {
if (closed) {
return;
}