From 36714d3b4a06ce60fc0c847a317387f103141713 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 15 Nov 2010 01:31:11 +0000 Subject: [PATCH] astyle --- .../k9/controller/MessagingController.java | 2 +- src/com/fsck/k9/mail/store/LocalStore.java | 4 +- .../fsck/k9/mail/store/StorageManager.java | 52 +++++++++---------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/com/fsck/k9/controller/MessagingController.java b/src/com/fsck/k9/controller/MessagingController.java index c1322e330..fb61b8dd6 100644 --- a/src/com/fsck/k9/controller/MessagingController.java +++ b/src/com/fsck/k9/controller/MessagingController.java @@ -4050,7 +4050,7 @@ public class MessagingController implements Runnable { queueMoveOrCopy(account, folder, account.getTrashFolderName(), false, uids); } - processPendingCommands(account); + processPendingCommands(account); } else if (account.getDeletePolicy() == Account.DELETE_POLICY_MARK_AS_READ) { diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index be97dfffd..b08a02dc0 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -178,7 +178,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati /** * {@link ThreadLocal} to check whether a DB transaction is occuring in the * current {@link Thread}. - * + * * @see #execute(boolean, DbCallback) */ private ThreadLocal inTransaction = new ThreadLocal(); @@ -311,7 +311,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati /** * Execute a DB callback in a shared context (doesn't prevent concurrent * shared executions), taking care of locking the DB storage. - * + * *

* Can be instructed to start a transaction if none is currently active in * the current thread. Callback will participe in any active transaction (no diff --git a/src/com/fsck/k9/mail/store/StorageManager.java b/src/com/fsck/k9/mail/store/StorageManager.java index e274ba041..21484e65e 100644 --- a/src/com/fsck/k9/mail/store/StorageManager.java +++ b/src/com/fsck/k9/mail/store/StorageManager.java @@ -32,7 +32,7 @@ public class StorageManager /** * Provides entry points (File objects) to an underlying storage, * alleviating the caller from having to know where that storage is located. - * + * *

* Allow checking for the denoted storage availability since its lifecycle * can evolving (a storage might become unavailable at some time and be back @@ -44,24 +44,24 @@ public class StorageManager /** * Retrieve the uniquely identifier for the current implementation. - * + * *

* It is expected that the identifier doesn't change over reboots since * it'll be used to save settings and retrieve the provider at a later * time. *

- * + * *

* The returned identifier doesn't have to be user friendly. *

- * + * * @return Never null. */ String getId(); /** * Hook point for provider initialization. - * + * * @param context * Never null. */ @@ -80,7 +80,7 @@ public class StorageManager * because the device doesn't provide the denoted storage. You can check * the provider compatibility with this method to prevent from having to * invoke this provider ever again. - * + * * @param context * TODO * @return Whether this provider supports the current device. @@ -92,7 +92,7 @@ public class StorageManager * Return the {@link File} to the choosen email database file. The * resulting {@link File} doesn't necessarily match an existing file on * the filesystem. - * + * * @param context * Never null. * @param id @@ -105,7 +105,7 @@ public class StorageManager * Return the {@link File} to the choosen attachment directory. The * resulting {@link File} doesn't necessarily match an existing * directory on the filesystem. - * + * * @param context * Never null. * @param id @@ -116,7 +116,7 @@ public class StorageManager /** * Check for the underlying storage availability. - * + * * @param context * Never null. * @return Whether the underlying storage returned by this provider is @@ -126,7 +126,7 @@ public class StorageManager /** * Retrieve the root of the underlying storage. - * + * * @param context * Never null. * @return The root directory of the denoted storage. Never @@ -143,7 +143,7 @@ public class StorageManager { /** * Invoked on storage mount (with read/write access). - * + * * @param providerId * Identifier (as returned by {@link StorageProvider#getId()} * of the newly mounted storage. Never null. @@ -152,7 +152,7 @@ public class StorageManager /** * Invoked when a storage is about to be unmounted. - * + * * @param providerId * Identifier (as returned by {@link StorageProvider#getId()} * of the to-be-unmounted storage. Never null. @@ -163,14 +163,14 @@ public class StorageManager /** * Base provider class for providers that rely on well-known path to check * for storage availability. - * + * *

* Since solely checking for paths can be unsafe, this class allows to check * for device compatibility using {@link #supportsVendor()}. If the vendor * specific check fails, the provider won't be able to provide any valid * File handle, regardless of the path existence. *

- * + * *

* Moreover, this class validates the denoted storage path against mount * points using {@link StorageManager#isMountPoint(File)}. @@ -247,7 +247,7 @@ public class StorageManager /** * Retrieve the well-known storage root directory from the actual * implementation. - * + * * @param context * Never null. * @return Never null. @@ -257,13 +257,13 @@ public class StorageManager /** * Strategy to access the always available internal storage. - * + * *

* This implementation is expected to work on every device since it's based * on the regular Android API {@link Context#getDatabasePath(String)} and * uses the resul to retrieve the DB path and the attachment directory path. *

- * + * *

* The underlying storage has always been used by K-9. *

@@ -333,11 +333,11 @@ public class StorageManager * and to prevent from cluttering the storage root, the choosen directory * will be * <STORAGE_ROOT>/Android/data/<APPLICATION_PACKAGE_NAME>/files/ - * + * *

* The denoted storage is usually a SD card. *

- * + * *

* This provider is expected to work on all devices but the returned * underlying storage might not be always available, due to @@ -411,13 +411,13 @@ public class StorageManager /** * Storage provider to allow access the /emmc directory on a HTC Incredible. - * + * *

* This implementation is experimental and _untested_. *

- * + * * See http://groups.google.com/group/android-developers/browse_frm/thread/96f15e57150ed173 - * + * * @see FixedStorageProviderBase */ public static class HtcIncredibleStorageProvider extends FixedStorageProviderBase @@ -456,9 +456,9 @@ public class StorageManager *

* This implementation is experimental and _untested_. *

- * + * * See http://groups.google.com/group/android-developers/browse_frm/thread/a1adf7122a75a657 - * + * * @see FixedStorageProviderBase */ public static class SamsungGalaxySStorageProvider extends FixedStorageProviderBase @@ -579,10 +579,10 @@ public class StorageManager /* * 20101113/fiouzy: - * + * * Here is where we define which providers are used, currently we only * allow the internal storage and the regular external storage. - * + * * HTC Incredible storage and Samsung Galaxy S are omitted on purpose * (they're experimental and I don't have those devices to test). *