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

ClassLoader.c cleanups

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 19
    • Component/s: core-libs
    • Labels:
      None

      Description

      I noticed some older-style code in ClassLoader.c while working on another issue. It's starting to feel like spring where I am, and I'd like to do a little tidying.

      Suggested changes:

      - Alphabetize includes
      - Change instances of 'if (ptr == 0)' to 'if (ptr == NULL)'
      - Change instances of 'return 0' to 'return NULL'
      - Wrap the bodies of if statements in curly-braces.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tsteele Tyler Steele
              Reporter:
              tsteele Tyler Steele
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: