Skip to content

Commit 83832d9

Browse files
committed
Removes StringUtils as a dependency
Removes the need for StringUtils by using the String.isBlank() methods
1 parent c564d70 commit 83832d9

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@
145145
<artifactId>guava</artifactId>
146146
<version>32.0.0-jre</version>
147147
</dependency>
148-
<dependency>
149-
<groupId>commons-lang</groupId>
150-
<artifactId>commons-lang</artifactId>
151-
<version>2.6</version>
152-
</dependency>
153148
<dependency>
154149
<groupId>io.micrometer</groupId>
155150
<artifactId>micrometer-core</artifactId>

src/main/assemble/component.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
version listing for packaged artifacts -->
3535
<include>${groupId}:${artifactId}</include>
3636
<include>com.google.guava:guava</include>
37-
<include>commons-lang:commons-lang</include>
3837
<include>org.apache.thrift:libthrift</include>
3938
<include>org.slf4j:slf4j-api</include>
4039
</includes>

src/main/java/org/apache/accumulo/proxy/Proxy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import org.apache.accumulo.server.rpc.TimedProcessor;
4949
import org.apache.accumulo.server.rpc.UGIAssumingProcessor;
5050
import org.apache.accumulo.start.spi.KeywordExecutable;
51-
import org.apache.commons.lang.StringUtils;
5251
import org.apache.hadoop.security.UserGroupInformation;
5352
import org.apache.thrift.TProcessor;
5453
import org.apache.thrift.protocol.TCompactProtocol;
@@ -233,7 +232,8 @@ public static ServerAddress createProxyServer(HostAndPort address,
233232
}
234233
final KerberosToken kerberosToken = (KerberosToken) authToken;
235234
final String kerberosKeytab = kerberosToken.getKeytab().getAbsolutePath();
236-
if (StringUtils.isBlank(kerberosPrincipal) || StringUtils.isBlank(kerberosKeytab)) {
235+
236+
if (kerberosPrincipal.isBlank() || kerberosKeytab.isBlank()) {
237237
throw new IllegalStateException(
238238
String.format("Kerberos principal '%s' and keytab '%s' must be provided",
239239
kerberosPrincipal, kerberosKeytab));

0 commit comments

Comments
 (0)