HBASE-27407 Fixing check for "description" request param in JMXJsonServlet.java (#4816)

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
This commit is contained in:
Luca Kovács 2022-10-06 11:47:30 +02:00 committed by GitHub
parent 5ffb29688d
commit feccf958e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -171,8 +171,7 @@ public class JMXJsonServlet extends HttpServlet {
}
beanWriter = this.jsonBeanWriter.open(writer);
// Should we output description on each attribute and bean?
String tmpStr = request.getParameter(INCLUDE_DESCRIPTION);
boolean description = tmpStr != null && tmpStr.length() > 0;
boolean description = "true".equals(request.getParameter(INCLUDE_DESCRIPTION));
// query per mbean attribute
String getmethod = request.getParameter("get");