Skip to content

Commit

Permalink
HBASE-27407 Fixing check for "description" request param in JMXJsonSe…
Browse files Browse the repository at this point in the history
…rvlet.java (apache#4816)

Signed-off-by: Wellington Chevreuil <[email protected]>
(cherry picked from commit d5af301)
Change-Id: I330ada616553a66e282763d64a17a3726f62d686
  • Loading branch information
lucakovacs authored and wchevreuil committed Oct 10, 2022
1 parent 64624e8 commit f3563a5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
}
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");
Expand Down

0 comments on commit f3563a5

Please sign in to comment.