diff options
| author | Simon Rettberg | 2015-06-11 18:40:49 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2015-06-11 18:40:49 +0200 |
| commit | e0005ceecfd9281230c4add7575b18ee88307774 (patch) | |
| tree | a73bbcfc213df478c701aac120ae2b7c6e52bb1b /dozentenmodulserver/src/main/java/util/Util.java | |
| parent | [server] db stuff, new interface, ... (diff) | |
| download | tutor-module-e0005ceecfd9281230c4add7575b18ee88307774.tar.gz tutor-module-e0005ceecfd9281230c4add7575b18ee88307774.tar.xz tutor-module-e0005ceecfd9281230c4add7575b18ee88307774.zip | |
[server] On mah way (lots of restructuring, some early db classes, sql dump of current schema)
Diffstat (limited to 'dozentenmodulserver/src/main/java/util/Util.java')
| -rw-r--r-- | dozentenmodulserver/src/main/java/util/Util.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/dozentenmodulserver/src/main/java/util/Util.java b/dozentenmodulserver/src/main/java/util/Util.java deleted file mode 100644 index 28f522b8..00000000 --- a/dozentenmodulserver/src/main/java/util/Util.java +++ /dev/null @@ -1,45 +0,0 @@ -package util; - -import java.io.Closeable; - -public class Util { - - /** - * Try to close everything passed to this method. Never throw an exception - * if it fails, just silently continue. - * - * @param item One or more objects that are Closeable - */ - public static void safeClose(Closeable... item) { - if (item == null) - return; - for (Closeable c : item) { - if (c == null) - continue; - try { - c.close(); - } catch (Exception e) { - } - } - } - - /** - * Try to close everything passed to this method. Never throw an exception - * if it fails, just silently continue. - * - * @param item One or more objects that are AutoCloseable - */ - public static void safeClose(AutoCloseable... item) { - if (item == null) - return; - for (AutoCloseable c : item) { - if (c == null) - continue; - try { - c.close(); - } catch (Exception e) { - } - } - } - -} |
