modify null check to Preconditions

This commit is contained in:
astroshim 2016-10-24 14:48:36 +09:00
parent 72f3e4f164
commit af8a2d8ca5

View file

@ -953,8 +953,9 @@ public class InterpreterFactory implements InterpreterGroupFactory {
public void restart(String settingId, String noteId) {
InterpreterSetting intpsetting = interpreterSettings.get(settingId);
if (intpsetting != null &&
noteIdIsExist(noteId) &&
Preconditions.checkNotNull(intpsetting);
if (noteIdIsExist(noteId) &&
intpsetting.getOption().isProcess()) {
intpsetting.closeAndRemoveInterpreterGroup(noteId);
return;