Skip to content

Commit 2bfedb4

Browse files
committed
#210: Add non null param violation suppression.
1 parent 63c0687 commit 2bfedb4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/com/commercetools/sync/commons/utils/QueryAll.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.commercetools.sync.commons.utils;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
34
import io.sphere.sdk.client.SphereClient;
45
import io.sphere.sdk.models.Resource;
56
import io.sphere.sdk.queries.PagedQueryResult;
@@ -142,6 +143,7 @@ private void mapOrConsume(@Nonnull final List<T> pageElements) {
142143
* in the list.
143144
*/
144145
@Nonnull
146+
@SuppressFBWarnings("NP_NONNULL_PARAM_VIOLATION") // `https://github.com/findbugsproject/findbugs/issues/79
145147
private CompletionStage<PagedQueryResult<T>> getNextPageStage(@Nonnull final List<T> pageElements) {
146148
if (pageElements.size() == pageSize) {
147149
final String lastElementId = pageElements.get(pageElements.size() - 1).getId();

0 commit comments

Comments
 (0)