# HG changeset patch # User igerasim # Date 1550596004 28800 # Node ID c93f9524acb23bcc41188547c5df2ac51147e728 # Parent 920ae325cf769aabcdd07d11b373e6d4a9712051 4887513: Typo in RMIFailureHandler interface doc page Reviewed-by: dfuchs Contributed-by: Andrey Turbanov , Ivan Gerasimov diff -r 920ae325cf76 -r c93f9524acb2 src/java.rmi/share/classes/java/rmi/server/RMIFailureHandler.java --- a/src/java.rmi/share/classes/java/rmi/server/RMIFailureHandler.java Mon Feb 18 12:52:55 2019 +0100 +++ b/src/java.rmi/share/classes/java/rmi/server/RMIFailureHandler.java Tue Feb 19 09:06:44 2019 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2019, 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 @@ -26,13 +26,13 @@ package java.rmi.server; /** - * An RMIFailureHandler can be registered via the - * RMISocketFactory.setFailureHandler call. The - * failure method of the handler is invoked when the RMI - * runtime is unable to create a ServerSocket to listen - * for incoming calls. The failure method returns a boolean + * An {@code RMIFailureHandler} can be registered via the + * {@code RMISocketFactory.setFailureHandler} call. The + * {@code failure} method of the handler is invoked when the RMI + * runtime is unable to create a {@code ServerSocket} to listen + * for incoming calls. The {@code failure} method returns a boolean * indicating whether the runtime should attempt to re-create the - * ServerSocket. + * {@code ServerSocket}. * * @author Ann Wollrath * @since 1.1 @@ -40,18 +40,18 @@ public interface RMIFailureHandler { /** - * The failure callback is invoked when the RMI - * runtime is unable to create a ServerSocket via the - * RMISocketFactory. An RMIFailureHandler + * The {@code failure} callback is invoked when the RMI + * runtime is unable to create a {@code ServerSocket} via the + * {@code RMISocketFactory}. An {@code RMIFailureHandler} * is registered via a call to - * RMISocketFacotry.setFailureHandler. If no failure + * {@code RMISocketFactory.setFailureHandler}. If no failure * handler is installed, the default behavior is to attempt to * re-create the ServerSocket. * - * @param ex the exception that occurred during ServerSocket + * @param ex the exception that occurred during {@code ServerSocket} * creation * @return if true, the RMI runtime attempts to retry - * ServerSocket creation + * {@code ServerSocket} creation * @see java.rmi.server.RMISocketFactory#setFailureHandler(RMIFailureHandler) * @since 1.1 */