Skip to content

Commit 113940a

Browse files
committed
feat: mark method deprecated
1 parent 4dab3a7 commit 113940a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/com/crowdin/client/sourcestrings/SourceStringsApi.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public ResponseObject<UploadStringsProgress> uploadStrings(Long projectId, Uploa
5555
* <li><a href="https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.strings.getMany" target="_blank"><b>Enterprise API Documentation</b></a></li>
5656
* </ul>
5757
*/
58+
@Deprecated
5859
public ResponseList<SourceString> listSourceStrings(Long projectId, Long fileId, Integer denormalizePlaceholders, Long branchId, String labelIds, String croql, String filter, String scope, Integer limit, Integer offset) throws HttpException, HttpBadRequestException {
5960
Map<String, Optional<Object>> queryParams = HttpRequestConfig.buildUrlParams(
6061
"fileId", Optional.ofNullable(fileId),

src/test/java/com/crowdin/client/sourcestrings/SourceStringsApiTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void uploadStringsTest() {
7272

7373
@Test
7474
public void listStringsTest() {
75-
ResponseList<SourceString> sourceStringResponseList = this.getSourceStringsApi().listSourceStrings(projectId, null, null, null, null, null, null, null, null, null);
75+
ResponseList<SourceString> sourceStringResponseList = this.getSourceStringsApi().listSourceStrings(projectId, ListSourceStringsParams.builder().build());
7676
assertEquals(sourceStringResponseList.getData().size(), 1);
7777
assertEquals(sourceStringResponseList.getData().get(0).getData().getId(), id);
7878
assertEquals(sourceStringResponseList.getData().get(0).getData().getText(), text);

0 commit comments

Comments
 (0)