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

Small refactor of SummaryTab.java to limit scope of warning suppression

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • None
    • core-svc

    Description

      As suggested by Stuart here:
      https://github.com/openjdk/jdk/pull/6465#discussion_r760694277
      if the call to (now deprecated) getObjectPendingFinalizationCount() on L219 is moved to a local variable declaration, the @SuppressWarnings("deprecation") can be moved to apply to just the local variable, instead of the entire formatSummary() method.

      Attachments

        Issue Links

          Activity

            People

              bchristi Brent Christian
              bchristi Brent Christian
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: