hotspot/src/share/vm/utilities/xmlstream.cpp
changeset 46329 53ccc37bda19
parent 37248 11a660dbbb8e
child 46589 f1c04490ded1
equal deleted inserted replaced
46328:6061df52d610 46329:53ccc37bda19
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   420 
   420 
   421 
   421 
   422 // ------------------------------------------------------------------
   422 // ------------------------------------------------------------------
   423 // Output a klass attribute, in the form " klass='pkg/cls'".
   423 // Output a klass attribute, in the form " klass='pkg/cls'".
   424 // This is used only when there is no ciKlass available.
   424 // This is used only when there is no ciKlass available.
   425 void xmlStream::klass(KlassHandle klass) {
   425 void xmlStream::klass(Klass* klass) {
   426   assert_if_no_error(inside_attrs(), "printing attributes");
   426   assert_if_no_error(inside_attrs(), "printing attributes");
   427   if (klass.is_null())  return;
   427   if (klass == NULL) return;
   428   print_raw(" klass='");
   428   print_raw(" klass='");
   429   klass_text(klass);
   429   klass_text(klass);
   430   print_raw("'");
   430   print_raw("'");
   431 }
   431 }
   432 
   432 
   433 void xmlStream::klass_text(KlassHandle klass) {
   433 void xmlStream::klass_text(Klass* klass) {
   434   assert_if_no_error(inside_attrs(), "printing attributes");
   434   assert_if_no_error(inside_attrs(), "printing attributes");
   435   if (klass.is_null())  return;
   435   if (klass == NULL) return;
   436   //klass->print_short_name(log->out());
   436   //klass->print_short_name(log->out());
   437   klass->name()->print_symbol_on(out());
   437   klass->name()->print_symbol_on(out());
   438 }
   438 }
   439 
   439 
   440 void xmlStream::name(const Symbol* name) {
   440 void xmlStream::name(const Symbol* name) {