litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/localstorage/LocalStorageImpl.java
|
@@ -3,8 +3,6 @@ |
3 |
3 |
|
import org.litesoft.commonfoundation.annotations.*; |
4 |
4 |
|
import org.litesoft.commonfoundation.base.*; |
5 |
5 |
|
import org.litesoft.commonfoundation.iterators.*; |
6 |
|
- |
import org.litesoft.commonfoundation.typeutils.Objects; |
7 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
8 |
6 |
|
import org.litesoft.core.simpletypes.nonpublic.*; |
9 |
7 |
|
|
10 |
8 |
|
import java.util.*; |
|
@@ -22,7 +20,7 @@ |
22 |
20 |
|
private int mVersion = 0; |
23 |
21 |
|
|
24 |
22 |
|
public LocalStorageImpl( Html5LocalStorage pHtml5LS ) { |
25 |
|
- |
mHtml5LS = Objects.assertNotNull( "Html5LocalStorage", pHtml5LS ); |
|
23 |
+ |
mHtml5LS = Confirm.isNotNull( "Html5LocalStorage", pHtml5LS ); |
26 |
24 |
|
} |
27 |
25 |
|
|
28 |
26 |
|
public LocalStorageImpl() { |
|
@@ -134,7 +132,7 @@ |
134 |
132 |
|
} |
135 |
133 |
|
|
136 |
134 |
|
private String innerGet( String pKey ) { |
137 |
|
- |
return mHtml5LS.getItem( Strings.assertNotNullNotEmpty( "Key", pKey ) ); |
|
135 |
+ |
return mHtml5LS.getItem( Confirm.significant( "Key", pKey ) ); |
138 |
136 |
|
} |
139 |
137 |
|
|
140 |
138 |
|
private String keyToString( Object pKey ) { |
|
@@ -145,7 +143,7 @@ |
145 |
143 |
|
} |
146 |
144 |
|
|
147 |
145 |
|
private String normalize( String pKey ) { |
148 |
|
- |
return Strings.assertNotNullNotEmpty( "Key", pKey ); |
|
146 |
+ |
return Confirm.significant( "Key", pKey ); |
149 |
147 |
|
} |
150 |
148 |
|
|
151 |
149 |
|
/** |