File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
visualvm/heapviewer/src/org/graalvm/visualvm/heapviewer/java/impl Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 66
66
class JavaThreadsProvider {
67
67
68
68
private static final String OPEN_THREADS_URL = "file:/stackframe/" ; // NOI18N
69
-
69
+ private static final String LOCAL_VARIABLE = Bundle .JavaThreadsProvider_LocalVariable ();
70
+ private static final String JNI_LOCAL = Bundle .JavaThreadsProvider_JniLocal ();
71
+
70
72
71
73
static String getThreadName (Instance instance ) {
72
74
String threadName = getThreadInstanceName (instance );
@@ -166,9 +168,9 @@ protected HeapViewerNode[] computeChildren(RootNode root) {
166
168
if (localInstance != null ) {
167
169
String text = "" ;
168
170
if (GCRoot .JAVA_FRAME .equals (local .getKind ())) {
169
- text = Bundle . JavaThreadsProvider_LocalVariable () ;
171
+ text = LOCAL_VARIABLE ;
170
172
} else if (GCRoot .JNI_LOCAL .equals (local .getKind ())) {
171
- text = Bundle . JavaThreadsProvider_JniLocal () ;
173
+ text = JNI_LOCAL ;
172
174
}
173
175
localVariableNodes .add (new LocalObjectNode (localInstance , text ));
174
176
} else {
@@ -261,9 +263,9 @@ static String getThreadsHTML(HeapContext context) {
261
263
if (localInstance != null ) {
262
264
String text = "" ;
263
265
if (GCRoot .JAVA_FRAME .equals (local .getKind ())) {
264
- text = Bundle . JavaThreadsProvider_LocalVariable () ;
266
+ text = LOCAL_VARIABLE ;
265
267
} else if (GCRoot .JNI_LOCAL .equals (local .getKind ())) {
266
- text = Bundle . JavaThreadsProvider_JniLocal () ;
268
+ text = JNI_LOCAL ;
267
269
}
268
270
sb .append (" <span class=\" g\" >" + text + ":</span> " ).append (HeapUtils .instanceToHtml (localInstance , false , javaClassClass )).append ("<br>" ); // NOI18N
269
271
} else {
You can’t perform that action at this time.
0 commit comments