Skip to content

Commit 48ad638

Browse files
fix: Javadoc warnings (#995)
1 parent 5695057 commit 48ad638

File tree

10 files changed

+31
-35
lines changed

10 files changed

+31
-35
lines changed

cloudplatform/cloudplatform-connectivity/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/DestinationOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ public Builder augmentBuilder( @Nonnull final DestinationOptionsAugmenter augmen
138138
}
139139

140140
/**
141-
* Creates an immutable instance of {@link DestinationOptions) with whatever parameters have been set through
141+
* Creates an immutable instance of {@link DestinationOptions} with whatever parameters have been set through
142142
* the builder and any augmenters attached to it.
143143
*
144-
* @return An immutable instance of {@link DestinationOptions).
144+
* @return An immutable instance of {@link DestinationOptions}.
145145
*/
146146
@Nonnull
147147
public DestinationOptions build()

cloudplatform/tenant/src/main/java/com/sap/cloud/sdk/cloudplatform/tenant/TenantWithSubdomain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import javax.annotation.Nullable;
44

55
/**
6-
* Represents a {@link Tenant) that can be accessed through a subdomain.
6+
* Represents a {@link Tenant} that can be accessed through a subdomain.
77
*/
88
public interface TenantWithSubdomain extends Tenant
99
{

datamodel/odata-client/src/main/java/com/sap/cloud/sdk/datamodel/odata/client/expression/FilterExpressionCollection.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ static ValueNumeric.Expression length( @Nonnull final Expressions.OperandMultipl
156156
}
157157

158158
/**
159-
* Returns a {@link ValueCollection.Expression} that extracts the subsequence of {@code operand1) starting from
160-
* {@code operand2) ({@code "substring"}).
159+
* Returns a {@link ValueCollection.Expression} that extracts the subsequence of {@code operand1} starting from
160+
* {@code operand2} ({@code "substring"}).
161161
*
162-
* @param operand1 The collection to get the subsequence from.
162+
* @param operand1
163+
* The collection to get the subsequence from.
163164
*
164165
* @param operand2
165166
* The index of the first element of the subsequence to be extracted.
@@ -175,11 +176,11 @@ static ValueNumeric.Expression length( @Nonnull final Expressions.OperandMultipl
175176
}
176177

177178
/**
178-
* Returns a {@link ValueCollection.Expression} that extracts the subsequence of {@code operand1) starting from
179-
* {@code operand2) with length {@code operand3} ({@code "substring"}).
180-
*
181-
* @param operand1 The collection to get the subsequence from.
179+
* Returns a {@link ValueCollection.Expression} that extracts the subsequence of {@code operand1} starting from
180+
* {@code operand2} with length {@code operand3} ({@code "substring"}).
182181
*
182+
* @param operand1
183+
* The collection to get the subsequence from.
183184
* @param operand2
184185
* The index of the first element of the subsequence to be extracted.
185186
* @param operand3

datamodel/odata-client/src/main/java/com/sap/cloud/sdk/datamodel/odata/client/query/QuerySerializable.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
import javax.annotation.Nonnull;
44

5-
import com.sap.cloud.sdk.datamodel.odata.client.request.ODataUriFactory;
5+
import com.sap.cloud.sdk.datamodel.odata.client.request.UriEncodingStrategy;
66

77
/**
88
* A serializable query interface to serve an encoded and not-encoded String representation.
99
*/
1010
public interface QuerySerializable
1111
{
1212
/**
13-
* Compute the encoded string representation of this query. All characters except the ones listed in
14-
* {@link ODataUriFactory#SAFE_CHARS_IN_QUERY} are encoded
13+
* Compute the encoded string representation of this query with the following {@link UriEncodingStrategy#REGULAR}
14+
* strategy.
1515
*
1616
* @return A string representing the encoded request query.
1717
*/

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public ODataRequestReadByKey(
7676

7777
/**
7878
* Constructor with StructuredQuery for OData read requests on entity collections directly. For operations on nested
79-
* entity collections use {@link #ODataRequestRead(String, ODataResourcePath, String, ODataProtocol)}.
79+
* entity collections use
80+
* {@link ODataRequestRead#ODataRequestRead(String, ODataResourcePath, String, ODataProtocol)}.
8081
*
8182
* @param servicePath
8283
* The OData service path.

datamodel/odata-v4/odata-v4-core/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/core/VdmObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public Set<String> getCustomFieldNames()
7979
/**
8080
* Returns the names and values of a custom field.
8181
*
82-
* @return All of the names & values of custom fields as a map.
82+
* @return All the names &amp; values of custom fields as a map.
8383
*/
8484
@JsonAnyGetter
8585
@Nonnull

datamodel/odata/odata-core/src/main/java/com/sap/cloud/sdk/datamodel/odata/helper/EntityField.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Template class to represent entity fields. Instances of this object are used in query modifier methods of the entity
1717
* fluent helpers. Contains methods to compare a field's value with a provided value.
18-
*
18+
* <p>
1919
* Use the constants declared in each entity inner class. Instantiating directly requires knowing the underlying OData
2020
* field names, so use the constructor with caution.
2121
*
@@ -53,7 +53,7 @@ public EntityField( @Nonnull final String fieldName )
5353
/**
5454
* Use the constants declared in each entity inner class. Instantiating directly requires knowing the underlying
5555
* OData field names, so use with caution.
56-
*
56+
* <p>
5757
* When creating instances for custom fields, this constructor can be used to add a type converter that will be
5858
* automatically used by the respective entity when getting or setting custom fields.
5959
*
@@ -126,7 +126,7 @@ public ExpressionFluentHelper<EntityT> ne( @Nullable final FieldT value )
126126
* @param value
127127
* Field value to compare with.
128128
*
129-
* @return Fluent helper that represents a <i>field > value</i> expression.
129+
* @return Fluent helper that represents a <i>field &gt; value</i> expression.
130130
*/
131131
@Nonnull
132132
public ExpressionFluentHelper<EntityT> gt( @Nullable final FieldT value )
@@ -140,7 +140,7 @@ public ExpressionFluentHelper<EntityT> gt( @Nullable final FieldT value )
140140
* @param value
141141
* Field value to compare with.
142142
*
143-
* @return Fluent helper that represents a <i>field >= value</i> expression.
143+
* @return Fluent helper that represents a <i>field &ge; value</i> expression.
144144
*/
145145
@Nonnull
146146
public ExpressionFluentHelper<EntityT> ge( @Nullable final FieldT value )
@@ -154,7 +154,7 @@ public ExpressionFluentHelper<EntityT> ge( @Nullable final FieldT value )
154154
* @param value
155155
* Field value to compare with.
156156
*
157-
* @return Fluent helper that represents a <i>field < value</i> expression.
157+
* @return Fluent helper that represents a <i>field &lt; value</i> expression.
158158
*/
159159
@Nonnull
160160
public ExpressionFluentHelper<EntityT> lt( @Nullable final FieldT value )
@@ -168,7 +168,7 @@ public ExpressionFluentHelper<EntityT> lt( @Nullable final FieldT value )
168168
* @param value
169169
* Field value to compare with.
170170
*
171-
* @return Fluent helper that represents a <i>field <= value</i> expression.
171+
* @return Fluent helper that represents a <i>field &le; value</i> expression.
172172
*/
173173
@Nonnull
174174
public ExpressionFluentHelper<EntityT> le( @Nullable final FieldT value )

datamodel/odata/odata-core/src/main/java/com/sap/cloud/sdk/datamodel/odata/helper/FluentHelperByKey.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ public FluentHelperT withQueryParameter( @Nonnull final String key, @Nullable fi
7878
}
7979

8080
/**
81-
* Query modifier to limit which field values of the entity get fetched & populated. If this method is never called,
82-
* then all fields will be fetched & populated. But if this method is called at least once, then only the specified
83-
* fields will be fetched & populated. Calling this multiple times will combine the set(s) of fields of each call.
81+
* Query modifier to limit which field values of the entity get fetched &amp; populated. If this method is never
82+
* called, then all fields will be fetched &amp; populated. But if this method is called at least once, then only
83+
* the specified fields will be fetched &amp; populated. Calling this multiple times will combine the set(s) of
84+
* fields of each call.
8485
*
8586
* @param fields
8687
* Array of fields to select.

datamodel/odata/odata-core/src/main/java/com/sap/cloud/sdk/datamodel/odata/helper/VdmEntity.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,7 @@ public abstract class VdmEntity<EntityT> extends VdmObject<EntityT>
5353
private transient String servicePathForFetch;
5454

5555
/**
56-
* Convienence field for reusing the same destination with multiple queries (e.g. fetching associated entities).
57-
*
58-
* @param destination
59-
* New destination to apply to this entity
60-
*
61-
* @return The stored destination for executing queries, or null if no such context has been set.
56+
* Convenience field for reusing the same destination with multiple queries (e.g. fetching associated entities).
6257
*/
6358
@Getter( AccessLevel.PROTECTED )
6459
@Setter( AccessLevel.PROTECTED )
@@ -122,7 +117,7 @@ protected String getDefaultServicePath()
122117

123118
/**
124119
* Sets the service path and destination for the fetch commands of this entity.
125-
*
120+
* <p>
126121
* Also applies to any associated entities (navigation properties) that were previously fetched.
127122
* <p>
128123
* <b>Note:</b> Use with caution, as this can easily break the fetch calls on this entity. See the interface of the
@@ -212,9 +207,7 @@ protected <T extends VdmEntity<T>> T fetchFieldAsSingle(
212207
}
213208

214209
@Nonnull
215-
private <T extends VdmEntity<T>> ODataRequestResultGeneric fetchField(
216-
final String fieldName,
217-
final Destination destination )
210+
private ODataRequestResultGeneric fetchField( final String fieldName, final Destination destination )
218211
{
219212
final ODataEntityKey entityKey = ODataEntityKey.of(getKey(), ODataProtocol.V2);
220213
final ODataResourcePath path = ODataResourcePath.of(getEntityCollection(), entityKey).addSegment(fieldName);

datamodel/odata/odata-core/src/main/java/com/sap/cloud/sdk/datamodel/odata/helper/VdmObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public Set<String> getCustomFieldNames()
6262
/**
6363
* Returns all custom field names and values of this object.
6464
*
65-
* @return All names & values of custom fields as a map.
65+
* @return All names &amp; values of custom fields as a map.
6666
*/
6767
@JsonAnyGetter
6868
@Nonnull

0 commit comments

Comments
 (0)