So are you proposing that Intellij rename the feature from
"replace all occurrences" to
"replace all occurrences that we can easily see with our current parser" :-) ?

Neil

At 10:06 AM 3/24/2002 -0800, you wrote:
>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


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

Reply via email to