eldiem commented on a change in pull request #3549: [ZEPPELIN-4476] Running 
Trash Restore will result in an error
URL: https://github.com/apache/zeppelin/pull/3549#discussion_r355819651
 
 

 ##########
 File path: 
zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java
 ##########
 @@ -297,11 +298,13 @@ public void emptyTrash(AuthenticationInfo subject) 
throws IOException {
   public void restoreAll(AuthenticationInfo subject) throws IOException {
     NoteManager.Folder trash = noteManager.getTrashFolder();
     // restore notes under trash folder
-    for (NoteManager.NoteNode noteNode : trash.getNotes().values()) {
+    List<NoteNode> notes = 
trash.getNotes().values().stream().collect(Collectors.toList());
 
 Review comment:
   I'll add a comment

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to