fix javadoc erorr in CI

This commit is contained in:
wing328 2016-02-24 17:44:19 +08:00
parent 7fb41048dd
commit 3cfb110f6d
6 changed files with 24 additions and 5 deletions

View File

@ -66,6 +66,9 @@ public abstract class AbstractGenerator {
/** /**
* Get the template file path with template dir prepended, and use the * Get the template file path with template dir prepended, and use the
* library template if exists. * library template if exists.
*
* @param config Codegen config
* @param templateFile Template file
*/ */
public String getFullTemplateFile(CodegenConfig config, String templateFile) { public String getFullTemplateFile(CodegenConfig config, String templateFile) {
String library = config.getLibrary(); String library = config.getLibrary();

View File

@ -147,6 +147,8 @@ public interface CodegenConfig {
/** /**
* Library template (sub-template). * Library template (sub-template).
*
* @return libray template
*/ */
String getLibrary(); String getLibrary();
} }

View File

@ -2193,6 +2193,8 @@ public class DefaultCodegen {
/** /**
* Library template (sub-template). * Library template (sub-template).
*
* @return Library template
*/ */
public String getLibrary() { public String getLibrary() {
return library; return library;
@ -2257,10 +2259,10 @@ public class DefaultCodegen {
} }
/** /**
* only write if the file doesn't exist * Only write if the file doesn't exist
* *
* @param outputFolder * @param outputFolder Output folder
* @param supportingFile * @param supportingFile Supporting file
*/ */
public void writeOptional(String outputFolder, SupportingFile supportingFile) { public void writeOptional(String outputFolder, SupportingFile supportingFile) {
String folder = ""; String folder = "";
@ -2283,8 +2285,8 @@ public class DefaultCodegen {
/** /**
* Set CodegenParameter boolean flag using CodegenProperty. * Set CodegenParameter boolean flag using CodegenProperty.
* *
* @param p Codegen Parameter * @param parameter Codegen Parameter
* @param cp Codegen property * @param property Codegen property
*/ */
public void setParameterBooleanFlagWithCodegenProperty(CodegenParameter parameter, CodegenProperty property) { public void setParameterBooleanFlagWithCodegenProperty(CodegenParameter parameter, CodegenProperty property) {
if (parameter == null) { if (parameter == null) {

View File

@ -385,6 +385,9 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
/** /**
* Normalize type by wrapping primitive types with single quotes. * Normalize type by wrapping primitive types with single quotes.
*
* @param type Primitive type
* @return Normalized type
*/ */
public String normalizeType(String type) { public String normalizeType(String type) {
return type.replaceAll("\\b(Boolean|Integer|Number|String|Date)\\b", "'$1'"); return type.replaceAll("\\b(Boolean|Integer|Number|String|Date)\\b", "'$1'");

View File

@ -293,6 +293,9 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
* *
* (PEP 0008) Python packages should also have short, all-lowercase names, * (PEP 0008) Python packages should also have short, all-lowercase names,
* although the use of underscores is discouraged. * although the use of underscores is discouraged.
*
* @param packageName Package name
* @return Python package name that conforms to PEP 0008
*/ */
@SuppressWarnings("static-method") @SuppressWarnings("static-method")
public String generatePackageName(String packageName) { public String generatePackageName(String packageName) {

View File

@ -211,6 +211,9 @@ public class RubyClientCodegen extends DefaultCodegen implements CodegenConfig {
/** /**
* Generate Ruby module name from the gem name, e.g. use "SwaggerClient" for "swagger_client". * Generate Ruby module name from the gem name, e.g. use "SwaggerClient" for "swagger_client".
*
* @param gemName Ruby gem name
* @return Ruby module naame
*/ */
@SuppressWarnings("static-method") @SuppressWarnings("static-method")
public String generateModuleName(String gemName) { public String generateModuleName(String gemName) {
@ -219,6 +222,9 @@ public class RubyClientCodegen extends DefaultCodegen implements CodegenConfig {
/** /**
* Generate Ruby gem name from the module name, e.g. use "swagger_client" for "SwaggerClient". * Generate Ruby gem name from the module name, e.g. use "swagger_client" for "SwaggerClient".
*
* @param moduleName Ruby module naame
* @return Ruby gem name
*/ */
@SuppressWarnings("static-method") @SuppressWarnings("static-method")
public String generateGemName(String moduleName) { public String generateGemName(String moduleName) {