Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Do not use errorerrMsg, etc.

...

Java 5

Java5 Java 5 added many additional useful features that significantly improve quality of code.

  • @Override
    • When overriding methods from parent class always use @Override annotation.
  • Generics
    • Allways use generics when types of classes are known in advance.
  • Use foreach loops whenever possible.
    • for (String s : list) { ...

Java 8

Java 8 added lambda expressions and Stream API.

While lambda expressions are more expressive and concise, good old anonymous classes are still preferred in Apache Ignite code base.

Stream API is convenient means of data processing but usages of this API should be avoided in most cases because it can lead to unpredictable and uncontrolled creation of class instances and therefore create additional pressure on GC.

@Annotations

All annotations must be placed on a separate line, except for @Nullable and @Override, as in the following example:

...