Fixed Javadoc errors
diff --git a/java/core/src/main/java/com/google/protobuf/ByteString.java b/java/core/src/main/java/com/google/protobuf/ByteString.java index eca9ef1..54d158d 100644 --- a/java/core/src/main/java/com/google/protobuf/ByteString.java +++ b/java/core/src/main/java/com/google/protobuf/ByteString.java
@@ -272,7 +272,7 @@ }; /** - * Returns a {@link Comparator<ByteString>} which compares {@link ByteString}-s lexicographically + * Returns a {@link Comparator} which compares {@link ByteString}-s lexicographically * as sequences of unsigned bytes (i.e. values between 0 and 255, inclusive). * * <p>For example, {@code (byte) -1} is considered to be greater than {@code (byte) 1} because it @@ -640,7 +640,7 @@ * @param targetOffset offset within the target buffer * @param numberToCopy number of bytes to copy * @throws IndexOutOfBoundsException if an offset or size is negative or too large - * @deprecation Instead, call {@code byteString.substring(sourceOffset, sourceOffset + + * @deprecated Instead, call {@code byteString.substring(sourceOffset, sourceOffset + * numberToCopy).copyTo(target, targetOffset)} */ @Deprecated
diff --git a/java/core/src/main/java/com/google/protobuf/Message.java b/java/core/src/main/java/com/google/protobuf/Message.java index 08f6244..40dcaf0 100644 --- a/java/core/src/main/java/com/google/protobuf/Message.java +++ b/java/core/src/main/java/com/google/protobuf/Message.java
@@ -151,10 +151,13 @@ /** * Create a builder for messages of the appropriate type for the given field. The * builder is NOT nested in the current builder. However, messages built with the - * builder can then be passed to the {@link #setField()}, {@link #setRepeatedField()}, or {@link - * #addRepeatedField()} method of the current builder. + * builder can then be passed to the {@link #setField(Descriptors.FieldDescriptor, Object)}, + * {@link #setRepeatedField(Descriptors.FieldDescriptor, int, Object)}, or + * {@link #addRepeatedField(Descriptors.FieldDescriptor, Object)} + * method of the current builder. * - * <p>To obtain a builder nested in the current builder, use {@link #getFieldBuilder()} instead. + * <p>To obtain a builder nested in the current builder, use + * {@link #getFieldBuilder(Descriptors.FieldDescriptor)} instead. */ Builder newBuilderForField(Descriptors.FieldDescriptor field);
diff --git a/java/util/src/main/java/com/google/protobuf/util/Durations.java b/java/util/src/main/java/com/google/protobuf/util/Durations.java index 0ecac25..1edc8f0 100644 --- a/java/util/src/main/java/com/google/protobuf/util/Durations.java +++ b/java/util/src/main/java/com/google/protobuf/util/Durations.java
@@ -194,7 +194,7 @@ /** * Builds the given builder and throws an {@link IllegalArgumentException} if it is not valid. See - * {@link #checkValid(Duration}). + * {@link #checkValid(Duration)}. * * @return A valid, built {@link Duration}. */
diff --git a/java/util/src/main/java/com/google/protobuf/util/Timestamps.java b/java/util/src/main/java/com/google/protobuf/util/Timestamps.java index 96608e5..922532a 100644 --- a/java/util/src/main/java/com/google/protobuf/util/Timestamps.java +++ b/java/util/src/main/java/com/google/protobuf/util/Timestamps.java
@@ -180,7 +180,7 @@ /** * Builds the given builder and throws an {@link IllegalArgumentException} if it is not valid. See - * {@link #checkValid(Timestamp}). + * {@link #checkValid(Timestamp)}. * * @return A valid, built {@link Timestamp}. */