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:
parent
a50c90b79d
commit
f47a7287c6
|
@ -171,8 +171,7 @@ public class JMXJsonServlet extends HttpServlet {
|
||||||
}
|
}
|
||||||
beanWriter = this.jsonBeanWriter.open(writer);
|
beanWriter = this.jsonBeanWriter.open(writer);
|
||||||
// Should we output description on each attribute and bean?
|
// Should we output description on each attribute and bean?
|
||||||
String tmpStr = request.getParameter(INCLUDE_DESCRIPTION);
|
boolean description = "true".equals(request.getParameter(INCLUDE_DESCRIPTION));
|
||||||
boolean description = tmpStr != null && tmpStr.length() > 0;
|
|
||||||
|
|
||||||
// query per mbean attribute
|
// query per mbean attribute
|
||||||
String getmethod = request.getParameter("get");
|
String getmethod = request.getParameter("get");
|
||||||
|
|
Loading…
Reference in New Issue