mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
Codestyle: generics, deprecated methods removed, maven config fixed
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user