Subversion Repository Public Repository

litesoft

Diff Revisions 820 vs 821 for /trunk/Java/GWT/Server/tests/org/litesoft/GWT/client/localstorage/Html5LocalStorageTestImpl.java

Diff revisions: vs.
  @@ -2,7 +2,6 @@
2 2
3 3 import org.litesoft.core.simpletypes.*;
4 4 import org.litesoft.core.typeutils.*;
5 - import org.litesoft.core.util.*;
6 5
7 6 import org.litesoft.core.annotations.*;
8 7
  @@ -21,7 +20,7 @@
21 20
22 21 public Html5LocalStorageTestImpl( int pMaxSize )
23 22 {
24 - mMaxSize = UtilsCommon.assertPositive( "MaxSize", pMaxSize );
23 + mMaxSize = Integers.assertPositive( "MaxSize", pMaxSize );
25 24 }
26 25
27 26 /**
  @@ -46,7 +45,7 @@
46 45 */
47 46 public synchronized String key( int index )
48 47 {
49 - index = UtilsCommon.assertNotNegative( "index", index );
48 + index = Integers.assertNonNegative( "index", index );
50 49 if ( mKeys == null )
51 50 {
52 51 mKeys = mStore.keySet().toArray( new String[mStore.size()] );
  @@ -64,7 +63,7 @@
64 63 */
65 64 public synchronized String getItem( @NotNull String key )
66 65 {
67 - return mStore.get( UtilsCommon.assertNotNullNotEmpty( "key", key ) );
66 + return mStore.get( Strings.assertNotNullNotEmpty( "key", key ) );
68 67 }
69 68
70 69 /**
  @@ -83,7 +82,7 @@
83 82 */
84 83 public synchronized boolean setItem( @NotNull String key, @NotNull String value )
85 84 {
86 - key = UtilsCommon.assertNotNullNotEmpty( "key", key );
85 + key = Strings.assertNotNullNotEmpty( "key", key );
87 86 value = Objects.assertNotNull( "value", value );
88 87 if ( null == mStore.put( key, value ) )
89 88 {
  @@ -106,7 +105,7 @@
106 105 */
107 106 public synchronized void removeItem( @NotNull String key )
108 107 {
109 - if ( null != mStore.remove( UtilsCommon.assertNotNullNotEmpty( "key", key ) ) )
108 + if ( null != mStore.remove( Strings.assertNotNullNotEmpty( "key", key ) ) )
110 109 {
111 110 mKeys = null;
112 111 }