Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 511d1bb

Browse files
JonathanGilesmirobers
authored andcommitted
Minor docs fix (#281)
* Reduces the number of JavaDoc warnings from 89 to 3 in azure-storage-java * Fix last remaining javadoc issues - now javadoc can be successfully generated. * Fix merge mistake * Fixes for JavaDoc errors. Most of them are in the .core.* package, but even still, it helps to ensure that build tools that ignore maven directives to ignore packages do not error-out.
1 parent 33e0df6 commit 511d1bb

File tree

10 files changed

+27
-45
lines changed

10 files changed

+27
-45
lines changed

microsoft-azure-storage/src/com/microsoft/azure/storage/blob/BlobProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ protected void setStandardBlobTier(StandardBlobTier standardBlobTier) {
631631
/**
632632
* Sets whether the blob tier is inferred.
633633
* @param isBlobTierInferredTier
634-
* A {@Link java.lang.Boolean} which specifies if the blob tier is inferred.
634+
* A {@link java.lang.Boolean} which specifies if the blob tier is inferred.
635635
*/
636636
protected void setBlobTierInferred(Boolean isBlobTierInferredTier) {
637637
this.isBlobTierInferredTier = isBlobTierInferredTier;
@@ -649,7 +649,7 @@ protected void setTierChangeTime(Date tierChangeTime) {
649649
/**
650650
* Sets the rehydration status of the blob.
651651
* @param rehydrationStatus
652-
* A {@Link RehydrationStatus} which specifies the rehydration status of the blob.
652+
* A {@link RehydrationStatus} which specifies the rehydration status of the blob.
653653
*/
654654
protected void setRehydrationStatus(RehydrationStatus rehydrationStatus) {
655655
this.rehydrationStatus = rehydrationStatus;

microsoft-azure-storage/src/com/microsoft/azure/storage/blob/CloudBlob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ public void recoveryAction(OperationContext context) throws IOException {
16091609
* A {@link BlobRequestOptions} object that specifies any additional options for the request.
16101610
* @param opContext
16111611
* An {@link OperationContext} object used to track the execution of the operation.
1612-
* @returns The total number of bytes read into the buffer.
1612+
* @return The total number of bytes read into the buffer.
16131613
*
16141614
* @throws StorageException
16151615
* an exception representing any error which occurred during the operation.

microsoft-azure-storage/src/com/microsoft/azure/storage/core/ListResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ListResponse<T> {
2424
public static final String ENUMERATION_RESULTS = "EnumerationResults";
2525

2626
/**
27-
* Holds the ArrayList<T> of results.
27+
* Holds the ArrayList&lt;T&gt; of results.
2828
*/
2929
protected ArrayList<T> results = new ArrayList<T>();
3030

@@ -49,9 +49,9 @@ public class ListResponse<T> {
4949
protected String prefix;
5050

5151
/**
52-
* Gets the ArrayList<T> of the results.
52+
* Gets the ArrayList&lt;T&gt; of the results.
5353
*
54-
* @return the ArrayList<T> of results
54+
* @return the ArrayList&lt;T&gt; of results
5555
*/
5656
public ArrayList<T> getResults() {
5757
return this.results;
@@ -94,7 +94,7 @@ public String getPrefix() {
9494
}
9595

9696
/**
97-
* Sets the ArrayList<T> of the results
97+
* Sets the ArrayList&lt;T&gt; of the results
9898
*
9999
* @param results
100100
* the results to set

microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public static URI addToQuery(final URI resourceURI, final String queryString) th
9898
*
9999
* @param uriList
100100
* The base Uri.
101-
* @param relativeOrAbslouteUri
102-
* The relative or absloute URI.
101+
* @param relativeOrAbsoluteUri
102+
* The relative or absolute URI.
103103
* @return The appended Uri.
104104
* @throws URISyntaxException
105105
*/
@@ -113,8 +113,8 @@ public static StorageUri appendPathToUri(final StorageUri uriList, final String
113113
*
114114
* @param uriList
115115
* The base Uri.
116-
* @param relativeOrAbslouteUri
117-
* The relative or absloute URI.
116+
* @param relativeOrAbsoluteUri
117+
* The relative or absolute URI.
118118
* @return The appended Uri.
119119
* @throws URISyntaxException
120120
*/
@@ -127,9 +127,9 @@ public static StorageUri appendPathToUri(final StorageUri uriList, final String
127127
/**
128128
* Appends a path to a URI correctly using "/" as separator.
129129
*
130-
* @param uriList
130+
* @param uri
131131
* The base Uri.
132-
* @param relativeOrAbslouteUri
132+
* @param relativeOrAbsoluteUri
133133
* The relative or absloute URI.
134134
* @return The appended Uri.
135135
* @throws URISyntaxException
@@ -421,7 +421,7 @@ public static String getServiceClientBaseAddress(final URI address, final boolea
421421
/**
422422
* Get the service client address from a complete Uri.
423423
*
424-
* @param address
424+
* @param addressUri
425425
* Complete address of the resource.
426426
* @param usePathStyleUris
427427
* a value indicating if the address is a path style uri.
@@ -440,7 +440,7 @@ public static StorageUri getServiceClientBaseAddress(final StorageUri addressUri
440440
*
441441
* @param parseString
442442
* the string to parse
443-
* @return a HashMap<String, String[]> of the key values.
443+
* @return a HashMap&lt;String, String[]&gt; of the key values.
444444
* @throws StorageException
445445
*/
446446
public static HashMap<String, String[]> parseQueryString(String parseString) throws StorageException {

microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,10 @@ public class SharedAccessSignatureHelper {
4545
*
4646
* @param policy
4747
* The shared access policy to hash.
48-
* @param ipRange
49-
* An optional range of IP addresses.
50-
* @param protocols
51-
* An optional restriction of allowed protocols.
5248
* @param signature
5349
* The signature to use.
5450
*
5551
* @return The finished query builder
56-
* @throws InvalidKeyException
5752
* @throws StorageException
5853
*/
5954
public static UriQueryBuilder generateSharedAccessSignatureForAccount(
@@ -214,10 +209,6 @@ public static UriQueryBuilder generateSharedAccessSignatureForTable(
214209
* The name of the account to use for the SAS.
215210
* @param policy
216211
* The shared access policy to hash.
217-
* @param ipRange
218-
* An optional range of IP addresses.
219-
* @param protocols
220-
* An optional restriction of allowed protocols.
221212
* @param creds
222213
* The {@link StorageCredentials} associated with the object.
223214
*
@@ -576,7 +567,7 @@ private static UriQueryBuilder generateSharedAccessSignatureHelper(
576567
* @param stringToSign
577568
* The string to decode and hash
578569
* @param creds
579-
* Reference to the {@link StorageCredentials.}.
570+
* Reference to the {@link StorageCredentials}.
580571
*
581572
* @return The signature hash embedded inside the Shared Access Signature.
582573
*
@@ -605,8 +596,6 @@ private static String generateSharedAccessSignatureHashHelper(String stringToSig
605596
* The range of IP addresses to hash.
606597
* @param protocols
607598
* The Internet protocols to hash.
608-
* @param headers
609-
* The optional header values to set for a blob or file accessed with this shared access signature.
610599
* @param accessPolicyIdentifier
611600
* An optional identifier for the policy.
612601
*

microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@ public final boolean isNonExceptionedRetryableFailure() {
301301
/**
302302
* Returns either the held exception from the operation if it is set, otherwise the translated exception.
303303
*
304-
* @param request
305-
* the reference to the HttpURLConnection for the operation.
306304
* @param opContext
307305
* an object used to track the execution of the operation
308306
* @return the exception to throw.
@@ -508,8 +506,8 @@ public void setRequestLocationMode(RequestLocationMode requestLocationMode) {
508506
}
509507

510508
/**
511-
* @param storageLocation
512-
* the storageLocation value
509+
* @param currentLocation
510+
* the currentLocation value
513511
*/
514512
public void setCurrentLocation(StorageLocation currentLocation) {
515513
this.currentLocation = currentLocation;
@@ -594,12 +592,14 @@ public void setHeaders(HttpURLConnection connection, P parentObject, OperationCo
594592
/**
595593
* Pre-Stream Retrieval function.
596594
*
597-
* @param command
598-
* StorageCommand for the operation.
599595
* @param parentObject
600596
* Parent object, i.e. CloudBlobContainer for downloadAttributes etc.
601597
* @param client
602598
* The service client.
599+
* @param context
600+
* An {@link OperationContext} object that represents the context for the current operation. This object
601+
* is used to track requests to the storage service, and to provide additional runtime information about
602+
* the operation.
603603
* @return an Object of the expected result's type.
604604
* @throws Exception
605605
*/

microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,6 @@ private static boolean isHostDnsName(URI uri) {
548548
/**
549549
* Reads character data for the Etag element from an XML stream reader.
550550
*
551-
* @param xmlr
552-
* An <code>XMLStreamReader</code> object that represents the source XML stream reader.
553-
*
554551
* @return A <code>String</code> that represents the character data for the Etag element.
555552
*/
556553
public static String formatETag(final String etag) {
@@ -1319,7 +1316,7 @@ public static StreamMd5AndLength writeToOutputStream(final InputStream sourceStr
13191316
* @param request
13201317
* Used by download resume to set currentRequestByteCount on the request. Otherwise, null is always used.
13211318
* @param descriptor
1322-
* A {@Link StreamMd5AndLength} object to append to in the case of recovery action or null if this is not called
1319+
* A {@link StreamMd5AndLength} object to append to in the case of recovery action or null if this is not called
13231320
* from a recovery. This value needs to be passed for recovery in case part of the body has already been read,
13241321
* the recovery will attempt to download the remaining bytes but will do MD5 validation on the originally
13251322
* requested range size.

microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2670,10 +2670,6 @@ public void upload(final InputStream sourceStream, final long length, final Acce
26702670
*
26712671
* @param resourceAddress
26722672
* A {@link StorageUri} object which represents the resource URI.
2673-
* @param delimiter
2674-
* A <code>String</code> which specifies the directory delimiter to use.
2675-
* @param usePathStyleUris
2676-
* A <code>Boolean</code> which specifies whether path style URIs are used.
26772673
* @param share
26782674
* A {@link CloudFileShare} object which represents the file share.
26792675
*

microsoft-azure-storage/src/com/microsoft/azure/storage/table/EntityProperty.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ else if (type.equals(Long.class)) {
123123
*
124124
* @param value
125125
* The <code>Object</code> to convert to a string and store.
126-
* @param edmType
127-
* The <code>Class<?></code> type of the value to construct.
126+
* @param type
127+
* The <code>Class&lt;?&gt;</code> type of the value to construct.
128128
*/
129129
protected EntityProperty(final Object value, final Class<?> type) {
130130
if (type.equals(byte[].class)) {

microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableServiceEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ private static ConcurrentHashMap<Class<?>, HashMap<String, PropertyPair>> initia
492492
* entities are deserialized and the payload does not include JSON metadata.
493493
*
494494
* @return
495-
* The <code>ConcurrentHashMap<Class<?>, HashMap<String, PropertyPair>></code> representing the known entity
496-
* types and their reflected entity dictionaries
495+
* The <code>ConcurrentHashMap&lt;Class&lt;?&gt;, HashMap&lt;String, PropertyPair&gt;&gt;</code> representing
496+
* the known entity types and their reflected entity dictionaries
497497
*/
498498
protected static ConcurrentHashMap<Class<?>, HashMap<String, PropertyPair>> getReflectedEntityCache() {
499499
return TableServiceEntity.reflectedEntityCache;

0 commit comments

Comments
 (0)