Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cosmetic

  • Loading branch information...
commit 4fc5344ced4fcb0dbff83dbb166eedc029360787 1 parent 65102bc
@dekellum authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 src/main/java/fishwife/OutputUtil.java
View
11 src/main/java/fishwife/OutputUtil.java
@@ -16,6 +16,8 @@
package fishwife;
+import static org.jruby.exceptions.RaiseException.createNativeRaiseException;
+
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
@@ -26,7 +28,6 @@
import org.jruby.RubyString;
import org.jruby.anno.JRubyClass;
import org.jruby.anno.JRubyMethod;
-import org.jruby.exceptions.RaiseException;
import org.jruby.javasupport.util.RuntimeHelpers;
import org.jruby.runtime.Arity;
import org.jruby.runtime.Block;
@@ -72,12 +73,10 @@ public static IRubyObject writeFile( ThreadContext tc,
}
}
catch( FileNotFoundException x ) {
- throw RaiseException.
- createNativeRaiseException( tc.getRuntime(), x );
+ throw createNativeRaiseException( tc.getRuntime(), x );
}
catch( IOException x ) {
- throw RaiseException.
- createNativeRaiseException( tc.getRuntime(), x );
+ throw createNativeRaiseException( tc.getRuntime(), x );
}
}
@@ -127,7 +126,7 @@ public IRubyObject call( ThreadContext context,
return _runtime.getNil();
}
catch( IOException x ) {
- throw RaiseException.createNativeRaiseException( _runtime, x );
+ throw createNativeRaiseException( _runtime, x );
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.