Hi Alain.
Inlining only works for variables which are assigned to in their definition
and not reassigned. This won't work:
String someString;
...
someString = "some value";
...
cannotInline( someString );
and neither will this:
String someString = "some value";
...
someString = "another value";
...
stillCannotInline( someString );
I guess it would be possible to inline the first case (but obviously not the
second case) but IDEA doesn't do this yet.
Cheers,
Dan
> -----Original Message-----
> From: Alain Ravet [mailto:[EMAIL PROTECTED]]
> Sent: 22 December 2001 19:33
> To: [EMAIL PROTECTED]
> Subject: [Eap-list] inline : here and not there
>
>
> I can inline "_name" in the 2nd line
>
> here :
> String _name = "klkl";
> return _name ;
>
> but not here :
> _name = "klkl";
> return _name ;
>
> Why ?
>
>
> --Alain Ravet
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
>
***************************************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify [EMAIL PROTECTED]
immediately.
This footnote also confirms that this email message has been swept for the
presence of computer viruses.
***************************************************************************************
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list