You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/02/14 10:04:52 UTC

[GitHub] [shardingsphere] linghengqian commented on a change in pull request #15260: [issue-15259] upgrade snakeyaml due to cve

linghengqian commented on a change in pull request #15260:
URL: https://github.com/apache/shardingsphere/pull/15260#discussion_r805680870



##########
File path: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/yaml/engine/fixture/YamlTupleProcessorFixture.java
##########
@@ -33,6 +34,7 @@ public String getTupleName() {
     @Override
     public NodeTuple process(final NodeTuple nodeTuple) {
         String value = ((ScalarNode) nodeTuple.getValueNode()).getValue();
-        return "null".equals(value) ? null : new NodeTuple(nodeTuple.getKeyNode(), new ScalarNode(Tag.STR, String.join("_", "converted", value), null, null, null));
+        return "null".equals(value) ? null : new NodeTuple(nodeTuple.getKeyNode(),
+                new ScalarNode(Tag.STR, String.join("_", "converted", value), null, null, DumperOptions.ScalarStyle.PLAIN));

Review comment:
       Without newlines, this would exceed 200 characters and fail checkstyle.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org