Skip to content

Coding Standards

Oleh Shklyar edited this page Oct 28, 2019 · 2 revisions

Coding standards and contributing

See here for details.

Tools and libraries

New tests use JUnit 4.11. Legacy tests use JUnit 3.8.

Samples of code from the project

Check before logging

private boolean logMINOR = Logger.shouldLog(LogLevel.MINOR, this);
if (logMINOR) { /* log stuff */ }

Some time ago, this design was useful for saving computing resources. Today, such a check is less necessary. Therefore, it is preferable to simply log what is needed and let the logger do the checking. discussion_r299650198

Clone this wiki locally
You can’t perform that action at this time.