[jOOQ/jOOQ#9272] Fix Javadoc of default catalog and schema singletons

Fixes the Javadoc comment of the default catalog and schema singletons
generated into the `CatalogImpl` and `SchemaImpl` subclasses. For the
default catalog and schema the name was always empty.
This commit is contained in:
Knut Wannheden 2019-12-20 11:05:24 +01:00
parent 171637eaed
commit 05a37398f0
5 changed files with 10 additions and 10 deletions

View File

@ -4764,8 +4764,8 @@ public class JavaGenerator extends AbstractGenerator {
}
protected void generateCatalog(CatalogDefinition catalog, JavaWriter out) {
final String catalogName = catalog.getQualifiedOutputName();
final String catalogId = getStrategy().getJavaIdentifier(catalog);
final String catalogName = !catalog.getQualifiedOutputName().isEmpty() ? catalog.getQualifiedOutputName() : catalogId;
final String className = getStrategy().getJavaClassName(catalog);
final List<String> interfaces = out.ref(getStrategy().getJavaClassImplements(catalog, Mode.DEFAULT));
@ -4856,8 +4856,8 @@ public class JavaGenerator extends AbstractGenerator {
protected void generateSchema(SchemaDefinition schema, JavaWriter out) {
final String catalogId = out.ref(getStrategy().getFullJavaIdentifier(schema.getCatalog()), 2);
final String schemaName = schema.getQualifiedOutputName();
final String schemaId = getStrategy().getJavaIdentifier(schema);
final String schemaName = !schema.getQualifiedOutputName().isEmpty() ? schema.getQualifiedOutputName() : schemaId;
final String className = getStrategy().getJavaClassName(schema);
final List<String> interfaces = out.ref(getStrategy().getJavaClassImplements(schema, Mode.DEFAULT));

View File

@ -26,10 +26,10 @@ import org.jooq.impl.CatalogImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DefaultCatalog extends CatalogImpl {
private static final long serialVersionUID = 602931876;
private static final long serialVersionUID = -949847017;
/**
* The reference instance of <code></code>
* The reference instance of <code>DEFAULT_CATALOG</code>
*/
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();

View File

@ -17,10 +17,10 @@ import org.jooq.impl.CatalogImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DefaultCatalog extends CatalogImpl {
private static final long serialVersionUID = -2138369575;
private static final long serialVersionUID = 1745902354;
/**
* The reference instance of <code></code>
* The reference instance of <code>DEFAULT_CATALOG</code>
*/
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();

View File

@ -22,10 +22,10 @@ import org.jooq.impl.SchemaImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DefaultSchema extends SchemaImpl {
private static final long serialVersionUID = 1869451816;
private static final long serialVersionUID = 471838153;
/**
* The reference instance of <code></code>
* The reference instance of <code>DEFAULT_SCHEMA</code>
*/
public static final DefaultSchema DEFAULT_SCHEMA = new DefaultSchema();

View File

@ -17,10 +17,10 @@ import org.jooq.impl.CatalogImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DefaultCatalog extends CatalogImpl {
private static final long serialVersionUID = 2007051757;
private static final long serialVersionUID = 1802263030;
/**
* The reference instance of <code></code>
* The reference instance of <code>DEFAULT_CATALOG</code>
*/
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();