Will it be available in Ariadna?
Tom
On Tue, 21 May 2002 19:47:29 GMT, [EMAIL PROTECTED] (Thomas
Singer) wrote:
> Sorry, Mike, this is not the same. I will explain will the help of an
> example:
>
> class Test {
> private static final String HELLO = "Hello";
>
> public void print() {
> System.out.println(HELLO);
> }
> }
>
> After "Encapsulate field" I get:
>
> public class Test {
> private static final String HELLO = "Hello";
>
> public void print() {
> System.out.println(getHELLO());
> }
>
> public static String getHELLO() {
> return HELLO;
> }
> }
>
> After "Inline method" I get:
>
> class Test {
> private static final String HELLO = "Hello";
>
> public void print() {
> System.out.println(HELLO);
> }
> }
>
> But I would expect after inlining HELLO to get:
>
> class Test {
> public void print() {
> System.out.println("Hello");
> }
> }
>
> Tom
>
>
> On Mon, 29 Apr 2002 21:59:33 +0400, "Mike Aizatsky"
> <[EMAIL PROTECTED]> wrote:
>
> >Thomas,
> >
> >You can always perform "encapsulate field" and "inline method" refactorings
> >in tandem.
> >
> >--
> >Best regards,
> >Mike Aizatsky.
> >------------------------------
> >JetBrains, Inc / IntelliJ Software
> >http://www.intellij.com
> >"Develop with pleasure!"
> >
> >
> >"Thomas Singer" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]...
> >> Why can't IDEA inline fields, especially static finals?
> >>
> >> Tom
> >
> >
>
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features