Fix style

This commit is contained in:
Lee moon soo 2016-06-08 13:47:35 -07:00
parent 1dc4409464
commit bfcdf347dd
2 changed files with 10 additions and 3 deletions

View file

@ -927,10 +927,11 @@ public class InterpreterFactory implements InterpreterGroupFactory {
updatePropertiesFromRegisteredInterpreter(property, className);
LazyOpenInterpreter intp = new LazyOpenInterpreter(new RemoteInterpreter(
RemoteInterpreter remoteInterpreter = new RemoteInterpreter(
property, noteId, className, conf.getInterpreterRemoteRunnerPath(),
interpreterPath, localRepoPath, connectTimeout,
maxPoolSize, remoteInterpreterProcessListener, appEventListener);
maxPoolSize, remoteInterpreterProcessListener, appEventListener)
remoteInterpreter.setEnv(env);
LazyOpenInterpreter intp = new LazyOpenInterpreter(remoteInterpreter);
return intp;

View file

@ -153,7 +153,13 @@ public class Notebook implements NoteEventListener {
*/
public Note createNote(List<String> interpreterIds) throws IOException {
NoteInterpreterLoader intpLoader = new NoteInterpreterLoader(replFactory);
Note note = new Note(notebookRepo, intpLoader, jobListenerFactory, notebookIndex, credentials, this);
Note note = new Note(
notebookRepo,
intpLoader,
jobListenerFactory,
notebookIndex,
credentials,
this);
intpLoader.setNoteId(note.id());
synchronized (notes) {
notes.put(note.id(), note);