Optimize convertToNumber method (#14159)

This commit is contained in:
TomlongTK 2024-05-08 11:51:00 +08:00 committed by GitHub
parent 9d659eba44
commit faefee2cb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ public class RpcUtils {
timeout = Long.parseLong((String) obj);
} else if (obj instanceof Number) {
timeout = ((Number) obj).longValue();
} else {
} else if (obj != null) {
timeout = Long.parseLong(obj.toString());
}
} catch (Exception e) {