Skip to content

Commit

Permalink
No need for apache commons lang3 (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdickmeiss authored Dec 14, 2021
1 parent b1e0c55 commit 41f9d0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions okapi-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@
<groupId>com.cronutils</groupId>
<artifactId>cron-utils</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.folio.okapi</groupId>
<artifactId>okapi-testing</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import java.util.List;
import java.util.Set;
import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.Logger;
import org.folio.okapi.bean.DeploymentDescriptor;
import org.folio.okapi.bean.EnvEntry;
Expand Down Expand Up @@ -848,7 +847,7 @@ private Future<String> installTenantModulesDelete(String tenantId, String instal
}

private Future<String> upgradeModulesForTenant(ProxyContext pc, String tenantId, String body) {
if (! StringUtils.isEmpty(body)) {
if (!body.isEmpty()) {
return Future.failedFuture("/_/proxy/tenants/{tenant_id}/upgrade "
+ "(upgrading to latest version) must not have a body. "
+ "Use /_/proxy/tenants/{tenant_id}/install instead "
Expand Down

0 comments on commit 41f9d0b

Please sign in to comment.