Skip to content

Commit

Permalink
NMS-16986 : Handel Review Changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwajahatabbasi committed Jan 16, 2025
1 parent 993520a commit 4fa6a84
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,7 @@ protected String slurpCommand(final String[] command) {
isr = new InputStreamReader(is);
br = new BufferedReader(isr);
String line=null;
while ((line = br.readLine()) != null) { //br.ready() not working as desired so code modified.
/*
lines commented due to desired results are not shown using this code.
final String line = br.readLine();
if (line == null) break;*/
while ((line = br.readLine()) != null) {
sb.append(line);
if (br.ready()) sb.append("\n");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* Licensed to The OpenNMS Group, Inc (TOG) under one or more
* contributor license agreements. See the LICENSE.md file
* distributed with this work for additional information
* regarding copyright ownership.
*
* TOG licenses this file to You under the GNU Affero General
* Public License Version 3 (the "License") or (at your option)
* any later version. You may not use this file except in
* compliance with the License. You may obtain a copy of the
* License at:
*
* https://www.gnu.org/licenses/agpl-3.0.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the
* License.
*/
package org.opennms.systemreport.system;

import org.opennms.systemreport.AbstractSystemReportPlugin;
Expand Down

0 comments on commit 4fa6a84

Please sign in to comment.