(T object)
| 94 | } |
| 95 | |
| 96 | public static <T extends Closeable> T free(T object) { |
| 97 | if (object != null) { |
| 98 | try { |
| 99 | object.close(); |
| 100 | } catch (IOException e) { |
| 101 | throw new FatalError(e); |
| 102 | } |
| 103 | } |
| 104 | return null; |
| 105 | } |
| 106 | |
| 107 | public static <T extends Closeable> void free(T[] list) { |
| 108 | if (list != null) { |