Projects
Eulaceura:Factory
jruby
_service:obs_scm:jruby-snakeyaml-1.16.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:jruby-snakeyaml-1.16.patch of Package jruby
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 6bb7612..33a98b5 100644 --- a/core/src/main/java/org/jruby/ext/psych/PsychParser.java +++ b/core/src/main/java/org/jruby/ext/psych/PsychParser.java @@ -229,7 +229,10 @@ public class PsychParser extends RubyObject { 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(); + Integer[] versionInts = null; + if (_version != null) { + versionInts = new Integer[] { _version.major(), _version.minor() }; + } IRubyObject version = versionInts == null ? RubyArray.newArray(runtime) : RubyArray.newArray(runtime, runtime.newFixnum(versionInts[0]), runtime.newFixnum(versionInts[1]));
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2