Convert to Scala Settings

Hi,

I'm trying to port a lot of Java code to Scala using the Refactor > "Convert to Scala" tool. It does make my life easier, but there's couple of things that I find annoying:

1. It strips out line comments like:

    // ------------------------------------------------------------------------
    // Important notes here

2. It strips out the types on private class variables by default:

private final PriceSeries nativePrice;

becomes

final private var nativePrice = null

3. It strips out the return types of private / package private functions by default:

void logTrade(Trade trade) { ... }

becomes

def logTrade(trade: Trade) = { ... }

We know in Dotty this is not going to work anymore, so I have to put back the :Unit

Is there any settings to change this default behavior?

Thanks,

Melvin

Please sign in to leave a comment.