代码拉取完成,页面将自动刷新
diff --git a/core/src/main/java/org/jruby/ext/psych/PsychEmitter.java b/core/src/main/java/org/jruby/ext/psych/PsychEmitter.java
index d9f3231..4a0ba0d 100644
--- a/core/src/main/java/org/jruby/ext/psych/PsychEmitter.java
+++ b/core/src/main/java/org/jruby/ext/psych/PsychEmitter.java
@@ -330,7 +330,7 @@ public class PsychEmitter extends RubyObject {
DumperOptions options = new DumperOptions();
IRubyObject io;
- private static final Mark NULL_MARK = new Mark(null, 0, 0, 0, null, 0);
+ private static final Mark NULL_MARK = new Mark((String) null, 0, 0, 0, (String) null, 0);
// Map style constants from Psych values (ANY = 0 ... FOLDED = 5)
// to SnakeYaml values; see psych/nodes/scalar.rb.
diff --git a/core/src/main/java/org/jruby/ext/psych/PsychParser.java b/core/src/main/java/org/jruby/ext/psych/PsychParser.java
index 33a98b5..7cff388 100644
--- a/core/src/main/java/org/jruby/ext/psych/PsychParser.java
+++ b/core/src/main/java/org/jruby/ext/psych/PsychParser.java
@@ -345,10 +345,10 @@ public class PsychParser extends RubyObject {
}
}
- private static int translateFlowStyle(Boolean flowStyle) {
+ private static int translateFlowStyle(DumperOptions.FlowStyle flowStyle) {
if (flowStyle == null) return 0; // any
- if (flowStyle) return 2;
+ if (flowStyle.getStyleBoolean()) return 2;
return 1;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。