help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

java-mode indenting after @Override


From: Patrick Rutkowski
Subject: java-mode indenting after @Override
Date: Fri, 22 Apr 2011 13:47:31 -0400

Have a look at the following code snippet of Java indented under
java-mode:

=======================================================================
01:  package com.rutski89.HelloWorld;
02:  
03:  import android.app.Activity;
04:  import android.os.Bundle;
05:  
06:  public class HelloWorld extends Activity
07:  {
08:      /** Called when the activity is first created. */
09:      @Override
10:          public void onCreate(Bundle savedInstanceState)
11:      {
12:          super.onCreate(savedInstanceState);
13:          setContentView(R.layout.main);
14:      }
15:  }
=======================================================================

Line 10 is too deeply indented, any ideas about which c-set-offset
variable to change to fix that? The only customizations I already have
are:

(c-set-offset 'substatement-open 0)
(c-set-offset 'inline-open 0))

Many thanks in advance for any tips,
-Patrick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]