SAMZA-2676: Pass parameter into subset, not format (#1523)
There is an unused parameter on this format string. Removing it should
preserve the existing behavior.
diff --git a/samza-core/src/main/java/org/apache/samza/config/StreamConfig.java b/samza-core/src/main/java/org/apache/samza/config/StreamConfig.java
index 950cf10..9f774b8 100644
--- a/samza-core/src/main/java/org/apache/samza/config/StreamConfig.java
+++ b/samza-core/src/main/java/org/apache/samza/config/StreamConfig.java
@@ -278,7 +278,7 @@
* Returns a list of all SystemStreams that have a serde defined from the config file.
*/
public Set<SystemStream> getSerdeStreams(String systemName) {
- Config subConf = subset(String.format("systems.%s.streams.", systemName, true));
+ Config subConf = subset(String.format("systems.%s.streams.", systemName), true);
Set<SystemStream> legacySystemStreams = subConf.keySet().stream()
.filter(k -> k.endsWith(MSG_SERDE) || k.endsWith(KEY_SERDE))
.map(k -> {