Codestyle: generics, deprecated methods removed, maven config fixed

This commit is contained in:
Serge Rider
2022-06-08 11:10:07 +03:00
parent 512457aaed
commit d7a4d09c29
2 changed files with 2 additions and 2 deletions
@@ -127,7 +127,7 @@ public class WebUserOriginInfo implements WebObjectOrigin {
Type[] typeArguments = ((ParameterizedType) providerSuperClass).getActualTypeArguments();
if (typeArguments.length == 1 && typeArguments[0] instanceof Class) {
// Wrong session type for this auth provider
return ((Class) typeArguments[0]).isInstance(authSession);
return ((Class<?>) typeArguments[0]).isInstance(authSession);
}
}
return true;
@@ -78,7 +78,7 @@ public abstract class WebServiceBindingBase<API_TYPE extends DBWService> impleme
return apiInterface.cast(proxyImpl);
}
public static TypeDefinitionRegistry loadSchemaDefinition(Class theClass, String schemaPath) throws DBWebException {
public static TypeDefinitionRegistry loadSchemaDefinition(Class<?> theClass, String schemaPath) throws DBWebException {
try (InputStream schemaStream = theClass.getClassLoader().getResourceAsStream(schemaPath)) {
if (schemaStream == null) {
throw new IOException("Schema file '" + schemaPath + "' not found");