diff options
author | Sven Gothel <[email protected]> | 2020-06-28 04:04:43 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-06-28 04:04:43 +0200 |
commit | ee81a5b84f7843d3507bb7c9e167cafc335d3f1b (patch) | |
tree | 32e4e7478c9c810d208839f37f15d6c9db26edb4 /java/direct_bt/tinyb/DBTNativeDownlink.java | |
parent | eb7a8f627c0e1160eb199cd226185aeadb65683b (diff) |
Java DBTNativeDownlink toString(): If !valid use alternative short representation adding '✝' after type.
This shall allow still using toString() while marking it deleted,
after 'notifyDeleted()' or 'delete()' has been issued.
Diffstat (limited to 'java/direct_bt/tinyb/DBTNativeDownlink.java')
-rw-r--r-- | java/direct_bt/tinyb/DBTNativeDownlink.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/direct_bt/tinyb/DBTNativeDownlink.java b/java/direct_bt/tinyb/DBTNativeDownlink.java index b0b87057..d3535ce0 100644 --- a/java/direct_bt/tinyb/DBTNativeDownlink.java +++ b/java/direct_bt/tinyb/DBTNativeDownlink.java @@ -74,9 +74,9 @@ public abstract class DBTNativeDownlink * i.e. native instance destructed in native land. */ private synchronized void notifyDeleted() { - // System.err.println("***** notifyDeleted: "+getClass().getSimpleName()+": valid "+isValid+" -> false, handle 0x"+Long.toHexString(nativeInstance)+" -> null"); isValid = false; nativeInstance = 0; + // System.err.println("***** notifyDeleted: "+getClass().getSimpleName()+": valid "+isValid+" -> false, handle 0x"+Long.toHexString(nativeInstance)+" -> null: "+toString()); } /** |