Skip to content

Commit cc6825f

Browse files
🐛 #48 fixed
1 parent b0cca07 commit cc6825f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void send() {
184184
private void getService(String requestUrl) throws IOException {
185185
Retrofit retrofit = new Retrofit.Builder().baseUrl(this.endpoint).build();
186186
APIService service = retrofit.create(APIService.class);
187-
this.headers.put(X_USER_AGENT, CLIENT_USER_AGENT);
187+
this.headers.put(X_USER_AGENT, CLIENT_USER_AGENT);
188188
this.headers.put(CONTENT_TYPE, APPLICATION_JSON);
189189
Response<ResponseBody> response = service.getRequest(requestUrl, this.headers).execute();
190190
if (response.isSuccessful()) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class EntryModel {
2626
protected String createdBy = null;
2727
protected Boolean isDirectory = false;
2828
protected String[] tags = null;
29-
protected String description = null;
29+
protected Object description = null;
3030
protected String environment = null;
3131
protected JSONArray images = null;
3232
protected String locale = null;
@@ -57,7 +57,7 @@ public EntryModel(JSONObject response) {
5757
this.url = (String) this.jsonObject.opt(urlKey);
5858
}
5959
if (this.jsonObject.has("description")) {
60-
this.description = (String) this.jsonObject.opt("description");
60+
this.description = this.jsonObject.opt("description");
6161
}
6262

6363
this.images = (JSONArray) this.jsonObject.opt("images");

src/test/java/com/contentstack/sdk/AzureRegionTest.java renamed to src/test/java/com/contentstack/sdk/TestAzureRegion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.junit.jupiter.api.Assertions;
44
import org.junit.jupiter.api.Test;
55

6-
class AzureRegionTest {
6+
class TestAzureRegion {
77

88
@Test
99
void testAzureRegion() {

src/test/java/com/contentstack/sdk/QueryTestCase.java renamed to src/test/java/com/contentstack/sdk/TestQueryCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
1818
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
19-
class QueryTestCase {
19+
class TestQueryCase {
2020

21-
private final Logger logger = Logger.getLogger(QueryTestCase.class.getName());
21+
private final Logger logger = Logger.getLogger(TestQueryCase.class.getName());
2222
private Stack stack;
2323
private Query query;
2424
private String entryUid;

0 commit comments

Comments
 (0)