MCPcopy Create free account
hub / github.com/e2wugui/zeze / toStr

Method toStr

ZezeJava/ZezeJava/src/main/java/Zeze/Net/AsyncSocket.java:271–280  ·  view source on GitHub ↗
(@Nullable Object obj)

Source from the content-addressed store, hash-verified

269 }
270
271 public static @NotNull String toStr(@Nullable Object obj) {
272 if (ENABLE_PROTOCOL_LOG_OLD)
273 return String.valueOf(obj);
274 var jw = JsonWriter.local();
275 try {
276 return jw.clear().setFlagsAndDepthLimit(JsonWriter.FLAG_NO_QUOTE_KEY, 16).write(obj).toString();
277 } finally {
278 jw.clear();
279 }
280 }
281
282 public abstract @Nullable TimeThrottle getTimeThrottle();
283

Callers 7

DefaultLogActionMethod · 0.95
ProcessLinkBrokenMethod · 0.95
ProcessLoginRequestMethod · 0.95
ProcessReLoginRequestMethod · 0.95
ProcessLogoutRequestMethod · 0.95
logMethod · 0.95

Calls 5

localMethod · 0.95
setFlagsAndDepthLimitMethod · 0.80
writeMethod · 0.65
clearMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected