Migrate TyperUtils.getTableSchema() users
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / schema / typed / TyperUtils.java
index 3162130ac69e442512e73a6538b3fc8f22fa543b..61034a8c7abd2e104faf6dc182642f58804bdd6d 100644 (file)
@@ -45,8 +45,9 @@ public final class TyperUtils {
      *     using their {@link TypedTable} annotation, if they have one, or by name.
      * @return the table schema.
      */
+    @Deprecated
     public static GenericTableSchema getTableSchema(final DatabaseSchema dbSchema, final Class<?> klazz) {
-        return dbSchema.table(TypedReflections.getTableName(klazz), GenericTableSchema.class);
+        return getTyped(dbSchema).getTableSchema(klazz);
     }
 
     static ColumnSchema<GenericTableSchema, Object> getColumnSchema(final GenericTableSchema tableSchema,