Skip to content

Commit 59a09b7

Browse files
authored
chore: Fix remaining normal priority PMD finding (#370)
1 parent 228ea16 commit 59a09b7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.pipeline/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ stages:
2929
low: '0'
3030
pmd:
3131
high: '0'
32-
normal: '1'
32+
normal: '0'
3333
low: '0'

datamodel/odata-client/src/main/java/com/sap/cloud/sdk/datamodel/odata/client/request/ODataHealthyResponseValidator.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ static void requireHealthyResponse( @Nonnull final ODataRequestResult result )
9292
return single.getRequest();
9393
}
9494
}
95-
} else if( requestGeneric instanceof ODataRequestBatch.BatchItemSingle single ) {
96-
if( single.getContentId() == failedBatchRequestNumber ) {
97-
return single.getRequest();
98-
}
95+
} else if( requestGeneric instanceof ODataRequestBatch.BatchItemSingle single
96+
&& single.getContentId() == failedBatchRequestNumber ) {
97+
return single.getRequest();
9998
}
10099
}
101100
return null;

0 commit comments

Comments
 (0)