mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
VirtualPointers: correctly writing the cause of leaked pointers
This commit is contained in:
+3
-1
@@ -137,7 +137,9 @@ public class VirtualFilePointerImpl extends UserDataHolderBase implements Virtua
|
||||
@Override
|
||||
public void printStackTrace(PrintStream s) {
|
||||
//noinspection IOResourceOpenedButNotSafelyClosed
|
||||
printStackTrace(new PrintWriter(s));
|
||||
PrintWriter writer = new PrintWriter(s);
|
||||
printStackTrace(writer);
|
||||
writer.flush();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user