Skip to content

Commit cfb2a51

Browse files
committed
fixup: spotless
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent e8f348a commit cfb2a51

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/main/java/dev/openfeature/sdk/EventProvider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ void attach(
5959
AutoCloseableReentrantReadWriteLock lock) {
6060
Attachment newAttachment = new Attachment(onEmit, lock);
6161
if (!this.attachment.compareAndSet(null, newAttachment)) {
62-
throw new IllegalStateException(
63-
"Provider " + this.getMetadata().getName() + " is already attached.");
62+
throw new IllegalStateException("Provider " + this.getMetadata().getName() + " is already attached.");
6463
}
6564
}
6665

src/test/java/dev/openfeature/sdk/EventProviderTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ void emitAcquiresReadLockWhenAttached() throws Exception {
9696
};
9797

9898
eventProvider.attach(onEmit, lock);
99-
eventProvider.emit(ProviderEvent.PROVIDER_READY, ProviderEventDetails.builder().build());
99+
eventProvider.emit(
100+
ProviderEvent.PROVIDER_READY, ProviderEventDetails.builder().build());
100101

101102
assertThat(lockAcquired.await(1, TimeUnit.SECONDS)).isTrue();
102103
}
@@ -106,8 +107,8 @@ void emitAcquiresReadLockWhenAttached() throws Exception {
106107
@DisplayName("emit should not acquire lock when not attached")
107108
void emitDoesNotAcquireLockWhenNotAttached() {
108109
// emit without attaching — should return immediately without error
109-
Awaitable result =
110-
eventProvider.emit(ProviderEvent.PROVIDER_READY, ProviderEventDetails.builder().build());
110+
Awaitable result = eventProvider.emit(
111+
ProviderEvent.PROVIDER_READY, ProviderEventDetails.builder().build());
111112
assertThat(result).isSameAs(Awaitable.FINISHED);
112113
}
113114

src/test/java/dev/openfeature/sdk/GlobalProviderRegistryTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package dev.openfeature.sdk;
22

3-
import static org.assertj.core.api.Assertions.assertThat;
43
import static org.assertj.core.api.Assertions.assertThatCode;
54
import static org.mockito.ArgumentMatchers.contains;
65
import static org.mockito.Mockito.never;

0 commit comments

Comments
 (0)