Commit 4191955d authored by yanzg's avatar yanzg

修复等待时间

parent ac25268e
......@@ -18,8 +18,8 @@ public class ObjectEach {
* @param consumer 消费者,其中包含名称,值,方法(map时为空)
*/
public static void each(Object target, ObjectEachItem<String, Object, MethodField> consumer) {
if (target instanceof Map) {
eachMap((Map) target, consumer);
if (target instanceof Map<?,?>) {
eachMap((Map<?,?>) target, consumer);
} else {
eachObject(target, consumer);
}
......@@ -31,7 +31,7 @@ public class ObjectEach {
* @param target 目标对象
* @param consumer 遍历的字段,值,方法
*/
private static void eachMap(Map target, ObjectEachItem<String, Object, MethodField> consumer) {
private static void eachMap(Map<?,?> target, ObjectEachItem<String, Object, MethodField> consumer) {
for (Object key : target.keySet()) {
Object fromValue = target.get(key);
consumer.accept(StringHelper.toString(key), fromValue, null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment