Skip to content

Commit 7207de7

Browse files
Merge pull request #382 from cap-java/sonarFix
sonar Issue Fix
2 parents eec59f4 + 3ba85eb commit 7207de7

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55
The format is based on [Keep a Changelog](http://keepachangelog.com/).
66

7+
## Version 1.6.2
8+
9+
### Fixed
10+
- Deep copying of custom properties and notes when copying attachments
11+
- Dynamic primary key extraction from entity schema
12+
- Facet parsing for parent entity and composition extraction during attachment copy
13+
- Draft discard operation with attachments
14+
- Service namespace support in createLink feature
15+
716
## Version 1.6.1
817

918
### Fixed

sdm/src/main/java/com/sap/cds/sdm/service/SDMServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public List<String> getObject(
326326
HttpGet getObjectRequest = new HttpGet(sdmUrl);
327327
try (var response = (CloseableHttpResponse) httpClient.execute(getObjectRequest)) {
328328
if (response.getStatusLine().getStatusCode() != 200) {
329-
return null;
329+
return Collections.emptyList();
330330
}
331331
String responseString = EntityUtils.toString(response.getEntity());
332332
JSONObject jsonObject = new JSONObject(responseString);

sdm/src/test/java/unit/com/sap/cds/sdm/service/SDMServiceImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ public void testGetObject_Failure() throws IOException {
14391439
when(entity.getContent()).thenReturn(inputStream);
14401440

14411441
List<String> objectInfo = sdmServiceImpl.getObject(objectId, sdmCredentials, false);
1442-
assertNull(objectInfo);
1442+
assertTrue(objectInfo.isEmpty());
14431443
}
14441444

14451445
@Test

0 commit comments

Comments
 (0)