mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
add double checking lock for singleton
This commit is contained in:
parent
1cce1c6580
commit
92472f98be
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ public class NotebookAuthorization {
|
|||
|
||||
private NotebookAuthorization() {}
|
||||
|
||||
public static NotebookAuthorization init(ZeppelinConfiguration config) {
|
||||
public static synchronized NotebookAuthorization init(ZeppelinConfiguration config) {
|
||||
if (instance == null) {
|
||||
instance = new NotebookAuthorization();
|
||||
conf = config;
|
||||
|
|
|
|||
Loading…
Reference in a new issue