Skip to content

Commit 978df66

Browse files
greenrobot-teamgreenrobot
authored andcommitted
Sync: rename [SyncClientState -> SyncState] to match other languages.
1 parent bc9a33a commit 978df66

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

objectbox-java/src/main/java/io/objectbox/sync/SyncClientImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public boolean isLoggedIn() {
9898
/**
9999
* Gets the current state of this sync client. Throws if {@link #close()} was called.
100100
*/
101-
public SyncClientState getSyncState() {
102-
return SyncClientState.fromId(nativeGetState(handle));
101+
public SyncState getSyncState() {
102+
return SyncState.fromId(nativeGetState(handle));
103103
}
104104

105105
@Override
@@ -268,7 +268,7 @@ public void notifyConnectionAvailable() {
268268
private native void nativeSetUncommittedAcks(long handle, boolean uncommittedAcks);
269269

270270
/**
271-
* Returns the current {@link SyncClientState} value.
271+
* Returns the current {@link SyncState} value.
272272
*/
273273
private native int nativeGetState(long handle);
274274

objectbox-java/src/main/java/io/objectbox/sync/SyncClientState.java renamed to objectbox-java/src/main/java/io/objectbox/sync/SyncState.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Returned by {@link io.objectbox.sync.SyncClientImpl#getSyncState()}.
55
*/
6-
public enum SyncClientState {
6+
public enum SyncState {
77

88
UNKNOWN(0),
99
CREATED(1),
@@ -16,12 +16,12 @@ public enum SyncClientState {
1616

1717
public final int id;
1818

19-
SyncClientState(int id) {
19+
SyncState(int id) {
2020
this.id = id;
2121
}
2222

23-
public static SyncClientState fromId(int id) {
24-
for (SyncClientState value : values()) {
23+
public static SyncState fromId(int id) {
24+
for (SyncState value : values()) {
2525
if (value.id == id) return value;
2626
}
2727
return UNKNOWN;

0 commit comments

Comments
 (0)