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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-svc

      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.

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

              Created:
              Updated: