Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8162427

fix indent in CompileTask::print_tty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b131
    • generic
    • generic

      Most annoying code snippet ever:

      void CompileTask::print_tty() {
        ttyLocker ttyl; // keep the following output all in one block
        // print compiler name if requested
        if (CIPrintCompilerName) tty->print("%s:", CompileBroker::compiler_name(comp_level()));
          print(tty);
      }

      The indent of print "suggests" it is under the if but of course it's not. Use braces!

            twisti Christian Thalinger (Inactive)
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: