Class.newInstance()
is marked deprecated. Documentation does not suggest any alternatives. How are we meant to create instances now?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Refer to Google errorprone's documentation (for example) for a description of why.
To quote Java 9's javadoc: