Skip to content

Commit

Permalink
Use @code instead of @link for primitive types.
Browse files Browse the repository at this point in the history
`@link` is wrong, and accordingly, it produces Javadoc warnings. Those warnings then made it hard for me to see the actual error I was seeing, which was a result of trying to use Java 21's version of Javadoc. I'll leave a note about that on cl/647714634.

(followup to cl/681080215)

RELNOTES=n/a
PiperOrigin-RevId: 696692285
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Nov 15, 2024
1 parent ffc21b5 commit a338c41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/src/main/java/com/google/common/truth/Truth.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,42 +235,42 @@ public static IterableSubject assertThat(@Nullable Iterable<?> actual) {
return assert_().that(actual);
}

/** Begins an assertion about a {@link boolean} array. */
/** Begins an assertion about a {@code boolean} array. */
public static PrimitiveBooleanArraySubject assertThat(boolean @Nullable [] actual) {
return assert_().that(actual);
}

/** Begins an assertion about a {@link short} array. */
/** Begins an assertion about a {@code short} array. */
public static PrimitiveShortArraySubject assertThat(short @Nullable [] actual) {
return assert_().that(actual);
}

/** Begins an assertion about an {@link int} array. */
/** Begins an assertion about an {@code int} array. */
public static PrimitiveIntArraySubject assertThat(int @Nullable [] actual) {
return assert_().that(actual);
}

/** Begins an assertion about a {@link long} array. */
/** Begins an assertion about a {@code long} array. */
public static PrimitiveLongArraySubject assertThat(long @Nullable [] actual) {
return assert_().that(actual);
}

/** Begins an assertion about a {@link byte} array. */
/** Begins an assertion about a {@code byte} array. */
public static PrimitiveByteArraySubject assertThat(byte @Nullable [] actual) {
return assert_().that(actual);
}

/** Begins an assertion about a {@link char} array. */
/** Begins an assertion about a {@code char} array. */
public static PrimitiveCharArraySubject assertThat(char @Nullable [] actual) {
return assert_().that(actual);
}

/** Begins an assertion about a {@link float} array. */
/** Begins an assertion about a {@code float} array. */
public static PrimitiveFloatArraySubject assertThat(float @Nullable [] actual) {
return assert_().that(actual);
}

/** Begins an assertion about a {@link double} array. */
/** Begins an assertion about a {@code double} array. */
public static PrimitiveDoubleArraySubject assertThat(double @Nullable [] actual) {
return assert_().that(actual);
}
Expand Down

0 comments on commit a338c41

Please sign in to comment.