diff -r c404a87db5b7 -r 74139325d305 src/org/sonews/storage/impl/JDBCDatabaseProvider.java --- a/src/org/sonews/storage/impl/JDBCDatabaseProvider.java Sun Aug 29 17:43:58 2010 +0200 +++ b/src/org/sonews/storage/impl/JDBCDatabaseProvider.java Sun Aug 29 18:17:37 2010 +0200 @@ -33,37 +33,29 @@ public class JDBCDatabaseProvider implements StorageProvider { - protected static final Map instances - = new ConcurrentHashMap(); + protected static final Map instances = new ConcurrentHashMap(); - @Override - public boolean isSupported(String uri) - { - throw new UnsupportedOperationException("Not supported yet."); - } + @Override + public boolean isSupported(String uri) + { + throw new UnsupportedOperationException("Not supported yet."); + } - @Override - public Storage storage(Thread thread) - throws StorageBackendException - { - try - { - if(!instances.containsKey(Thread.currentThread())) - { - JDBCDatabase db = new JDBCDatabase(); - db.arise(); - instances.put(Thread.currentThread(), db); - return db; - } - else - { - return instances.get(Thread.currentThread()); - } - } - catch(SQLException ex) - { - throw new StorageBackendException(ex); - } - } - + @Override + public Storage storage(Thread thread) + throws StorageBackendException + { + try { + if (!instances.containsKey(Thread.currentThread())) { + JDBCDatabase db = new JDBCDatabase(); + db.arise(); + instances.put(Thread.currentThread(), db); + return db; + } else { + return instances.get(Thread.currentThread()); + } + } catch (SQLException ex) { + throw new StorageBackendException(ex); + } + } }