Skip to content

Commit 4125d50

Browse files
committed
Merge pull request #76 from DevFactory/release/public-static-field-should-be-constant-fix-1
Code quality fix - "public static" fields should be constant
2 parents 6e5f662 + d467bfe commit 4125d50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/io/reactivesocket/internal/rx/EmptyDisposable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
public class EmptyDisposable implements Disposable
2121
{
22-
public static EmptyDisposable EMPTY = new EmptyDisposable();
22+
public static final EmptyDisposable EMPTY = new EmptyDisposable();
2323

2424
public void dispose()
2525
{

src/test/java/io/reactivesocket/ReactiveSocketTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class ReactiveSocketTest {
6262
private CountDownLatch lastServerErrorCountDown;
6363
private CountDownLatch fireAndForgetOrMetadataPush;
6464

65-
public static @DataPoints int[] setupFlags = {NO_FLAGS, HONOR_LEASE};
65+
public static final @DataPoints int[] setupFlags = {NO_FLAGS, HONOR_LEASE};
6666

6767
@Before
6868
public void setup() {

0 commit comments

Comments
 (0)