diff --git a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java index a48bf0452393..c68250e8d94c 100644 --- a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java +++ b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java @@ -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");