Skip to content

Commit 53a1fe4

Browse files
Merge pull request #115 from commercetools/fix-javadoc-warnings
Fix javadoc warnings
2 parents ca92e5a + bfbee37 commit 53a1fe4

7 files changed

Lines changed: 23 additions & 19 deletions

File tree

src/integration-test/java/com/commercetools/sync/integration/commons/utils/SphereClientUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class SphereClientUtils {
3333
public static final Long QUERY_MAX_LIMIT = 500L;
3434

3535
/**
36-
* Fetches resources of {@link T} using a {@code query}. The {@code ctpRequest} is applied on each resultant
36+
* Fetches resources of {@code T} using a {@code query}. The {@code ctpRequest} is applied on each resultant
3737
* resource from fetching, to make a {@link SphereRequest}. Then each request is executed by {@code client}.
3838
* Method blocks until above operations were done.
3939
*

src/main/java/com/commercetools/sync/commons/BaseSync.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ protected BaseSync(@Nonnull final U statistics, @Nonnull final V syncOptions) {
2222
* actions on the existing resource if it exists or create it if it doesn't.
2323
*
2424
* @param resourceDrafts the list of new resources as drafts.
25-
* @return an instance of {@link CompletionStage}<{@link U}> which contains as a result an instance of
26-
* {@link U} which is a subclass of {@link BaseSyncStatistics} representing the {@code statistics} instance
25+
* @return an instance of {@link CompletionStage}<{@code U}> which contains as a result an instance of
26+
* {@code U} which is a subclass of {@link BaseSyncStatistics} representing the {@code statistics} instance
2727
* attribute of {@code this} {@link BaseSync}.
2828
*/
2929
protected abstract CompletionStage<U> process(@Nonnull final List<T> resourceDrafts);
@@ -38,8 +38,8 @@ protected BaseSync(@Nonnull final U statistics, @Nonnull final V syncOptions) {
3838
* container so that the total processing time is computed in the statistics.
3939
*
4040
* @param resourceDrafts the list of new resources as drafts.
41-
* @return an instance of {@link CompletionStage}&lt;{@link U}&gt; which contains as a result an instance of
42-
* {@link U} which is a subclass of {@link BaseSyncStatistics} representing the {@code statistics} instance
41+
* @return an instance of {@link CompletionStage}&lt;{@code U}&gt; which contains as a result an instance of
42+
* {@code U} which is a subclass of {@link BaseSyncStatistics} representing the {@code statistics} instance
4343
* attribute of {@code this} {@link BaseSync}.
4444
*/
4545
public CompletionStage<U> sync(@Nonnull final List<T> resourceDrafts) {
@@ -73,7 +73,7 @@ public U getStatistics() {
7373
* @param result in the first call of this recursive method, this result is normally a completed future, it
7474
* used from within the method to recursively sync each batch once the previous batch has
7575
* finished syncing.
76-
* @return an instance of {@link CompletionStage}&lt;{@link U}&gt; which contains as a result an instance of
76+
* @return an instance of {@link CompletionStage}&lt;{@code U}&gt; which contains as a result an instance of
7777
* {@link BaseSyncStatistics} representing the {@code statistics} of the sync process executed on the
7878
* given list of batches.
7979
*/

src/main/java/com/commercetools/sync/commons/helpers/CustomReferenceResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected CustomReferenceResolver(@Nonnull final S options, @Nonnull final TypeS
3434
}
3535

3636
/**
37-
* Given a draft of {@link T} (e.g. {@link CategoryDraft}) this method attempts to resolve it's custom type
37+
* Given a draft of {@code T} (e.g. {@link CategoryDraft}) this method attempts to resolve it's custom type
3838
* reference to return {@link CompletionStage} which contains a new instance of the draft with the resolved
3939
* custom type reference. The key of the custom type is taken from the from the id field of the reference.
4040
*

src/main/java/com/commercetools/sync/commons/helpers/GenericCustomActionBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
*/
2323
public abstract class GenericCustomActionBuilder<T extends Custom & Resource<T>> {
2424
/**
25-
* Creates a CTP "setCustomType" update action on the given resource {@link T} that removes the custom type set on
26-
* the given resource {@link T} (which currently could either be a {@link Category} or a {@link Channel}).
25+
* Creates a CTP "setCustomType" update action on the given resource {@code T} that removes the custom type set on
26+
* the given resource {@code T} (which currently could either be a {@link Category} or a {@link Channel}).
2727
*
2828
* @return a setCustomType update action that removes the custom type from the resource it's requested on.
2929
*/
3030
@Nonnull
3131
public abstract UpdateAction<T> buildRemoveCustomTypeAction();
3232

3333
/**
34-
* Creates a CTP "setCustomType" update action on the given resource {@link T} (which currently could either
34+
* Creates a CTP "setCustomType" update action on the given resource {@code T} (which currently could either
3535
* be a {@link Category} or a {@link Channel}).
3636
*
3737
* @param customTypeId the id of the new custom type.
@@ -43,9 +43,9 @@ public abstract UpdateAction<T> buildSetCustomTypeAction(@Nullable final String
4343
@Nullable final Map<String, JsonNode> customFieldsJsonMap);
4444

4545
/**
46-
* Creates a CTP "setCustomField" update action on the given resource {@link T} that updates a custom field with
46+
* Creates a CTP "setCustomField" update action on the given resource {@code T} that updates a custom field with
4747
* {@code customFieldName} and a {@code customFieldValue} on the given
48-
* resource {@link T} (which currently could either be a {@link Category} or a {@link Channel}).
48+
* resource {@code T} (which currently could either be a {@link Category} or a {@link Channel}).
4949
*
5050
* @param customFieldName the name of the custom field to update.
5151
* @param customFieldValue the new JSON value of the custom field.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public final class CustomUpdateActionUtils {
3434
private static final String CUSTOM_TYPE_ID_IS_BLANK = "New resource's custom type id is blank (empty/null).";
3535

3636
/**
37-
* Compares the {@link CustomFields} of an old resource {@link T} (for example {@link Category},
37+
* Compares the {@link CustomFields} of an old resource {@code T} (for example {@link Category},
3838
* {@link io.sphere.sdk.products.Product}, etc..), to the {@link CustomFieldsDraft}, of a new
39-
* resource draft {@link S} (for example {@link CategoryDraft}, {@link io.sphere.sdk.products.ProductVariantDraft},
39+
* resource draft {@code S} (for example {@link CategoryDraft}, {@link io.sphere.sdk.products.ProductVariantDraft},
4040
* etc..), and returns a {@link List}&lt;{@link UpdateAction}&gt; as a result. If no update action is needed,
4141
* for example in the case where both the {@link CustomFields} and the {@link CustomFieldsDraft} are null, an empty
4242
* {@link List}&lt;{@link UpdateAction}&gt; is returned. A {@link BaseSyncOptions} instance is injected into the

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class GenericUpdateActionUtils {
2828
+ "remove the custom type on the %s with id '%s'. Reason: %s";
2929

3030
/**
31-
* Creates a CTP "setCustomType" update action on the given resource {@link T} (which currently could either
31+
* Creates a CTP "setCustomType" update action on the given resource {@code T} (which currently could either
3232
* be a {@link Category} or a {@link Channel}).
3333
*
3434
* @param customTypeId the id of the new custom type.
@@ -56,8 +56,8 @@ static <T extends Custom & Resource<T>> Optional<UpdateAction<T>> buildTypedSetC
5656
}
5757

5858
/**
59-
* Creates a CTP "setCustomType" update action on the given resource {@link T} that removes the custom type set on
60-
* the given resource {@link T} (which currently could either be a {@link Category} or a {@link Channel}).
59+
* Creates a CTP "setCustomType" update action on the given resource {@code T} that removes the custom type set on
60+
* the given resource {@code T} (which currently could either be a {@link Category} or a {@link Channel}).
6161
*
6262
* @param resource the resource to do the update action on.
6363
* @param <T> the type of the resource to do the update action on.
@@ -77,9 +77,9 @@ static <T extends Custom & Resource<T>> Optional<UpdateAction<T>> buildTypedRemo
7777
}
7878

7979
/**
80-
* Creates a CTP "setCustomField" update action on the given resource {@link T} that updates a custom field with
80+
* Creates a CTP "setCustomField" update action on the given resource {@code T} that updates a custom field with
8181
* {@code customFieldName} and a {@code customFieldValue} on the given
82-
* resource {@link T} (which currently could either be a {@link Category} or a {@link Channel}).
82+
* resource {@code T} (which currently could either be a {@link Category} or a {@link Channel}).
8383
*
8484
* @param customFieldName the name of the custom field to update.
8585
* @param customFieldValue the new JSON value of the custom field.

src/main/java/com/commercetools/sync/inventories/helpers/InventoryCustomActionBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,27 @@
77
import io.sphere.sdk.inventory.commands.updateactions.SetCustomField;
88
import io.sphere.sdk.inventory.commands.updateactions.SetCustomType;
99

10+
import javax.annotation.Nonnull;
1011
import javax.annotation.Nullable;
1112
import java.util.Map;
1213

1314
public class InventoryCustomActionBuilder extends GenericCustomActionBuilder<InventoryEntry> {
1415

16+
@Nonnull
1517
@Override
1618
public UpdateAction<InventoryEntry> buildRemoveCustomTypeAction() {
1719
return SetCustomType.ofRemoveType();
1820
}
1921

22+
@Nonnull
2023
@Override
2124
public UpdateAction<InventoryEntry> buildSetCustomTypeAction(@Nullable final String customTypeId,
2225
@Nullable final Map<String, JsonNode>
2326
customFieldsJsonMap) {
2427
return SetCustomType.ofTypeIdAndJson(customTypeId, customFieldsJsonMap);
2528
}
2629

30+
@Nonnull
2731
@Override
2832
public UpdateAction<InventoryEntry> buildSetCustomFieldAction(@Nullable final String customFieldName,
2933
@Nullable final JsonNode customFieldValue) {

0 commit comments

Comments
 (0)