As far as I renmember "+" associates right-to-left and so 

"a"+"b"+"a"+b" is in fact (("a"+"b")+"a")+b"  so the second "a"+b" is broken 
apart and need not be replaced. Does it work correctly for "a"+"b"+("a"+b") ? 
If it does not then that is probably indeed a bug...

fedor.

On Sunday 24 March 2002 04:02 am, you wrote:
> 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

-- 
Alex Haley was adopted!

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

Reply via email to