Cleanup all unsafe and unchecked compiler warnings.

This commit is contained in:
John Blum
2020-07-23 14:56:10 -07:00
parent ba24c50ba2
commit 20b8c2d172
4 changed files with 14 additions and 12 deletions

View File

@@ -199,7 +199,7 @@ public abstract class LogbackSupport {
appenderName, nullSafeTypeName(appenderType), nullSafeLoggerName(logger))));
}
@SuppressWarnings("all")
@SuppressWarnings({ "rawtypes", "unchecked" })
private static <E, T extends Appender<E>> Class<T> nullSafeAppenderType(Class<T> appenderType) {
return appenderType != null ? appenderType : (Class) Appender.class;
}