mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
refactor: remove redundant casting
This commit is contained in:
parent
3b0859def1
commit
c175e4da4d
@ -178,13 +178,13 @@ public class CoreAndroid extends CordovaPlugin {
|
|||||||
|
|
||||||
}
|
}
|
||||||
else if (value.getClass().equals(String.class)) {
|
else if (value.getClass().equals(String.class)) {
|
||||||
params.put(key, (String)value);
|
params.put(key, value);
|
||||||
}
|
}
|
||||||
else if (value.getClass().equals(Boolean.class)) {
|
else if (value.getClass().equals(Boolean.class)) {
|
||||||
params.put(key, (Boolean)value);
|
params.put(key, value);
|
||||||
}
|
}
|
||||||
else if (value.getClass().equals(Integer.class)) {
|
else if (value.getClass().equals(Integer.class)) {
|
||||||
params.put(key, (Integer)value);
|
params.put(key, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user