Use BrokerFacade non-statically
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / QueryParametersParser.java
index 7e878591a1fa791fe821f9864d43c0df4eb70188..8dabbf7cde5c3b24d15b4f453e6cf58e7e951a00 100644 (file)
@@ -53,7 +53,7 @@ public final class QueryParametersParser {
         String param = info.getQueryParameters(false).getFirst(UriParameters.DEPTH.toString());
         if (!Strings.isNullOrEmpty(param) && !"unbounded".equals(param)) {
             try {
-                final int depth = Integer.valueOf(param);
+                final int depth = Integer.parseInt(param);
                 if (depth < 1) {
                     throw new RestconfDocumentedException(
                             new RestconfError(RestconfError.ErrorType.PROTOCOL, RestconfError.ErrorTag.INVALID_VALUE,