Skip to content

Commit 9191641

Browse files
committed
Add javadoc for non-singleton fields
1 parent 6d86c17 commit 9191641

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

generator/cybersource-java-template/libraries/okhttp-gson/ApiClient.mustache

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,18 @@ public class ApiClient {
142142
*/
143143
public static final String LENIENT_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";
144144

145-
public String responseCode;
146-
public String status;
145+
/**
146+
* Use this field <b>ONLY IF</b> you have more than one instance of ApiClient.
147+
* This field should <b>NOT</b> be used/accessed for a singleton object.
148+
*/
149+
public String responseCode;
150+
151+
/**
152+
* Use this field <b>ONLY IF</b> you have more than one instance of ApiClient.
153+
* This field should <b>NOT</b> be used/accessed for a singleton object.
154+
*/
155+
public String status;
156+
147157
public MerchantConfig merchantConfig;
148158
public RequestTransactionMetrics apiRequestMetrics = new RequestTransactionMetrics();
149159

src/main/java/Invokers/ApiClient.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,18 @@ public class ApiClient {
142142
*/
143143
public static final String LENIENT_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";
144144

145-
public String responseCode;
146-
public String status;
145+
/**
146+
* Use this field <b>ONLY IF</b> you have more than one instance of ApiClient.
147+
* This field should <b>NOT</b> be used/accessed for a singleton object.
148+
*/
149+
public String responseCode;
150+
151+
/**
152+
* Use this field <b>ONLY IF</b> you have more than one instance of ApiClient.
153+
* This field should <b>NOT</b> be used/accessed for a singleton object.
154+
*/
155+
public String status;
156+
147157
public MerchantConfig merchantConfig;
148158
public RequestTransactionMetrics apiRequestMetrics = new RequestTransactionMetrics();
149159

0 commit comments

Comments
 (0)