1717 * distribute, sublicense, and/or sell copies of the Software, and to
1818 * permit persons to whom the Software is furnished to do so, subject to
1919 * the following conditions:
20- *
20+ *
2121 * The above copyright notice and this permission notice shall be
2222 * included in all copies or substantial portions of the Software.
23- *
23+ *
2424 * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
2525 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2626 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
6464import org .jruby .anno .JRubyClass ;
6565import org .jruby .anno .JRubyMethod ;
6666import org .jruby .exceptions .RaiseException ;
67- import org .jruby .javasupport . util . RuntimeHelpers ;
67+ import org .jruby .runtime . Helpers ;
6868import org .jruby .runtime .Block ;
6969import org .jruby .runtime .ThreadContext ;
7070import org .jruby .runtime .Visibility ;
@@ -227,7 +227,7 @@ protected void decorate(final ThreadContext context) {
227227 doc = document (context .runtime );
228228
229229 if (doc != null && ! doc .isNil ()) {
230- RuntimeHelpers .invoke (context , doc , "decorate" , this );
230+ Helpers .invoke (context , doc , "decorate" , this );
231231 }
232232 }
233233 }
@@ -570,7 +570,7 @@ public void setDocument(ThreadContext context, IRubyObject doc) {
570570 static void setDocumentAndDecorate (ThreadContext context , RubyObject self , IRubyObject doc ) {
571571 self .setInstanceVariable ("@document" , doc );
572572 if (doc != null ) {
573- RuntimeHelpers .invoke (context , doc , "decorate" , self );
573+ Helpers .invoke (context , doc , "decorate" , self );
574574 }
575575 }
576576
@@ -709,7 +709,7 @@ public IRubyObject attribute_with_ns(ThreadContext context, IRubyObject name, IR
709709
710710 @ JRubyMethod (name = "blank?" )
711711 public IRubyObject blank_p (ThreadContext context ) {
712- // according to libxml doc,
712+ // according to libxml doc,
713713 // a node is blank if if it is a Text or CDATA node consisting of whitespace only
714714 if (node .getNodeType () == Node .TEXT_NODE || node .getNodeType () == Node .CDATA_SECTION_NODE ) {
715715 String data = node .getTextContent ();
@@ -853,7 +853,7 @@ public IRubyObject in_context(ThreadContext context,
853853 HtmlDomParserContext htmlCtx = (HtmlDomParserContext ) ctx ;
854854 htmlCtx .setEncoding (document .getEncoding ().asJavaString ());
855855 }
856-
856+
857857 XmlDocument doc = ctx .parse (context , klass , runtime .getNil ());
858858
859859 RubyArray documentErrors = getErrorArray (document );
@@ -1158,7 +1158,7 @@ public IRubyObject namespace(ThreadContext context) {
11581158 @ JRubyMethod
11591159 public IRubyObject namespace_definitions (ThreadContext context ) {
11601160 // don't use namespace_definitions cache anymore since
1161- // namespaces might be deleted. Reflecting the result of
1161+ // namespaces might be deleted. Reflecting the result of
11621162 // namesapce removals is complicated, so the cache might not be
11631163 // updated.
11641164 Ruby ruby = context .getRuntime ();
@@ -1279,7 +1279,7 @@ public IRubyObject native_write_to(ThreadContext context, IRubyObject[] args) {
12791279
12801280 String encString = encoding .isNil () ? null : rubyStringToString (encoding );
12811281
1282- SaveContextVisitor visitor =
1282+ SaveContextVisitor visitor =
12831283 new SaveContextVisitor (RubyFixnum .fix2int (options ), rubyStringToString (indentString ), encString , isHtmlDoc (context ), isFragment (), 0 );
12841284 accept (context , visitor );
12851285
@@ -1291,7 +1291,7 @@ public IRubyObject native_write_to(ThreadContext context, IRubyObject[] args) {
12911291 ByteList str = new ByteList (bytes .array (), bytes .arrayOffset (), bytes .remaining ());
12921292 rubyString = RubyString .newString (context .getRuntime (), str );
12931293 }
1294- RuntimeHelpers .invoke (context , io , "write" , rubyString );
1294+ Helpers .invoke (context , io , "write" , rubyString );
12951295
12961296 return io ;
12971297 }
@@ -1764,7 +1764,7 @@ public IRubyObject add_next_sibling_node(ThreadContext context, IRubyObject othe
17641764 *
17651765 * Loads and substitutes all xinclude elements below the node. The
17661766 * parser context will be initialized with +options+.
1767- *
1767+ *
17681768 */
17691769 @ JRubyMethod (visibility =Visibility .PRIVATE )
17701770 public IRubyObject process_xincludes (ThreadContext context , IRubyObject options ) {
0 commit comments