Skip to content

Commit 15f1692

Browse files
author
Chris Wiechmann
committed
Javadoc issues fixed
1 parent 1dd69ac commit 15f1692

3 files changed

Lines changed: 5 additions & 16 deletions

File tree

modules/apim-adapter/src/main/java/com/axway/apim/adapter/APIManagerAdapter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.axway.apim.adapter;
1+
package com.axway.apim.adapter;
22

33
import java.io.File;
44
import java.io.InputStream;
@@ -623,6 +623,7 @@ public static JsonNode getCertInfo(InputStream certificate, String password, CaC
623623
* format as it's needed by the API-Manager.
624624
* @param certFile InputStream to the Certificate
625625
* @param cert the certificate itself
626+
* @param password the password
626627
* @return JsonNode as it's required by the API-Manager.
627628
* @throws AppException if JSON-Node-Config can't be created
628629
*/
@@ -667,6 +668,7 @@ public static JsonNode getCertInfoFromUrl(String certFile, String password, CaCe
667668
* as it's needed by the API-Manager.
668669
* @param fileFontent the certificate content
669670
* @param filename the name of the certificate file used as a reference in the generated Json object
671+
* @param contentType the content type
670672
* @throws AppException when the certificate information can't be created
671673
* @return a Json-Object structure as needed by the API-Manager
672674
*/

modules/apim-adapter/src/main/java/com/axway/apim/api/apiSpecification/APISpecificationFactory.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.io.ByteArrayInputStream;
44
import java.io.File;
55
import java.io.FileInputStream;
6-
import java.io.FileOutputStream;
76
import java.io.IOException;
87
import java.io.InputStream;
98
import java.io.InputStreamReader;
@@ -53,14 +52,7 @@ public static APISpecification getAPISpecification(DesiredAPISpecification desir
5352
spec.setFilterConfig(desiredAPISpec.getFilter()).filterAPISpecification();
5453
return spec;
5554
}
56-
57-
/**
58-
* @param parsedAPISpecificationContent the content API-Specification itself
59-
* @param apiDefinitionFile the path to the file that contains the spec. It is also used to determine the specification type
60-
* @param apiName name of the API. Used for error reporting only
61-
* @return the detected concrete API-Specification
62-
* @throws AppException if the API-Specification cannot be detected or loaded
63-
*/
55+
6456
public static APISpecification getAPISpecification(String apiDefinitionFile, String configBaseDir, String apiName) throws AppException {
6557
return getAPISpecification(getAPIDefinitionContent(apiDefinitionFile, configBaseDir), apiDefinitionFile, apiName, true, true);
6658
}
@@ -129,11 +121,6 @@ private static byte[] getAPIDefinitionContent(String apiDefinitionFile, String c
129121
}
130122
}
131123

132-
/**
133-
* To make testing easier we allow reading test-files from classpath as well
134-
* @throws AppException when the import Swagger-File can't be read.
135-
* @return The import Swagger-File as an InputStream
136-
*/
137124
private static InputStream getAPIDefinitionAsStream(String apiDefinitionFile, String configBaseDir) throws AppException {
138125
InputStream is = null;
139126
if(apiDefinitionFile.endsWith(".url")) {

modules/apim-adapter/src/main/java/com/axway/apim/lib/utils/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static String substitueVariables(File inputFile) throws IOException {
167167
* @param stage defines a stage which identifies a prod or qa environment.
168168
* @param stageConfig can be given to define the stage config file to be used
169169
* @param baseConfigFile the base configuration
170-
* @return
170+
* @return the staged config file
171171
*/
172172
public static File getStageConfig(String stage, String stageConfig, File baseConfigFile) {
173173
if(stage == null && stageConfig == null) return null;

0 commit comments

Comments
 (0)