Skip to content

Commit

Permalink
[ZEE-6771] Add missing constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-guerre committed Feb 18, 2025
1 parent d88b7a0 commit e44e2e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/main/java/zeenea/connector/common/ItemInventory.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,29 @@ private ItemInventory(Builder builder) {
* @param itemIdentifier the identifier for the item
* @param labelPath the path of labels associated with the item
* @return a new ItemInventory instance
* @deprecated since 2.3.0, use getLabelIdentifier() instead
*/
@Deprecated(
since =
"Deprecated since version 2.3.0, use getLabelIdentifier() instead. Scheduled for removal in version 3.0.0.",
forRemoval = true)
public static ItemInventory of(
@NotNull ItemIdentifier itemIdentifier, @NotNull List<String> labelPath) {
return builder().itemIdentifier(itemIdentifier).labels(labelPath).build();
}

/**
* Creates a new ItemInventory instance with the specified item and label identifiers.
*
* @param itemIdentifier the identifier for the item
* @param labelIdentifier the label identifier associated with the item
* @return a new ItemInventory instance
*/
public static ItemInventory of(
@NotNull ItemIdentifier itemIdentifier, @NotNull LabelIdentifier labelIdentifier) {
return builder().itemIdentifier(itemIdentifier).labelIdentifier(labelIdentifier).build();
}

/**
* Gets the identifier for the item.
*
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.3.1

0 comments on commit e44e2e2

Please sign in to comment.