platform/shared/rubyJVM/src/com/xruby/runtime/builtin/InputStreamExecutor.java in rhodes-2.0.0.beta1 vs platform/shared/rubyJVM/src/com/xruby/runtime/builtin/InputStreamExecutor.java in rhodes-2.0.0.beta2
- old
+ new
@@ -18,10 +18,10 @@
public InputStreamExecutor(InputStream is) {
m_is = is;
}
public InputStreamExecutor(String filename, String mode) {
- if ( mode != "r" )
+ if ( !mode.equals("r") )
throw new Error("Read Only!");
try {
// m_is = RhoClassFactory.createFile().getResourceAsStream(filename.getClass(), filename);
m_is = RhoRuby.loadFile(filename);