Commit 1337991c authored by Dominique Marcadet's avatar Dominique Marcadet

getConsole() returns NonNull

parent f6b24a83
......@@ -21,6 +21,8 @@ package fr.centralesupelec.edf.riseclipse.util;
import java.util.HashSet;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
/**
* Base class for RiseClipse consoles.
* It implements the Singleton design pattern, handle the level of messages
......@@ -67,7 +69,8 @@ public abstract class AbstractRiseClipseConsole implements IRiseClipseConsole {
*
* @return The unique instance of AbstractRiseClipseConsole
*/
public static synchronized IRiseClipseConsole getConsole() {
@SuppressWarnings( "null" )
public static synchronized @NonNull IRiseClipseConsole getConsole() {
if( console == null ) {
console = new TextRiseClipseConsole();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment