diff options
author | Charles Oliver Nutter <headius@headius.com> | 2021-02-25 15:15:47 -0600 |
---|---|---|
committer | Charles Oliver Nutter <headius@headius.com> | 2021-02-25 15:15:47 -0600 |
commit | b4b5b498475fc108ec157db5e07ba4ef09ae06e9 (patch) | |
tree | b8a5cb85a5c89c22e01fa32f79503fa3c3d27159 /ext | |
parent | 5d734aab8fad9d42b80bff3ba0a76254c3509a66 (diff) | |
download | psych-b4b5b498475fc108ec157db5e07ba4ef09ae06e9.tar.gz |
Skip deprecated require form
Diffstat (limited to 'ext')
-rw-r--r-- | ext/java/org/jruby/ext/psych/PsychParser.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/java/org/jruby/ext/psych/PsychParser.java b/ext/java/org/jruby/ext/psych/PsychParser.java index b660a0f..7672cd2 100644 --- a/ext/java/org/jruby/ext/psych/PsychParser.java +++ b/ext/java/org/jruby/ext/psych/PsychParser.java @@ -89,8 +89,7 @@ public class PsychParser extends RubyObject { } }, psych); - RubyKernel.require(runtime.getNil(), - runtime.newString("psych/syntax_error"), Block.NULL_BLOCK); + runtime.getLoadService().require("psych/syntax_error"); psychParser.defineConstant("ANY", runtime.newFixnum(YAML_ANY_ENCODING.ordinal())); psychParser.defineConstant("UTF8", runtime.newFixnum(YAML_UTF8_ENCODING.ordinal())); psychParser.defineConstant("UTF16LE", runtime.newFixnum(YAML_UTF16LE_ENCODING.ordinal())); |