remove debug printing

This commit is contained in:
peter
2012-05-31 17:51:22 +02:00
parent f2765fe5ef
commit 10b963783a
2 changed files with 0 additions and 2 deletions
@@ -37,7 +37,6 @@ public class SofterReference<T> {
@SuppressWarnings("UnusedDeclaration") private static LowMemoryWatcher ourWatcher = LowMemoryWatcher.register(new Runnable() {
@Override
public void run() {
System.out.println("SofterReference.run: " + ourRegistry.size());
for (SofterReference reference : ourRegistry.copyAndClear()) {
reference.weaken();
}
@@ -52,7 +52,6 @@ public class LowMemoryWatcher {
((NotificationEmitter)ManagementFactory.getMemoryMXBean()).addNotificationListener(new NotificationListener() {
public void handleNotification(Notification n, Object hb) {
if (MemoryNotificationInfo.MEMORY_THRESHOLD_EXCEEDED.equals(n.getType()) || MemoryNotificationInfo.MEMORY_COLLECTION_THRESHOLD_EXCEEDED.equals(n.getType())) {
System.out.println(n.getType());
for (LowMemoryWatcher watcher : ourInstances) {
try {
watcher.myRunnable.run();