Coding style
From jedit
This page describe the coding style to use in jEdit's core. It could also be used in plugins if you like it.
Contents |
Indentation
Tabs are used to indent code.
Braces
Braces are placed on next line at the same indentation level. The code between the braces is indented ex:
if (something)
{
//some code
}
for (int i = 0;i<10;i++)
{
//some code
}
public class Foo
{
private String test;
}
Annotations
@Deprecated
Deprecated elements must have a @Deprecated annotation.
@Override
A method that override a method of a superclass or implement a method from an interface must have a @Override annotation.
