Skip to content

Commit

Permalink
8303405: fix @returnss typo in ReflectionFactory
Browse files Browse the repository at this point in the history
Reviewed-by: jpai, mchung, martin, iris, lancea, naoto
  • Loading branch information
Justin Lu authored and naotoj committed Mar 2, 2023
1 parent e7113dc commit 45d8a17
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -479,7 +479,7 @@ private final MethodHandle findReadWriteObjectForSerialization(Class<?> cl,
* Returns a MethodHandle for {@code writeReplace} on the serializable class
* or null if no match found.
* @param cl a serializable class
* @returnss the {@code writeReplace} MethodHandle or {@code null} if not found
* @return the {@code writeReplace} MethodHandle or {@code null} if not found
*/
public final MethodHandle writeReplaceForSerialization(Class<?> cl) {
return getReplaceResolveForSerialization(cl, "writeReplace");
Expand All @@ -489,7 +489,7 @@ public final MethodHandle writeReplaceForSerialization(Class<?> cl) {
* Returns a MethodHandle for {@code readResolve} on the serializable class
* or null if no match found.
* @param cl a serializable class
* @returns the {@code writeReplace} MethodHandle or {@code null} if not found
* @return the {@code writeReplace} MethodHandle or {@code null} if not found
*/
public final MethodHandle readResolveForSerialization(Class<?> cl) {
return getReplaceResolveForSerialization(cl, "readResolve");
Expand All @@ -500,7 +500,7 @@ public final MethodHandle readResolveForSerialization(Class<?> cl) {
* signature constraints.
* @param cl a serializable class
* @param methodName the method name to find
* @returns a MethodHandle for the method or {@code null} if not found or
* @return a MethodHandle for the method or {@code null} if not found or
* has the wrong signature.
*/
private MethodHandle getReplaceResolveForSerialization(Class<?> cl,
Expand Down Expand Up @@ -567,7 +567,7 @@ public final boolean hasStaticInitializerForSerialization(Class<?> cl) {

/**
* Return the accessible constructor for OptionalDataException signaling eof.
* @returns the eof constructor for OptionalDataException
* @return the eof constructor for OptionalDataException
*/
public final Constructor<OptionalDataException> newOptionalDataExceptionForSerialization() {
try {
Expand Down Expand Up @@ -731,7 +731,7 @@ private static Config loadConfig() {
* otherwise.
* @param cl1 a class
* @param cl2 another class
* @returns true if the two classes are in the same classloader and package
* @return true if the two classes are in the same classloader and package
*/
private static boolean packageEquals(Class<?> cl1, Class<?> cl2) {
assert !cl1.isArray() && !cl2.isArray();
Expand Down

0 comments on commit 45d8a17

Please sign in to comment.