Skip to content

Commit 3a17bc5

Browse files
run ci
1 parent 4935910 commit 3a17bc5

File tree

4 files changed

+39
-54
lines changed

4 files changed

+39
-54
lines changed

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@
9494
</snapshotRepository>
9595

9696
<!-- GitHub Packages-->
97-
<!-- <repository>-->
97+
<!-- <repository>-->
9898
<!-- <id>github</id>-->
9999
<!-- <url>https://maven.pkg.github.com/contentstack/contentstack-java</url>-->
100100
<!-- </repository>-->
101101

102-
<!-- Maven Release Repository-->
103-
<repository>
104-
<id>ossrh</id>
105-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
106-
</repository>
102+
<!-- Maven Release Repository-->
103+
<repository>
104+
<id>ossrh</id>
105+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
106+
</repository>
107107

108108
</distributionManagement>
109109

src/main/java/com/contentstack/sdk/Asset.java

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ protected void setStackInstance(@NotNull Stack stack) {
5757
/**
5858
* Configure asset.
5959
*
60-
* @param jsonObject
61-
* the json object
60+
* @param jsonObject the json object
6261
* @return the asset
6362
*/
6463
public Asset configure(JSONObject jsonObject) {
@@ -77,19 +76,17 @@ public Asset configure(JSONObject jsonObject) {
7776
/**
7877
* Sets header.
7978
*
80-
* @param headerKey
81-
* the header key
82-
* @param headerValue
83-
* the header value
84-
*
85-
* <br>
86-
* <br>
87-
* <b>Example :</b><br>
88-
* <p>
89-
* <code>
90-
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset =
91-
* stack.asset(asset_uid); asset.setHeader();
92-
* </code>
79+
* @param headerKey the header key
80+
* @param headerValue the header value
81+
*
82+
* <br>
83+
* <br>
84+
* <b>Example :</b><br>
85+
* <p>
86+
* <code>
87+
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset =
88+
* stack.asset(asset_uid); asset.setHeader();
89+
* </code>
9390
*/
9491
public void setHeader(@NotNull String headerKey, @NotNull String headerValue) {
9592
headers.put(headerKey, headerValue);
@@ -98,17 +95,16 @@ public void setHeader(@NotNull String headerKey, @NotNull String headerValue) {
9895
/**
9996
* Remove header.
10097
*
101-
* @param headerKey
102-
* the header key
103-
*
104-
* <br>
105-
* <br>
106-
* <b>Example :</b>
107-
* <p>
108-
* <code>
109-
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset =
110-
* stack.asset(asset_uid); asset.removeHeader();
111-
* <code>
98+
* @param headerKey the header key
99+
*
100+
* <br>
101+
* <br>
102+
* <b>Example :</b>
103+
* <p>
104+
* <code>
105+
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset =
106+
* stack.asset(asset_uid); asset.removeHeader();
107+
* <code>
112108
*/
113109
public void removeHeader(@NotNull String headerKey) {
114110
headers.remove(headerKey);
@@ -457,10 +453,8 @@ public Asset includeDimension() {
457453
/**
458454
* Add param asset.
459455
*
460-
* @param paramKey
461-
* the param key
462-
* @param paramValue
463-
* the param value
456+
* @param paramKey the param key
457+
* @param paramValue the param value
464458
* @return the asset
465459
*
466460
* <br>
@@ -538,8 +532,7 @@ public Asset includeMetadata() {
538532
/**
539533
* Fetch.
540534
*
541-
* @param callback
542-
* the callback
535+
* @param callback the callback
543536
*/
544537
public void fetch(FetchResultCallback callback) {
545538
urlQueries.put(ENVIRONMENT, this.headers.get(ENVIRONMENT));

src/main/java/com/contentstack/sdk/AssetLibrary.java

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ protected void setStackInstance(@NotNull Stack stack) {
3434
/**
3535
* Sets header.
3636
*
37-
* @param headerKey
38-
* the header key
39-
* @param headerValue
40-
* the header value
37+
* @param headerKey the header key
38+
* @param headerValue the header value
4139
*/
4240
public void setHeader(@NotNull String headerKey, @NotNull String headerValue) {
4341
this.headers.put(headerKey, headerValue);
@@ -46,8 +44,7 @@ public void setHeader(@NotNull String headerKey, @NotNull String headerValue) {
4644
/**
4745
* Remove header.
4846
*
49-
* @param headerKey
50-
* the header key
47+
* @param headerKey the header key
5148
*/
5249
public void removeHeader(@NotNull String headerKey) {
5350
if (!headerKey.isEmpty()) {
@@ -58,10 +55,8 @@ public void removeHeader(@NotNull String headerKey) {
5855
/**
5956
* Sort asset library.
6057
*
61-
* @param keyOrderBy
62-
* the key order by
63-
* @param orderby
64-
* the orderby
58+
* @param keyOrderBy the key order by
59+
* @param orderby the orderby
6560
* @return the asset library
6661
*/
6762
public AssetLibrary sort(String keyOrderBy, ORDERBY orderby) {
@@ -141,8 +136,7 @@ public int getCount() {
141136
/**
142137
* Fetch all.
143138
*
144-
* @param callback
145-
* the callback
139+
* @param callback the callback
146140
*/
147141
public void fetchAll(FetchAssetsCallback callback) {
148142
this.callback = callback;

src/main/java/com/contentstack/sdk/AssetModel.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ class AssetModel {
2121
/**
2222
* Instantiates a new Asset model.
2323
*
24-
* @param response
25-
* the response
26-
* @param isArray
27-
* the is array
24+
* @param response the response
25+
* @param isArray the is array
2826
*/
2927
public AssetModel(JSONObject response, boolean isArray) {
3028

0 commit comments

Comments
 (0)