We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe98f46 commit 83dde0fCopy full SHA for 83dde0f
1 file changed
src/main/java/com/google/cloud/logging/logback/LoggingAppender.java
@@ -195,7 +195,7 @@ <T> List<T> getEnhancers(Set<String> classNames) {
195
private <T> T getEnhancer(String enhancerClassName) {
196
try {
197
Class<T> clz = (Class<T>) Loader.loadClass(enhancerClassName.trim());
198
- return clz.newInstance();
+ return clz.getDeclaredConstructor().newInstance();
199
} catch (Exception ex) {
200
// If we cannot create the enhancer we fallback to null
201
}
0 commit comments