Subversion Repository Public Repository

litesoft

Diff Revisions 916 vs 917 for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/server/pos/User.java

Diff revisions: vs.
  @@ -5,6 +5,7 @@
5 5 import org.litesoft.codec.*;
6 6 import org.litesoft.core.simpletypes.*;
7 7 import org.litesoft.core.typeutils.*;
8 + import org.litesoft.core.typeutils.Objects;
8 9 import org.litesoft.core.util.*;
9 10 import org.litesoft.exceptions.*;
10 11 import org.litesoft.orsup.selection.*;
  @@ -60,7 +61,7 @@
60 61 @Override
61 62 protected void LLsetHexPassword( String pHexPassword )
62 63 {
63 - LLsetPassword( (pHexPassword == null) ? null : new String( HexStringCodec.decode( pHexPassword ) ) );
64 + LLsetPassword( (pHexPassword == null) ? null : HexStringCodec.decode( pHexPassword ) );
64 65 }
65 66
66 67 @Override
  @@ -157,7 +158,7 @@
157 158 Object o = attemptRestrictedResourceLink( pRestrictedResource );
158 159 if ( o instanceof UserRestrictedResourcePair )
159 160 {
160 - return (UserRestrictedResourcePair<User, RestrictedResource>) o;
161 + return Cast.it( o );
161 162 }
162 163 throw new DisplayableRuntimeException( "RestrictedResource Not Authorized" );
163 164 }
  @@ -167,9 +168,9 @@
167 168 Object o = attemptRestrictedResourceLink( pCurrentRestrictedResource );
168 169 if ( o instanceof UserRestrictedResourcePair )
169 170 {
170 - return (UserRestrictedResourcePair<User, RestrictedResource>) o;
171 + return Cast.it( o );
171 172 }
172 - @SuppressWarnings({"unchecked"}) List<RestrictedResource> zAuthorizedRestrictedResources = (List) o;
173 + List<RestrictedResource> zAuthorizedRestrictedResources = Cast.it( o );
173 174 RestrictedResource zLastRestrictedResource = getLastRestrictedResource();
174 175 if ( zLastRestrictedResource != null )
175 176 {