Where to enter @Override?

most IDEs and editors have no consensus on how to identify @Override. and it is not described in the coding style for java http://www.oracle.com/technetwork/java/codeconvtoc-136057.html

I use vim exclusively and it creates a new level of indentation. Therefore, I tend to think that the right

@Override public boolean onTouch(View v, MotionEvent event) {

But each documentation shows

@Override
public boolean onTouch(View v, MotionEvent event) {

But most of the time, the autoidents editor, which

   @Override
      public boolean onTouch(View v, MotionEvent event) {

So is there a “right” way? Should I fix my java.vim syntax rules?

+5
source share
2 answers

"" ... , . , :

@Override
public boolean onTouch(View v, MotionEvent event) {

, , , / .

+13

. java . , , , . , @override .

0

All Articles