Skip to content

Commit

Permalink
clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradellis committed Nov 11, 2022
1 parent c6ee56e commit bb2be1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static void addJmx() {
if (!addedJmx.getAndSet(true)) {
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
//The ObjectName is different if embedded tomcat is used. Checking that this object has been registered
//will let us know that we are in an embedded tomcat. The Set returned by queryNames will return 0 if the ObjectName is not
//will let us know that we are in an embedded tomcat. The Set returned by queryNames will return size 0 if the ObjectName is not
//found
try {
if (server.queryNames(new ObjectName("Tomcat:type=Server"), null).size() == 1) {
Expand Down

0 comments on commit bb2be1d

Please sign in to comment.