summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/java/org/jruby/ext/psych/PsychEmitter.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/java/org/jruby/ext/psych/PsychEmitter.java b/ext/java/org/jruby/ext/psych/PsychEmitter.java
index 5e680d1..2ad1251 100644
--- a/ext/java/org/jruby/ext/psych/PsychEmitter.java
+++ b/ext/java/org/jruby/ext/psych/PsychEmitter.java
@@ -149,7 +149,6 @@ public class PsychEmitter extends RubyObject {
}
}
- SpecVersion version = new SpecVersion(1, 2);
Map<String, String> tagsMap = new HashMap<>();
if (!tags.isNil()) {
@@ -172,7 +171,7 @@ public class PsychEmitter extends RubyObject {
}
}
- DocumentStartEvent event = new DocumentStartEvent(!implicitBool, Optional.ofNullable(version), tagsMap, NULL_MARK, NULL_MARK);
+ DocumentStartEvent event = new DocumentStartEvent(!implicitBool, Optional.empty(), tagsMap, NULL_MARK, NULL_MARK);
emit(context, event);
return this;
}