Skip to content

Commit d419c8e

Browse files
committed
[refactor] remove commons-lang3 dependency from 2 core classes
- Eval.java and AppRestoreUtils
1 parent 348888e commit d419c8e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

exist-core/src/main/java/org/exist/backup/restore/AppRestoreUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
*/
2222
package org.exist.backup.restore;
2323

24-
import org.apache.commons.lang3.StringUtils;
2524
import org.apache.logging.log4j.LogManager;
2625
import org.apache.logging.log4j.Logger;
2726
import org.exist.Namespaces;
@@ -141,7 +140,7 @@ public void startElement(String uri, String localName, String qName, Attributes
141140
if (PKG_NAMESPACE.equals(uri) && "package".equals(localName)) {
142141
final String version = attributes.getValue("version");
143142
final String name = attributes.getValue("name");
144-
if (StringUtils.isEmpty(version) || StringUtils.isEmpty(name)) {
143+
if (version.isEmpty() || name.isEmpty()) {
145144
LOG.warn("Invalid package descriptor for {}", app.getSymbolicPath());
146145
return;
147146
}

exist-core/src/main/java/org/exist/xquery/functions/util/Eval.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
import org.xml.sax.XMLReader;
7979

8080
import static java.nio.charset.StandardCharsets.UTF_8;
81-
import static org.apache.commons.lang3.StringUtils.isNotEmpty;
8281
import static org.exist.xquery.FunctionDSL.*;
8382
import static org.exist.xquery.functions.util.UtilModule.functionSignatures;
8483

0 commit comments

Comments
 (0)