If you "extract variable", and "replace all occurrences" on
     "a" + "b"
in the code below,
IDEA will only detect 2 occurences, and not the 4 possibles ;


Before:

         System.out.println(
                   "a" + "b"
                 + "a" + "b"
         );
         System.out.println(
                   "a" + "b"
                 + "a" + "b"
         );

After:

         String COMMON = "a" + "b";
         System.out.println(
                   COMMON
                 + "a" + "b"
         );
         System.out.println(
                   COMMON
                 + "a" + "b"
         );


Alain Ravet


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to