1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -174,7 +174,7 @@ public JMXConnectorServerData(
174
174
*
175
175
* <p>Objects are exported using {@link
176
176
* 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
178
178
* both that the object is not eligible for Distributed Garbage
179
179
* Collection, and that its continued existence will not prevent
180
180
* the JVM from exiting. It is the latter semantics we want (we
@@ -275,9 +275,9 @@ private static Properties propertiesFromFile(String fname)
275
275
private final String accessFile ;
276
276
}
277
277
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.
281
281
private static Registry registry = null ;
282
282
283
283
public static void unexportRegistry () {
@@ -288,7 +288,7 @@ public static void unexportRegistry() {
288
288
registry = null ;
289
289
}
290
290
} catch (NoSuchObjectException ex ) {
291
- // This exception can appears only if we attempt
291
+ // This exception can appear only if we attempt
292
292
// to unexportRegistry second time. So it's safe
293
293
// to ignore it without additional messages.
294
294
}
@@ -297,9 +297,9 @@ public static void unexportRegistry() {
297
297
/**
298
298
* Initializes and starts the JMX Connector Server.
299
299
* 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)}.
303
303
*
304
304
* This method is used by some jtreg tests.
305
305
**/
@@ -318,8 +318,7 @@ public static synchronized JMXConnectorServer initialize() {
318
318
/**
319
319
* This method is used by some jtreg tests.
320
320
*
321
- * @see #startRemoteConnectorServer
322
- * (String portStr, Properties props)
321
+ * @see #startRemoteConnectorServer(String portStr, Properties props)
323
322
*/
324
323
public static synchronized JMXConnectorServer initialize (String portStr , Properties props ) {
325
324
return startRemoteConnectorServer (portStr , props );
@@ -516,7 +515,7 @@ public static synchronized JMXConnectorServer startRemoteConnectorServer(String
516
515
* and management.
517
516
*/
518
517
public static JMXConnectorServer startLocalConnectorServer () {
519
- // Ensure cryptographically strong random number generater used
518
+ // Ensure cryptographically strong random number generator used
520
519
// to choose the object number - see java.rmi.server.ObjID
521
520
System .setProperty ("java.rmi.server.randomIDs" , "true" );
522
521
0 commit comments