1.1 --- a/src/org/sonews/Main.java Sun Aug 29 18:17:37 2010 +0200
1.2 +++ b/src/org/sonews/Main.java Mon Jun 06 20:12:21 2011 +0200
1.3 @@ -15,7 +15,6 @@
1.4 * You should have received a copy of the GNU General Public License
1.5 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.6 */
1.7 -
1.8 package org.sonews;
1.9
1.10 import java.sql.Driver;
1.11 @@ -42,8 +41,7 @@
1.12 * @author Christian Lins
1.13 * @since sonews/0.5.0
1.14 */
1.15 -public final class Main
1.16 -{
1.17 +public final class Main {
1.18
1.19 /** Version information of the sonews daemon */
1.20 public static final String VERSION = "sonews/1.1.0";
1.21 @@ -54,8 +52,7 @@
1.22 * @param args
1.23 * @throws Exception
1.24 */
1.25 - public static void main(String[] args) throws Exception
1.26 - {
1.27 + public static void main(String[] args) throws Exception {
1.28 System.out.println(VERSION);
1.29 Thread.currentThread().setName("Mainthread");
1.30
1.31 @@ -106,7 +103,7 @@
1.32 // a working JDBCDatabase connection.
1.33 try {
1.34 StorageProvider sprov =
1.35 - StorageManager.loadProvider("org.sonews.storage.impl.JDBCDatabaseProvider");
1.36 + StorageManager.loadProvider("org.sonews.storage.impl.JDBCDatabaseProvider");
1.37 StorageManager.enableProvider(sprov);
1.38
1.39 // Make sure some elementary groups are existing
1.40 @@ -118,7 +115,7 @@
1.41 ex.printStackTrace();
1.42 System.err.println("Database initialization failed with " + ex.toString());
1.43 System.err.println("Make sure you have specified the correct database"
1.44 - + " settings in sonews.conf!");
1.45 + + " settings in sonews.conf!");
1.46 return;
1.47 }
1.48
1.49 @@ -154,13 +151,11 @@
1.50 daemon.join();
1.51 }
1.52
1.53 - private static void printArguments()
1.54 - {
1.55 + private static void printArguments() {
1.56 String usage = Resource.getAsString("helpers/usage", true);
1.57 System.out.println(usage);
1.58 }
1.59
1.60 - private Main()
1.61 - {
1.62 + private Main() {
1.63 }
1.64 }