Mercurial Hosting > luan
comparison src/luan/lib/Utils.java @ 130:0594c132888b
cleanup
git-svn-id: https://luan-java.googlecode.com/svn/trunk@131 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 10 Jun 2014 02:43:40 +0000 |
parents | 0cd559a16758 |
children | fcb81fa2df0d |
comparison
equal
deleted
inserted
replaced
129:486a0641bca4 | 130:0594c132888b |
---|---|
14 | 14 |
15 static final int bufSize = 8192; | 15 static final int bufSize = 8192; |
16 | 16 |
17 public static void checkNotNull(LuanState luan,Object v,String expected) throws LuanException { | 17 public static void checkNotNull(LuanState luan,Object v,String expected) throws LuanException { |
18 if( v == null ) | 18 if( v == null ) |
19 throw luan.JAVA.exception("bad argument #1 ("+expected+" expected, got nil)"); | 19 throw luan.exception("bad argument #1 ("+expected+" expected, got nil)"); |
20 } | 20 } |
21 | 21 |
22 public static String readAll(Reader in) | 22 public static String readAll(Reader in) |
23 throws IOException | 23 throws IOException |
24 { | 24 { |