Skip to content

Commit

Permalink
[exec] Remove org.apache.common (openhab#14443)
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
  • Loading branch information
lsiepel authored and querdenker2k committed Oct 29, 2023
1 parent 2fb3611 commit 9811b4e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
import java.util.Calendar;
import java.util.Date;
import java.util.IllegalFormatException;
import java.util.Objects;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
import org.openhab.binding.exec.internal.ExecWhitelistWatchService;
Expand All @@ -46,6 +46,7 @@
import org.openhab.core.transform.TransformationService;
import org.openhab.core.types.Command;
import org.openhab.core.types.RefreshType;
import org.openhab.core.util.StringUtils;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
import org.slf4j.Logger;
Expand Down Expand Up @@ -289,7 +290,7 @@ public void execute() {

outputBuilder.append(errorBuilder.toString());

String transformedResponse = StringUtils.chomp(outputBuilder.toString());
String transformedResponse = Objects.requireNonNull(StringUtils.chomp(outputBuilder.toString()));
String transformation = (String) getConfig().get(TRANSFORM);

if (transformation != null && transformation.length() > 0) {
Expand Down

0 comments on commit 9811b4e

Please sign in to comment.