[#3792] Code generator erroneously refers to "singleton instances" of tables in generated Javadoc

This commit is contained in:
Lukas Eder 2014-11-21 16:01:36 +01:00
parent 9d97cc72e5
commit af78ccd484
2 changed files with 6 additions and 6 deletions

View File

@ -82,8 +82,8 @@ public interface GeneratorStrategy {
boolean getInstanceFields();
/**
* This is applied to definitions that can result in singleton static and
* instance members. For instance, the singleton instance of a
* This is applied to definitions that can result in reference static and
* instance members. For instance, the reference instance of a
* {@link TableDefinition} is a java identifier
*
* @return The Java identifier representing this object, e.g. [my_table]
@ -101,8 +101,8 @@ public interface GeneratorStrategy {
List<String> getJavaIdentifiers(Definition... definitions);
/**
* This is applied to definitions that can result in singleton static and
* instance members. For instance, the singleton instance of a
* This is applied to definitions that can result in reference static and
* instance members. For instance, the reference instance of a
* {@link TableDefinition} is a java identifier
*
* @return The Java identifier representing this object, e.g. [my_table]

View File

@ -2335,7 +2335,7 @@ public class JavaGenerator extends AbstractGenerator {
out.println("public class %s extends %s[[before= implements ][%s]] {", className, SchemaImpl.class, interfaces);
out.printSerial();
out.tab(1).javadoc("The singleton instance of <code>%s</code>", schemaName);
out.tab(1).javadoc("The reference instance of <code>%s</code>", schemaName);
out.tab(1).println("public static final %s %s = new %s();", className, schemaId, className);
out.tab(1).javadoc(NO_FURTHER_INSTANCES_ALLOWED);
@ -2985,7 +2985,7 @@ public class JavaGenerator extends AbstractGenerator {
final String className = getStrategy().getFullJavaClassName(definition);
final String identifier = getStrategy().getJavaIdentifier(definition);
out.tab(1).javadoc("The singleton instance of <code>%s</code>", definition.getQualifiedOutputName());
out.tab(1).javadoc("The reference instance of <code>%s</code>", definition.getQualifiedOutputName());
out.tab(1).println("public static final %s %s = new %s();", className, identifier, className);
}