diff -r ed84c8bdd87b -r f8894df2d079 src/org/sonews/storage/impl/JDBCDatabaseProvider.java --- a/src/org/sonews/storage/impl/JDBCDatabaseProvider.java Sun Aug 29 17:28:58 2010 +0200 +++ b/src/org/sonews/storage/impl/JDBCDatabaseProvider.java Wed May 04 18:06:24 2011 +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); + } + } }