Skip to content

Commit 9feb96b

Browse files
greenrobotgreenrobot-team
authored andcommitted
FlatBuffers Flags updated; now also they name a static name() method
1 parent a2a834a commit 9feb96b

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

objectbox-java/src/main/java/io/objectbox/DebugFlags.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
package io.objectbox;
2020

2121
/**
22-
* Flags to enable debug behavior like additional logging.
22+
* Debug flags typically enable additional "debug logging" that can be helpful to better understand what is going on
23+
* internally. These are intended for the development process only; typically one does not enable them for releases.
2324
*/
2425
@SuppressWarnings("unused")
2526
public final class DebugFlags {
@@ -31,5 +32,6 @@ private DebugFlags() { }
3132
public static final int LOG_ASYNC_QUEUE = 16;
3233
public static final int LOG_CACHE_HITS = 32;
3334
public static final int LOG_CACHE_ALL = 64;
35+
public static final int LOG_TREE = 128;
3436
}
3537

objectbox-java/src/main/java/io/objectbox/model/EntityFlags.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,5 @@ private EntityFlags() { }
4343
* It might be OK if you can somehow ensure that only a single device will create new IDs.
4444
*/
4545
public static final int SHARED_GLOBAL_IDS = 4;
46-
47-
public static final String[] names = { "USE_NO_ARG_CONSTRUCTOR", "SYNC_ENABLED", "", "SHARED_GLOBAL_IDS", };
48-
49-
public static String name(int e) { return names[e - USE_NO_ARG_CONSTRUCTOR]; }
5046
}
5147

objectbox-java/src/main/java/io/objectbox/model/SyncFlags.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,5 @@ private SyncFlags() { }
2828
* Enable (rather extensive) logging on how IDs are mapped (local <-> global)
2929
*/
3030
public static final int DEBUG_LOG_ID_MAPPING = 1;
31-
32-
public static final String[] names = { "DEBUG_LOG_ID_MAPPING", };
33-
34-
public static String name(int e) { return names[e - DEBUG_LOG_ID_MAPPING]; }
3531
}
3632

objectbox-java/src/main/java/io/objectbox/query/OrderFlags.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,5 @@ private OrderFlags() { }
4646
* null values should be treated equal to zero (scalars only).
4747
*/
4848
public static final int NULLS_ZERO = 16;
49-
50-
public static final String[] names = { "DESCENDING", "CASE_SENSITIVE", "", "UNSIGNED", "", "", "", "NULLS_LAST", "", "", "", "", "", "", "", "NULLS_ZERO", };
51-
52-
public static String name(int e) { return names[e - DESCENDING]; }
5349
}
5450

0 commit comments

Comments
 (0)