You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log.log(ResourceLogLevel, Log.LogSubject.JavaCrtResource, String.format("Instance of class %s(%d) is adding a reference to instance of class %s(%d)", this.getClass().getCanonicalName(), id, resource.getClass().getCanonicalName(), resource.id));
134
-
}
135
136
}
136
137
137
138
/**
@@ -146,9 +147,13 @@ public void removeReferenceTo(CrtResource resource) {
146
147
147
148
if (debugNativeObjects) {
148
149
if (removed) {
149
-
Log.log(ResourceLogLevel, Log.LogSubject.JavaCrtResource, String.format("Instance of class %s(%d) is removing a reference to instance of class %s(%d)", this.getClass().getCanonicalName(), id, resource.getClass().getCanonicalName(), resource.id));
Log.log(ResourceLogLevel, Log.LogSubject.JavaCrtResource, String.format("Instance of class %s(%d) erroneously tried to remove a reference to instance of class %s(%d) that it was not referencing", this.getClass().getCanonicalName(), id, resource.getClass().getCanonicalName(), resource.id));
@@ -306,11 +359,12 @@ public void decRef(CrtResource decRefInstigator) {
306
359
releaseReferences();
307
360
}
308
361
}
362
+
309
363
/**
310
364
* Decrements the reference count to this resource.
311
365
*/
312
366
publicvoiddecRef() {
313
-
decRef(null);
367
+
decRef((String)null);
314
368
}
315
369
316
370
/**
@@ -320,7 +374,9 @@ public void decRef() {
320
374
*/
321
375
protectedvoidreleaseReferences() {
322
376
if (debugNativeObjects) {
323
-
Log.log(ResourceLogLevel, Log.LogSubject.JavaCrtResource, String.format("Instance of class %s(%d) closing all referenced objects", this.getClass().getCanonicalName(), id));
0 commit comments