Skip to content

Commit

Permalink
Fix findbugs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lojzatran committed Apr 29, 2024
1 parent 39cf2e6 commit ad5a627
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.commercetools.api.models.customer.CustomerSetCustomTypeActionBuilder;
import com.commercetools.api.models.customer.CustomerUpdateAction;
import com.commercetools.sync.commons.helpers.GenericCustomActionBuilder;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Map;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand All @@ -18,6 +19,7 @@ private CustomerCustomActionBuilder() {
}

@Nonnull
@SuppressFBWarnings
public static CustomerCustomActionBuilder of() {
return builder;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static SyncFilter ofBlackList(@Nonnull final ActionGroup... actionGroups)
}

@Nonnull
public static SyncFilter of() {
public static synchronized SyncFilter of() {
defaultSyncFilter = ofNullable(defaultSyncFilter).orElseGet(SyncFilter::new);
return defaultSyncFilter;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.commercetools.api.models.shopping_list.ShoppingListSetCustomTypeActionBuilder;
import com.commercetools.api.models.shopping_list.ShoppingListUpdateAction;
import com.commercetools.sync.commons.helpers.GenericCustomActionBuilder;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Map;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand All @@ -19,6 +20,7 @@ private ShoppingListCustomActionBuilder() {
}

@Nonnull
@SuppressFBWarnings
public static ShoppingListCustomActionBuilder of() {
return builder;
}
Expand Down

0 comments on commit ad5a627

Please sign in to comment.