Sometimes (!?) Android Studio inserts line breaks into empty Java blocks ({}). For instance, if I copy this:
Log.d(TAG, new Object(){}.getClass().getEnclosingClass().getName());
when pasting, it may turn it into:
Log.d(TAG, new Object(){
}.getClass().getEnclosingClass().getName());
Which is super annoying. Sometimes it does, sometimes it does not. I'm tempted to think it may be a bug. I've not yet been able to reproduce deterministically. I'd like to get rid this behaviour. Any clue? Bug or hard to set feature?