1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Coding style

From jedit

Revision as of 19:29, 24 January 2012 by Kpouer (Talk | contribs)
Jump to: navigation, search

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.

Personal tools