This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new e3cb8cf1261 NIFI-16143 Removed unnecessary calls of String.valueOf on
a String (#11475)
e3cb8cf1261 is described below
commit e3cb8cf1261d1875c95e79f339f05ef302867a61
Author: dan-s1 <[email protected]>
AuthorDate: Fri Jul 24 21:08:06 2026 -0400
NIFI-16143 Removed unnecessary calls of String.valueOf on a String (#11475)
Signed-off-by: David Handermann <[email protected]>
---
.../nifi/framework/cluster/zookeeper/SecureClientZooKeeperFactory.java | 2 +-
.../org/apache/nifi/authorization/CompositeUserGroupProviderTest.java | 2 +-
.../nifi/controller/queue/clustered/TestSwappablePriorityQueue.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/nifi-framework-bundle/nifi-framework-extensions/nifi-framework-zookeeper-bundle/nifi-framework-cluster-zookeeper/src/main/java/org/apache/nifi/framework/cluster/zookeeper/SecureClientZooKeeperFactory.java
b/nifi-framework-bundle/nifi-framework-extensions/nifi-framework-zookeeper-bundle/nifi-framework-cluster-zookeeper/src/main/java/org/apache/nifi/framework/cluster/zookeeper/SecureClientZooKeeperFactory.java
index 40470fb8794..8fb22e64178 100644
---
a/nifi-framework-bundle/nifi-framework-extensions/nifi-framework-zookeeper-bundle/nifi-framework-cluster-zookeeper/src/main/java/org/apache/nifi/framework/cluster/zookeeper/SecureClientZooKeeperFactory.java
+++
b/nifi-framework-bundle/nifi-framework-extensions/nifi-framework-zookeeper-bundle/nifi-framework-cluster-zookeeper/src/main/java/org/apache/nifi/framework/cluster/zookeeper/SecureClientZooKeeperFactory.java
@@ -37,7 +37,7 @@ public class SecureClientZooKeeperFactory implements
ZookeeperFactory {
// Netty is required for the secure client config.
final String cnxnSocket = zkConfig.getConnectionSocket();
if (!NETTY_CLIENT_CNXN_SOCKET.equals(cnxnSocket)) {
- throw new IllegalArgumentException(String.format("connection
factory set to '%s', %s required", String.valueOf(cnxnSocket),
NETTY_CLIENT_CNXN_SOCKET));
+ throw new IllegalArgumentException(String.format("connection
factory set to '%s', %s required", cnxnSocket, NETTY_CLIENT_CNXN_SOCKET));
}
zkSecureClientConfig.setProperty(ZKClientConfig.ZOOKEEPER_CLIENT_CNXN_SOCKET,
cnxnSocket);
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-authorization-providers/src/test/java/org/apache/nifi/authorization/CompositeUserGroupProviderTest.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-authorization-providers/src/test/java/org/apache/nifi/authorization/CompositeUserGroupProviderTest.java
index 943adf11e0a..99a4b820ef6 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-authorization-providers/src/test/java/org/apache/nifi/authorization/CompositeUserGroupProviderTest.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-authorization-providers/src/test/java/org/apache/nifi/authorization/CompositeUserGroupProviderTest.java
@@ -58,7 +58,7 @@ public class CompositeUserGroupProviderTest extends
CompositeUserGroupProviderTe
// configuration
final AuthorizerConfigurationContext configurationContext =
mock(AuthorizerConfigurationContext.class);
-
when(configurationContext.getProperty(eq(PROP_USER_GROUP_PROVIDER_PREFIX +
"1"))).thenReturn(new StandardPropertyValue(String.valueOf("1"), null,
ParameterLookup.EMPTY));
+
when(configurationContext.getProperty(eq(PROP_USER_GROUP_PROVIDER_PREFIX +
"1"))).thenReturn(new StandardPropertyValue("1", null, ParameterLookup.EMPTY));
mockProperties(configurationContext);
assertThrows(AuthorizerCreationException.class, () -> {
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/queue/clustered/TestSwappablePriorityQueue.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/queue/clustered/TestSwappablePriorityQueue.java
index 05550aaa3b8..a0ef3123b3d 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/queue/clustered/TestSwappablePriorityQueue.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/queue/clustered/TestSwappablePriorityQueue.java
@@ -170,7 +170,7 @@ public class TestSwappablePriorityQueue {
// Added 3 FlowFiles to the queue. These will all go to the Swap Queue.
for (final String iValue : new String[] {"10000", "-5", "8000"}) {
- final MockFlowFileRecord swapQueueFlowFile1 = new
MockFlowFileRecord(Map.of("i", String.valueOf(iValue)), 10_000);
+ final MockFlowFileRecord swapQueueFlowFile1 = new
MockFlowFileRecord(Map.of("i", iValue), 10_000);
queue.put(swapQueueFlowFile1);
}