Skip to content

Commit d3e6902

Browse files
committed
use var for AtomicReference
1 parent 5deb1c6 commit d3e6902

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

operator/src/test/java/it/aboutbits/postgresql/crd/clusterconnection/ClusterConnectionReconcilerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void createsCustomResource_andReconcilerStatusIsReady() {
111111
.returnFirst();
112112

113113
// then
114-
AtomicReference<@Nullable DSLContext> dslAtomic = new AtomicReference<>();
114+
var dslAtomic = new AtomicReference<@Nullable DSLContext>();
115115
assertThatNoException().isThrownBy(
116116
() -> dslAtomic.set(postgreSQLContextFactory.getDSLContext(customResource))
117117
);
@@ -155,7 +155,7 @@ void createsCustomResourceWithFileRef_andReconcilerStatusIsReady() throws IOExce
155155
.returnFirst();
156156

157157
// then
158-
AtomicReference<@Nullable DSLContext> dslAtomic = new AtomicReference<>();
158+
var dslAtomic = new AtomicReference<@Nullable DSLContext>();
159159
assertThatNoException().isThrownBy(
160160
() -> dslAtomic.set(postgreSQLContextFactory.getDSLContext(customResource))
161161
);

0 commit comments

Comments
 (0)