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

Comparison of String objects using =! in SwingSet2.setLookAndFeel(String)

    XMLWordPrintable

Details

    Description

      There is a comparison of String objects using the =! operator in method SwingSet2.setLookAndFeel(String):

         public void setLookAndFeel(String laf) {
      if(currentLookAndFeel != laf) {
      currentLookAndFeel = laf;
         [--snip--]

      As it is not guaranteed, that all Strings passed to the setLookAndFeel() are in the String pool, the equal() method should be used for the comparison.

      ###@###.### 2005-1-25 14:43:23 GMT

      Attachments

        Activity

          People

            shickeysunw Shannon Hickey (Inactive)
            jloefflm Johann Löfflmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: