Skip to content

Commit 4727187

Browse files
author
Pavel Rappo
committedMay 12, 2021
8266567: Fix javadoc tag references in sun.management.jmxremote.ConnectorBootstrap
Reviewed-by: dfuchs, sspitsyn
1 parent 11759bf commit 4727187

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed
 

‎src/jdk.management.agent/share/classes/sun/management/jmxremote/ConnectorBootstrap.java

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -174,7 +174,7 @@ public JMXConnectorServerData(
174174
*
175175
* <p>Objects are exported using {@link
176176
* UnicastServerRef#exportObject(Remote, Object, boolean)}. The
177-
* boolean parameter is called <code>permanent</code> and means
177+
* boolean parameter is called {@code permanent} and means
178178
* both that the object is not eligible for Distributed Garbage
179179
* Collection, and that its continued existence will not prevent
180180
* the JVM from exiting. It is the latter semantics we want (we
@@ -275,9 +275,9 @@ private static Properties propertiesFromFile(String fname)
275275
private final String accessFile;
276276
}
277277

278-
// The variable below is here to support stop functionality
279-
// It would be overriten if you call startRemoteCommectionServer second
280-
// time. It's OK for now as logic in Agent.java forbids mutiple agents
278+
// The variable below is here to support stop functionality.
279+
// It would be overwritten if you call startRemoteConnectorServer second
280+
// time. It's OK for now as logic in Agent.java forbids multiple agents.
281281
private static Registry registry = null;
282282

283283
public static void unexportRegistry() {
@@ -288,7 +288,7 @@ public static void unexportRegistry() {
288288
registry = null;
289289
}
290290
} catch(NoSuchObjectException ex) {
291-
// This exception can appears only if we attempt
291+
// This exception can appear only if we attempt
292292
// to unexportRegistry second time. So it's safe
293293
// to ignore it without additional messages.
294294
}
@@ -297,9 +297,9 @@ public static void unexportRegistry() {
297297
/**
298298
* Initializes and starts the JMX Connector Server.
299299
* If the com.sun.management.jmxremote.port property is not defined,
300-
* simply return. Otherwise, attempts to load the config file, and
301-
* then calls {@link #startRemoteConnectorServer
302-
* (java.lang.String, java.util.Properties)}.
300+
* simply returns. Otherwise, attempts to load the config file, and
301+
* then calls {@link #startRemoteConnectorServer(java.lang.String,
302+
* java.util.Properties)}.
303303
*
304304
* This method is used by some jtreg tests.
305305
**/
@@ -318,8 +318,7 @@ public static synchronized JMXConnectorServer initialize() {
318318
/**
319319
* This method is used by some jtreg tests.
320320
*
321-
* @see #startRemoteConnectorServer
322-
* (String portStr, Properties props)
321+
* @see #startRemoteConnectorServer(String portStr, Properties props)
323322
*/
324323
public static synchronized JMXConnectorServer initialize(String portStr, Properties props) {
325324
return startRemoteConnectorServer(portStr, props);
@@ -516,7 +515,7 @@ public static synchronized JMXConnectorServer startRemoteConnectorServer(String
516515
* and management.
517516
*/
518517
public static JMXConnectorServer startLocalConnectorServer() {
519-
// Ensure cryptographically strong random number generater used
518+
// Ensure cryptographically strong random number generator used
520519
// to choose the object number - see java.rmi.server.ObjID
521520
System.setProperty("java.rmi.server.randomIDs", "true");
522521

0 commit comments

Comments
 (0)
Please sign in to comment.