zentol closed pull request #7415: [hotfix][docs] fix typo in
addShutdownHookThread Javadoc
URL: https://github.com/apache/flink/pull/7415
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/flink-core/src/main/java/org/apache/flink/util/ShutdownHookUtil.java
b/flink-core/src/main/java/org/apache/flink/util/ShutdownHookUtil.java
index 7526f65847c..b87b08e05b9 100644
--- a/flink-core/src/main/java/org/apache/flink/util/ShutdownHookUtil.java
+++ b/flink-core/src/main/java/org/apache/flink/util/ShutdownHookUtil.java
@@ -50,7 +50,12 @@ public static Thread addShutdownHook(
}
/**
- * Adds a shutdown hook to the JVM and returns the Thread, which has
been registered.
+ * Adds a shutdown hook to the JVM.
+ *
+ * @param shutdownHook Shutdown hook to be registered.
+ * @param serviceName The name of service.
+ * @param logger The logger to log.
+ * @return Whether the hook has been successfully registered.
*/
public static boolean addShutdownHookThread(
final Thread shutdownHook,
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services