Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitagrawl committed Jan 8, 2025
1 parent 85f0e33 commit c6dda89
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,4 @@ enum LockOpType {
private interface LockFunction<T, R> {
R apply(T t) throws IOException;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.locks.Lock;
import org.apache.hadoop.ozone.om.exceptions.OMException;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SetTimesRequest;
import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SetVolumePropertyRequest;
import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.Type;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -282,7 +282,8 @@ public void testVolumeRequestLockUnlock() throws IOException {
omRequest = getReqBuilder(Type.DeleteVolume).setDeleteVolumeRequest(deleteVolumeRequest).build();
validateLockUnlock(new OMVolumeDeleteRequest(omRequest), omLockOpr, 1);

SetVolumePropertyRequest volumePropertyRequest = SetVolumePropertyRequest.newBuilder().setVolumeName("testVolume").build();
SetVolumePropertyRequest volumePropertyRequest = SetVolumePropertyRequest.newBuilder().setVolumeName("testVolume")
.build();
omRequest = getReqBuilder(Type.SetVolumeProperty).setSetVolumePropertyRequest(volumePropertyRequest).build();
validateLockUnlock(new OMVolumeSetOwnerRequest(omRequest), omLockOpr, 1);
validateLockUnlock(new OMVolumeSetQuotaRequest(omRequest), omLockOpr, 1);
Expand Down

0 comments on commit c6dda89

Please sign in to comment.