Skip to content

Commit edcdf53

Browse files
chore(java): Clean up Javadoc warnings, and fail the build if any new ones are introduced
1 parent 36376b7 commit edcdf53

30 files changed

Lines changed: 78 additions & 59 deletions

java/fory-core/src/main/java/org/apache/fory/annotation/ForyField.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ enum Dynamic {
5252
* Field tag ID for schema evolution mode.
5353
*
5454
* <ul>
55-
* <li>When >= 0: Uses this numeric ID instead of field name string for compact encoding
56-
* <li>When -1 (default): Uses field name with meta string encoding
55+
* <li>When {@code >= 0}: Uses this numeric ID instead of field name string for compact encoding
56+
* <li>When {@code -1} (default): Uses field name with meta string encoding
5757
* </ul>
5858
*
5959
* <p>Must be unique within the class (except -1) and stable across versions.

java/fory-core/src/main/java/org/apache/fory/annotation/Int32Type.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
*
4242
* <pre>{@code
4343
* public class MyStruct {
44-
* @Int32Type(compress = true) // Uses varint encoding (default)
44+
* {@literal @}Int32Type(compress = true) // Uses varint encoding (default)
4545
* int compactId;
4646
*
47-
* @Int32Type(compress = false) // Uses fixed 4-byte encoding
47+
* {@literal @}Int32Type(compress = false) // Uses fixed 4-byte encoding
4848
* int fixedId;
4949
* }
5050
* }</pre>

java/fory-core/src/main/java/org/apache/fory/annotation/Int64Type.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
*
4444
* <pre>{@code
4545
* public class MyStruct {
46-
* @Int64Type(encoding = LongEncoding.VARINT64) // Variable-length (default)
46+
* {@literal @}Int64Type(encoding = LongEncoding.VARINT64) // Variable-length (default)
4747
* long compactId;
4848
*
49-
* @Int64Type(encoding = LongEncoding.FIXED_INT64) // Fixed 8-byte
49+
* {@literal @}Int64Type(encoding = LongEncoding.FIXED_INT64) // Fixed 8-byte
5050
* long fixedTimestamp;
5151
*
52-
* @Int64Type(encoding = LongEncoding.TAGGED_INT64) // Tagged encoding
52+
* {@literal @}Int64Type(encoding = LongEncoding.TAGGED_INT64) // Tagged encoding
5353
* long taggedValue;
5454
* }
5555
* }</pre>

java/fory-core/src/main/java/org/apache/fory/annotation/Int8ArrayType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
* <pre>{@code
3939
* public class MyStruct {
40-
* @Int8ArrayType
40+
* {@literal @}Int8ArrayType
4141
* byte[] data; // Will be serialized as signed 8-bit array
4242
* }
4343
* }</pre>

java/fory-core/src/main/java/org/apache/fory/annotation/Uint16ArrayType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* <pre>{@code
4040
* public class MyStruct {
41-
* @Uint16ArrayType
41+
* {@literal @}Uint16ArrayType
4242
* short[] ports; // Will be serialized as unsigned 16-bit array
4343
* }
4444
* }</pre>

java/fory-core/src/main/java/org/apache/fory/annotation/Uint16Type.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* <pre>{@code
4040
* public class MyStruct {
41-
* @Uint16Type
41+
* {@literal @}Uint16Type
4242
* int port; // Will be serialized as unsigned 16-bit [0, 65535]
4343
* }
4444
* }</pre>

java/fory-core/src/main/java/org/apache/fory/annotation/Uint32ArrayType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* <pre>{@code
4040
* public class MyStruct {
41-
* @Uint32ArrayType
41+
* {@literal @}Uint32ArrayType
4242
* int[] counts; // Will be serialized as unsigned 32-bit array
4343
* }
4444
* }</pre>

java/fory-core/src/main/java/org/apache/fory/annotation/Uint32Type.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
*
5151
* <pre>{@code
5252
* public class MyStruct {
53-
* @Uint32Type(compress = true) // Uses varuint encoding (default)
53+
* {@literal @}Uint32Type(compress = true) // Uses varuint encoding (default)
5454
* long compactCount;
5555
*
56-
* @Uint32Type(compress = false) // Uses fixed 4-byte encoding
56+
* {@literal @}Uint32Type(compress = false) // Uses fixed 4-byte encoding
5757
* long fixedCount;
5858
* }
5959
* }</pre>

java/fory-core/src/main/java/org/apache/fory/annotation/Uint64ArrayType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* <pre>{@code
4040
* public class MyStruct {
41-
* @Uint64ArrayType
41+
* {@literal @}Uint64ArrayType
4242
* long[] timestamps; // Will be serialized as unsigned 64-bit array
4343
* }
4444
* }</pre>

java/fory-core/src/main/java/org/apache/fory/annotation/Uint64Type.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@
5555
*
5656
* <pre>{@code
5757
* public class MyStruct {
58-
* @Uint64Type(encoding = LongEncoding.VARINT64) // Variable-length (default)
58+
* {@literal @}Uint64Type(encoding = LongEncoding.VARINT64) // Variable-length (default)
5959
* long compactId;
6060
*
61-
* @Uint64Type(encoding = LongEncoding.FIXED_INT64) // Fixed 8-byte
61+
* {@literal @}Uint64Type(encoding = LongEncoding.FIXED_INT64) // Fixed 8-byte
6262
* long fixedTimestamp;
6363
*
64-
* @Uint64Type(encoding = LongEncoding.TAGGED_INT64) // Tagged encoding
64+
* {@literal @}Uint64Type(encoding = LongEncoding.TAGGED_INT64) // Tagged encoding
6565
* long taggedValue;
6666
* }
6767
* }</pre>

0 commit comments

Comments
 (0)