MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / init

Method init

CodenameOne/src/com/codename1/io/Storage.java:113–120  ·  view source on GitHub ↗
(Object data)

Source from the content-addressed store, hash-verified

111 /// - `data`: @param data either the name of the application e.g. on CDC platforms or
112 /// a context object on other platforms
113 private static synchronized void init(Object data) {
114 if (Util.getImplementation() != null) {
115 Util.getImplementation().setStorageData(data);
116 }
117 if (INSTANCE == null) {
118 INSTANCE = new Storage();
119 }
120 }
121
122 /// Returns true if the storage is initialized
123 ///

Callers 1

getInstanceMethod · 0.95

Calls 2

getImplementationMethod · 0.95
setStorageDataMethod · 0.45

Tested by

no test coverage detected