At 11:07 26/03/2002 +0100, you wrote:
>Problem 1:
>You cannot use "extract variable" to transform
>
>     private static final int COOKIE_LIFESPAN = 60 * 24 * 3600;


This is to do with Java's associativity rules - multiplication associates 
left-to-right, so your expression is parsed as:

( ( 60 * 24 ) * 3600 )

which doesn't contain an expression 24 * 3600 to extract.  If you put the 
cursor in side the 3600 and hit ctrl-W a couple of times, you'll see what I 
mean.  The first time will select 3600, the second will select the whole of 
60 * 24 * 3600.

Cheers,
Dan North


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

Reply via email to