GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Sync: rename [SyncClientState -> SyncState] to match other languages. · a200332/objectbox-java@978df66

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • objectbox-java/src/main/java/io/objectbox/sync
    • SyncClientImpl.java
    • SyncState.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/sync/SyncClientImpl.java
+3-3Lines 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

Collapse file

‎…a/io/objectbox/sync/SyncClientState.java‎ ‎…in/java/io/objectbox/sync/SyncState.java‎objectbox-java/src/main/java/io/objectbox/sync/SyncClientState.java renamed to objectbox-java/src/main/java/io/objectbox/sync/SyncState.java objectbox-java/src/main/java/io/objectbox/sync/SyncClientState.java renamed to objectbox-java/src/main/java/io/objectbox/sync/SyncState.java

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/sync/SyncState.java
+4-4Lines 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.