RFR of lang level code migration patches

Remi Forax forax at univ-mlv.fr
Sun Dec 22 20:00:34 UTC 2013


On 12/22/2013 08:40 PM, Brian Goetz wrote:
>> I can take on java.lang.
>
> When your IDE tells you about "unnecessary boxing" in 
> Integer.valueOf(), or "inner class can be converted to lambda" in 
> LambdaMetafacory, don't believe it :)
>
>

I've found that bug recently, test with your favorite IDE:
   Runnable runnable = new Runnable() {
     public strictfp void run() {  // works with synchronized too
        ...
     }
   };

It will trigger a refactoring to:
   Runnable runnable = () -> { ... };  // where is my strictfp ?

Lambda Refactoring is a bit too young to be trusted :)

Rémi





More information about the core-libs-dev mailing list