Rework more commons-lang usages (#10314)
* Reworks many commons-lang usages to use standard Java * Updates all remaining commons.lang imports to commons.lang3 Related to openhab/openhab-addons#7722 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -20,7 +20,6 @@ Fragment-Host: org.openhab.binding.ntp
|
||||
ch.qos.logback.core;version='[1.2.3,1.2.4)',\
|
||||
com.google.gson;version='[2.8.2,2.8.3)',\
|
||||
javax.measure.unit-api;version='[1.0.0,1.0.1)',\
|
||||
org.apache.commons.lang;version='[2.6.0,2.6.1)',\
|
||||
org.apache.commons.commons-net;version='[3.7.2,3.7.3)',\
|
||||
org.apache.felix.configadmin;version='[1.9.8,1.9.9)',\
|
||||
org.apache.felix.http.servlet-api;version='[1.1.2,1.1.3)',\
|
||||
|
||||
@@ -26,7 +26,6 @@ import java.util.Collections;
|
||||
import java.util.Locale;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
@@ -450,9 +449,7 @@ public class NtpOSGiTest extends JavaOSGiTest {
|
||||
}
|
||||
|
||||
private String getStringChannelTimeZoneFromItemRegistry() {
|
||||
String itemState = getItemState(ACCEPTED_ITEM_TYPE_STRING).toString();
|
||||
String timeZoneFromItemRegistry = StringUtils.substringAfterLast(itemState, " ");
|
||||
return timeZoneFromItemRegistry;
|
||||
return getItemState(ACCEPTED_ITEM_TYPE_STRING).toString().split(" ")[2];
|
||||
}
|
||||
|
||||
private void assertFormat(String initialDate, String formatPattern) {
|
||||
|
||||
Reference in New Issue
Block a user