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

java.util.logging.Level should implement Comparable<Level>

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 5.0
    • core-libs

      Level should be Comparable<Level>. Otherwise when you try to see whether one Level is more severe than other, you wind up needing to do an integer comparison on intValue; e.g.:

      http://hg.netbeans.org/main-silver/file/4d394a5c7c7a/nbjunit/src/org/netbeans/junit/NbModuleLogHandler.java

      if (msg.intValue() <= record.getLevel().intValue()) ...

            Unassigned Unassigned
            jglick Jesse Glick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: