@@ -154,7 +154,7 @@ public synchronized static void completion(Postcard postcard) {
154154 setValue (postcard ,
155155 params .getValue (),
156156 params .getKey (),
157- resultMap .get (TextUtils . getRight ( params .getKey () )));
157+ resultMap .get (params .getKey ()));
158158 }
159159
160160 // Save params name which need autoinject.
@@ -200,37 +200,35 @@ public synchronized static void completion(Postcard postcard) {
200200 */
201201 private static void setValue (Postcard postcard , Integer typeDef , String key , String value ) {
202202 try {
203- String currentKey = TextUtils .getLeft (key );
204-
205203 if (null != typeDef ) {
206204 switch (typeDef ) {
207205 case Consts .DEF_BOOLEAN :
208- postcard .withBoolean (currentKey , Boolean .parseBoolean (value ));
206+ postcard .withBoolean (key , Boolean .parseBoolean (value ));
209207 break ;
210208 case Consts .DEF_BYTE :
211- postcard .withByte (currentKey , Byte .valueOf (value ));
209+ postcard .withByte (key , Byte .valueOf (value ));
212210 break ;
213211 case Consts .DEF_SHORT :
214- postcard .withShort (currentKey , Short .valueOf (value ));
212+ postcard .withShort (key , Short .valueOf (value ));
215213 break ;
216214 case Consts .DEF_INT :
217- postcard .withInt (currentKey , Integer .valueOf (value ));
215+ postcard .withInt (key , Integer .valueOf (value ));
218216 break ;
219217 case Consts .DEF_LONG :
220- postcard .withLong (currentKey , Long .valueOf (value ));
218+ postcard .withLong (key , Long .valueOf (value ));
221219 break ;
222220 case Consts .DEF_FLOAT :
223- postcard .withFloat (currentKey , Float .valueOf (value ));
221+ postcard .withFloat (key , Float .valueOf (value ));
224222 break ;
225223 case Consts .DEF_DOUBLE :
226- postcard .withDouble (currentKey , Double .valueOf (value ));
224+ postcard .withDouble (key , Double .valueOf (value ));
227225 break ;
228226 case Consts .DEF_STRING :
229227 default :
230- postcard .withString (currentKey , value );
228+ postcard .withString (key , value );
231229 }
232230 } else {
233- postcard .withString (currentKey , value );
231+ postcard .withString (key , value );
234232 }
235233 } catch (Throwable ex ) {
236234 logger .warning (Consts .TAG , "LogisticsCenter setValue failed! " + ex .getMessage ());
0 commit comments