clean: Remove warning code in [shenyu-plugin-logging] module
@@ -120,11 +120,11 @@ public class LoggingPlugin extends AbstractShenyuPlugin {
private String getHeaders(final HttpHeaders headers) {
StringBuilder sb = new StringBuilder();
Set<Map.Entry<String, List<String>>> entrySet = headers.entrySet();
- for (Map.Entry<String, List<String>> entry : entrySet) {
+ entrySet.forEach(entry -> {
String key = entry.getKey();
List<String> value = entry.getValue();
sb.append(key).append(": ").append(StringUtils.join(value, ",")).append(System.lineSeparator());
- }
+ });
return sb.toString();
}
