Code formating and whitespace cleanup
[jpim.git] / src / de / j32 / pimstuff / Main.java
index 089eee9..733b6f3 100644 (file)
@@ -10,41 +10,42 @@ import de.j32.pimstuff.conduit.Registry;
 import de.j32.pimstuff.data.Addressbook;
 import de.j32.util.Util;
 
-public class Main {
+public class Main
+{
 
-       public static void main(String[] args)
-       {       
-               try {
-                       Addressbook ab = new Addressbook();
-                       Conduit conduit = Registry.get("fritzbox");
+    public static void main(String[] args)
+    {
+        try {
+            Addressbook ab = new Addressbook();
+            Conduit conduit = Registry.get("fritzbox");
 
-                       Importer i = null;
-                       try {
-                               i = conduit.importer();
-                               i.sendTo(ab);
-                               i.close();
-                               i = null;
-                       }
-                       finally {
-                               Util.nothrowClose(i);
-                       }
-                       
-                       Exporter e = null;
-                       try {
-                               e = conduit.exporter();
-                               ab.sendTo(e);
-                               e.close();
-                               e = null;
-                       }
-                       finally {
-                               Util.nothrowClose(e);
-                       }
-               }
-               catch (ConduitException e) {
-                       e.printStackTrace();
-               }
-               catch (IOException e) {
-                       e.printStackTrace();
-               }
-       }
+            Importer i = null;
+            try {
+                i = conduit.importer();
+                i.sendTo(ab);
+                i.close();
+                i = null;
+            }
+            finally {
+                Util.nothrowClose(i);
+            }
+
+            Exporter e = null;
+            try {
+                e = conduit.exporter();
+                ab.sendTo(e);
+                e.close();
+                e = null;
+            }
+            finally {
+                Util.nothrowClose(e);
+            }
+        }
+        catch (ConduitException e) {
+            e.printStackTrace();
+        }
+        catch (IOException e) {
+            e.printStackTrace();
+        }
+    }
 }