[rme] Remove org.apache.common (#14433)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel 2023-10-17 14:22:05 +02:00 committed by GitHub
parent 1fca7bfdc6
commit a8c1d0927f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,6 @@ package org.openhab.binding.rme.internal.handler;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import org.openhab.binding.rme.internal.RMEBindingConstants.DataField;
import org.openhab.core.io.transport.serial.SerialPortManager;
import org.openhab.core.library.types.DecimalType;
@ -24,6 +23,7 @@ import org.openhab.core.library.types.StringType;
import org.openhab.core.thing.ChannelUID;
import org.openhab.core.thing.Thing;
import org.openhab.core.types.Command;
import org.openhab.core.util.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -79,7 +79,9 @@ public class RMEThingHandler extends SerialThingHandler {
@Override
public void onDataReceived(String receivedLine) {
String line = StringUtils.chomp(receivedLine);
if (line == null) {
line = "";
}
// little hack to overcome Locale limits of the RME Rain Manager
// note to the attentive reader : should we add support for system
// locale's in the Type classes? ;-)