Permalink
Browse files

Revert "Partly reverted build error introduced 146a637."

This reverts commit f545521.
  • Loading branch information...
1 parent b4d3cda commit 893d2fe7ba05e246a2378f20b480f6191e04e456 @headius headius committed Dec 13, 2016
Showing with 2 additions and 3 deletions.
  1. +2 −3 ext/java/PsychParser.java
@@ -241,10 +241,9 @@ public IRubyObject parse(ThreadContext context, IRubyObject yaml, IRubyObject pa
private void handleDocumentStart(ThreadContext context, DocumentStartEvent dse, boolean tainted, IRubyObject handler) {
Ruby runtime = context.runtime;
DumperOptions.Version _version = dse.getVersion();
- Integer[] versionInts = _version == null ? null : _version.getArray();
- IRubyObject version = versionInts == null ?
+ IRubyObject version = _version == null ?
RubyArray.newArray(runtime) :
- RubyArray.newArray(runtime, runtime.newFixnum(versionInts[0]), runtime.newFixnum(versionInts[1]));
+ RubyArray.newArray(runtime, runtime.newFixnum(_version.major()), runtime.newFixnum(_version.minor()));
Map<String, String> tagsMap = dse.getTags();
RubyArray tags = RubyArray.newArray(runtime);

0 comments on commit 893d2fe

Please sign in to comment.