Merge pull request #2197 from bug-bulletin-forks/fix-typos
Fix a few Javadoc typos
This commit is contained in:
commit
86236904c3
21 changed files with 40 additions and 40 deletions
|
@ -47,7 +47,7 @@ public class FetchProfile extends ArrayList<FetchProfile.Item> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A sane portion of the entire message, cut off at a provider determined limit.
|
* A sane portion of the entire message, cut off at a provider determined limit.
|
||||||
* This should generaly be around 50kB.
|
* This should generally be around 50kB.
|
||||||
*/
|
*/
|
||||||
BODY_SANE,
|
BODY_SANE,
|
||||||
|
|
||||||
|
|
|
@ -133,14 +133,14 @@ public class Base64OutputStream extends FilterOutputStream {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flushes this output stream and forces any buffered output bytes
|
* Flushes this output stream and forces any buffered output bytes
|
||||||
* to be written out to the stream. If propogate is true, the wrapped
|
* to be written out to the stream. If propagate is true, the wrapped
|
||||||
* stream will also be flushed.
|
* stream will also be flushed.
|
||||||
*
|
*
|
||||||
* @param propogate boolean flag to indicate whether the wrapped
|
* @param propagate boolean flag to indicate whether the wrapped
|
||||||
* OutputStream should also be flushed.
|
* OutputStream should also be flushed.
|
||||||
* @throws IOException if an I/O error occurs.
|
* @throws IOException if an I/O error occurs.
|
||||||
*/
|
*/
|
||||||
private void flush(boolean propogate) throws IOException {
|
private void flush(boolean propagate) throws IOException {
|
||||||
int avail = base64.avail();
|
int avail = base64.avail();
|
||||||
if (avail > 0) {
|
if (avail > 0) {
|
||||||
byte[] buf = new byte[avail];
|
byte[] buf = new byte[avail];
|
||||||
|
@ -149,7 +149,7 @@ public class Base64OutputStream extends FilterOutputStream {
|
||||||
out.write(buf, 0, c);
|
out.write(buf, 0, c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (propogate) {
|
if (propagate) {
|
||||||
out.flush();
|
out.flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,7 @@ public class MessageExtractor {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Traverse the MIME tree of a message an extract viewable parts. */
|
/** Traverse the MIME tree of a message and extract viewable parts. */
|
||||||
public static void findViewablesAndAttachments(Part part,
|
public static void findViewablesAndAttachments(Part part,
|
||||||
@Nullable List<Viewable> outputViewableParts, @Nullable List<Part> outputNonViewableParts)
|
@Nullable List<Viewable> outputViewableParts, @Nullable List<Part> outputNonViewableParts)
|
||||||
throws MessagingException {
|
throws MessagingException {
|
||||||
|
|
|
@ -322,7 +322,7 @@ class ImapFolder extends Folder<ImapMessage> {
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param messages
|
* @param messages
|
||||||
* The messages to copy to the specfied folder.
|
* The messages to copy to the specified folder.
|
||||||
* @param folder
|
* @param folder
|
||||||
* The name of the target folder.
|
* The name of the target folder.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1468,7 +1468,7 @@ public class Account implements BaseAccount, StoreConfig {
|
||||||
/**
|
/**
|
||||||
* Are we storing out localStore on the SD-card instead of the local device
|
* Are we storing out localStore on the SD-card instead of the local device
|
||||||
* memory?<br/>
|
* memory?<br/>
|
||||||
* Only to be called durin initial account-setup!<br/>
|
* Only to be called during initial account-setup!<br/>
|
||||||
* Side-effect: changes {@link #mLocalStorageProviderId}.
|
* Side-effect: changes {@link #mLocalStorageProviderId}.
|
||||||
*
|
*
|
||||||
* @param newStorageProviderId
|
* @param newStorageProviderId
|
||||||
|
|
|
@ -391,7 +391,7 @@ public class K9 extends Application {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register BroadcastReceivers programmaticaly because doing it from manifest
|
* Register BroadcastReceivers programmatically because doing it from manifest
|
||||||
* would make K-9 auto-start. We don't want auto-start because the initialization
|
* would make K-9 auto-start. We don't want auto-start because the initialization
|
||||||
* sequence isn't safe while some events occur (SD card unmount).
|
* sequence isn't safe while some events occur (SD card unmount).
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -636,7 +636,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
|
||||||
* Show that account's inbox or folder-list
|
* Show that account's inbox or folder-list
|
||||||
* or return false if the account is not available.
|
* or return false if the account is not available.
|
||||||
* @param account the account to open ({@link SearchAccount} or {@link Account})
|
* @param account the account to open ({@link SearchAccount} or {@link Account})
|
||||||
* @return false if unsuccessfull
|
* @return false if unsuccessful
|
||||||
*/
|
*/
|
||||||
private boolean onOpenAccount(BaseAccount account) {
|
private boolean onOpenAccount(BaseAccount account) {
|
||||||
if (account instanceof SearchAccount) {
|
if (account instanceof SearchAccount) {
|
||||||
|
|
|
@ -1150,8 +1150,8 @@ public class FolderList extends K9ListActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter to search for occurences of the search-expression in any place of the
|
* Filter to search for occurrences of the search-expression in any place of the
|
||||||
* folder-name instead of doing jsut a prefix-search.
|
* folder-name instead of doing just a prefix-search.
|
||||||
*
|
*
|
||||||
* @author Marcus@Wolschon.biz
|
* @author Marcus@Wolschon.biz
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,8 +11,8 @@ import android.widget.Filter;
|
||||||
import com.fsck.k9.K9;
|
import com.fsck.k9.K9;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter to search for occurences of the search-expression in any place of the
|
* Filter to search for occurrences of the search-expression in any place of the
|
||||||
* folder-name instead of doing jsut a prefix-search.
|
* folder-name instead of doing just a prefix-search.
|
||||||
*
|
*
|
||||||
* @author Marcus@Wolschon.biz
|
* @author Marcus@Wolschon.biz
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1776,7 +1776,7 @@ public class MessagingController {
|
||||||
* the local message. Once the local message is successfully processed it is deleted so
|
* the local message. Once the local message is successfully processed it is deleted so
|
||||||
* that the server message will be synchronized down without an additional copy being
|
* that the server message will be synchronized down without an additional copy being
|
||||||
* created.
|
* created.
|
||||||
* TODO update the local message UID instead of deleteing it
|
* TODO update the local message UID instead of deleting it
|
||||||
*/
|
*/
|
||||||
void processPendingAppend(PendingAppend command, Account account) throws MessagingException {
|
void processPendingAppend(PendingAppend command, Account account) throws MessagingException {
|
||||||
Folder remoteFolder = null;
|
Folder remoteFolder = null;
|
||||||
|
|
|
@ -4,8 +4,8 @@ import android.text.Editable;
|
||||||
import android.text.TextWatcher;
|
import android.text.TextWatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* all methods empty - but this way we can have TextWatchers with less boilder-plate where
|
* all methods empty - but this way we can have TextWatchers with less boiler-plate where
|
||||||
* we just override the methods we want and not always al 3
|
* we just override the methods we want and not always all 3
|
||||||
*/
|
*/
|
||||||
public class SimpleTextWatcher implements TextWatcher {
|
public class SimpleTextWatcher implements TextWatcher {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -130,7 +130,7 @@ public class LockableDatabase {
|
||||||
private Context context;
|
private Context context;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link ThreadLocal} to check whether a DB transaction is occuring in the
|
* {@link ThreadLocal} to check whether a DB transaction is occurring in the
|
||||||
* current {@link Thread}.
|
* current {@link Thread}.
|
||||||
*
|
*
|
||||||
* @see #execute(boolean, DbCallback)
|
* @see #execute(boolean, DbCallback)
|
||||||
|
@ -250,7 +250,7 @@ public class LockableDatabase {
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Can be instructed to start a transaction if none is currently active in
|
* Can be instructed to start a transaction if none is currently active in
|
||||||
* the current thread. Callback will participe in any active transaction (no
|
* the current thread. Callback will participate in any active transaction (no
|
||||||
* inner transaction created).
|
* inner transaction created).
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class StorageManager {
|
||||||
boolean isSupported(Context context);
|
boolean isSupported(Context context);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the {@link File} to the choosen email database file. The
|
* Return the {@link File} to the chosen email database file. The
|
||||||
* resulting {@link File} doesn't necessarily match an existing file on
|
* resulting {@link File} doesn't necessarily match an existing file on
|
||||||
* the filesystem.
|
* the filesystem.
|
||||||
*
|
*
|
||||||
|
@ -98,7 +98,7 @@ public class StorageManager {
|
||||||
File getDatabase(Context context, String id);
|
File getDatabase(Context context, String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the {@link File} to the choosen attachment directory. The
|
* Return the {@link File} to the chosen attachment directory. The
|
||||||
* resulting {@link File} doesn't necessarily match an existing
|
* resulting {@link File} doesn't necessarily match an existing
|
||||||
* directory on the filesystem.
|
* directory on the filesystem.
|
||||||
*
|
*
|
||||||
|
@ -116,7 +116,7 @@ public class StorageManager {
|
||||||
* @param context
|
* @param context
|
||||||
* Never <code>null</code>.
|
* Never <code>null</code>.
|
||||||
* @return Whether the underlying storage returned by this provider is
|
* @return Whether the underlying storage returned by this provider is
|
||||||
* ready for read/write operations at the time of invokation.
|
* ready for read/write operations at the time of invocation.
|
||||||
*/
|
*/
|
||||||
boolean isReady(Context context);
|
boolean isReady(Context context);
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ public class StorageManager {
|
||||||
private File mRoot;
|
private File mRoot;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Choosen base directory
|
* Chosen base directory
|
||||||
*/
|
*/
|
||||||
private File mApplicationDir;
|
private File mApplicationDir;
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ public class StorageManager {
|
||||||
* <p>
|
* <p>
|
||||||
* This implementation is expected to work on every device since it's based
|
* This implementation is expected to work on every device since it's based
|
||||||
* on the regular Android API {@link Context#getDatabasePath(String)} and
|
* on the regular Android API {@link Context#getDatabasePath(String)} and
|
||||||
* uses the resul to retrieve the DB path and the attachment directory path.
|
* uses the result to retrieve the DB path and the attachment directory path.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -306,7 +306,7 @@ public class StorageManager {
|
||||||
* Strategy for accessing the storage as returned by
|
* Strategy for accessing the storage as returned by
|
||||||
* {@link Environment#getExternalStorageDirectory()}. In order to be
|
* {@link Environment#getExternalStorageDirectory()}. In order to be
|
||||||
* compliant with Android recommendation regarding application uninstalling
|
* compliant with Android recommendation regarding application uninstalling
|
||||||
* and to prevent from cluttering the storage root, the choosen directory
|
* and to prevent from cluttering the storage root, the chosen directory
|
||||||
* will be
|
* will be
|
||||||
* <code><STORAGE_ROOT>/Android/data/<APPLICATION_PACKAGE_NAME>/files/</code>
|
* <code><STORAGE_ROOT>/Android/data/<APPLICATION_PACKAGE_NAME>/files/</code>
|
||||||
*
|
*
|
||||||
|
@ -330,7 +330,7 @@ public class StorageManager {
|
||||||
private File mRoot;
|
private File mRoot;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Choosen base directory.
|
* Chosen base directory.
|
||||||
*/
|
*/
|
||||||
private File mApplicationDirectory;
|
private File mApplicationDirectory;
|
||||||
|
|
||||||
|
@ -455,7 +455,7 @@ public class StorageManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores storage provider locking informations
|
* Stores storage provider locking information
|
||||||
*/
|
*/
|
||||||
public static class SynchronizationAid {
|
public static class SynchronizationAid {
|
||||||
/**
|
/**
|
||||||
|
@ -592,7 +592,7 @@ public class StorageManager {
|
||||||
* Never <code>null</code>.
|
* Never <code>null</code>.
|
||||||
* @param providerId
|
* @param providerId
|
||||||
* Never <code>null</code>.
|
* Never <code>null</code>.
|
||||||
* @return The resolved attachement directory for the given provider ID.
|
* @return The resolved attachment directory for the given provider ID.
|
||||||
*/
|
*/
|
||||||
public File getAttachmentDirectory(final String dbName, final String providerId) {
|
public File getAttachmentDirectory(final String dbName, final String providerId) {
|
||||||
StorageProvider provider = getProvider(providerId);
|
StorageProvider provider = getProvider(providerId);
|
||||||
|
|
|
@ -178,7 +178,7 @@ public final class FlowedMessageUtils {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the char is part of a word.
|
* Checks whether the char is part of a word.
|
||||||
* <p>RFC assert a word cannot be splitted (even if the length is greater than the maximum length).
|
* <p>RFC assert a word cannot be split (even if the length is greater than the maximum length).
|
||||||
*/
|
*/
|
||||||
public static boolean isAlphaChar(String text, int index) {
|
public static boolean isAlphaChar(String text, int index) {
|
||||||
// Note: a list of chars is available here:
|
// Note: a list of chars is available here:
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class HtmlConverter {
|
||||||
private static final String GOOD_IRI_CHAR =
|
private static final String GOOD_IRI_CHAR =
|
||||||
"a-zA-Z0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF";
|
"a-zA-Z0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF";
|
||||||
/**
|
/**
|
||||||
* Goegular expression to match all IANA top-level domains for WEB_URL.
|
* Regular expression to match all IANA top-level domains for WEB_URL.
|
||||||
* List accurate as of 2011/01/12. List taken from:
|
* List accurate as of 2011/01/12. List taken from:
|
||||||
* http://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
* http://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
||||||
* This pattern is auto-generated by frameworks/base/common/tools/make-iana-tld-pattern.py
|
* This pattern is auto-generated by frameworks/base/common/tools/make-iana-tld-pattern.py
|
||||||
|
|
|
@ -8,7 +8,7 @@ import android.content.Intent;
|
||||||
import com.fsck.k9.BuildConfig;
|
import com.fsck.k9.BuildConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utillity definitions for Android applications to control the behavior of K-9 Mail. All such applications must declare the following permission:
|
* Utility definitions for Android applications to control the behavior of K-9 Mail. All such applications must declare the following permission:
|
||||||
* <uses-permission android:name="com.fsck.k9.permission.REMOTE_CONTROL"/>
|
* <uses-permission android:name="com.fsck.k9.permission.REMOTE_CONTROL"/>
|
||||||
* in their AndroidManifest.xml In addition, all applications sending remote control messages to K-9 Mail must
|
* in their AndroidManifest.xml In addition, all applications sending remote control messages to K-9 Mail must
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,7 +17,7 @@ import android.os.Parcelable;
|
||||||
* TODO implement a complete addAllowedFolder method
|
* TODO implement a complete addAllowedFolder method
|
||||||
* TODO conflicting conditions check on add
|
* TODO conflicting conditions check on add
|
||||||
* TODO duplicate condition checking?
|
* TODO duplicate condition checking?
|
||||||
* TODO assign each node a unique id that's used to retrieve it from the leaveset and remove.
|
* TODO assign each node a unique id that's used to retrieve it from the leafset and remove.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ public class LocalSearch implements SearchSpecification {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this constructor when you know what you'r doing. Normally it's only used
|
* Use this constructor when you know what you're doing. Normally it's only used
|
||||||
* when restoring these search objects from the database.
|
* when restoring these search objects from the database.
|
||||||
*
|
*
|
||||||
* @param name Name of the search
|
* @param name Name of the search
|
||||||
|
@ -119,7 +119,7 @@ public class LocalSearch implements SearchSpecification {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds all the account uuids in the provided array to
|
* Adds all the account uuids in the provided array to
|
||||||
* be matched by the seach.
|
* be matched by the search.
|
||||||
*
|
*
|
||||||
* @param accountUuids
|
* @param accountUuids
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -110,7 +110,7 @@ public abstract class CoreService extends Service {
|
||||||
* @param context
|
* @param context
|
||||||
* A {@link Context} instance. Never {@code null}.
|
* A {@link Context} instance. Never {@code null}.
|
||||||
* @param intent
|
* @param intent
|
||||||
* The {@link Intent} to add the wake lock registy ID as extra to. Never {@code null}.
|
* The {@link Intent} to add the wake lock registry ID as extra to. Never {@code null}.
|
||||||
* @param wakeLockId
|
* @param wakeLockId
|
||||||
* The wake lock registry ID of an existing wake lock or {@code null}.
|
* The wake lock registry ID of an existing wake lock or {@code null}.
|
||||||
* @param createIfNotExists
|
* @param createIfNotExists
|
||||||
|
@ -140,7 +140,7 @@ public abstract class CoreService extends Service {
|
||||||
* @param context
|
* @param context
|
||||||
* A {@link Context} instance. Never {@code null}.
|
* A {@link Context} instance. Never {@code null}.
|
||||||
* @param intent
|
* @param intent
|
||||||
* The {@link Intent} to add the wake lock registy ID as extra to. Never {@code null}.
|
* The {@link Intent} to add the wake lock registry ID as extra to. Never {@code null}.
|
||||||
*/
|
*/
|
||||||
protected static void addWakeLock(Context context, Intent intent) {
|
protected static void addWakeLock(Context context, Intent intent) {
|
||||||
TracingWakeLock wakeLock = acquireWakeLock(context, "CoreService addWakeLock",
|
TracingWakeLock wakeLock = acquireWakeLock(context, "CoreService addWakeLock",
|
||||||
|
|
|
@ -12,7 +12,7 @@ import com.fsck.k9.K9;
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* It is advised not to statically register (from AndroidManifest.xml) this
|
* It is advised not to statically register (from AndroidManifest.xml) this
|
||||||
* receiver in order to avoid unecessary K-9 launch (which would defeat the
|
* receiver in order to avoid unnecessary K-9 launch (which would defeat the
|
||||||
* purpose of that receiver). Using AndroidManifest.xml instructs Android to
|
* purpose of that receiver). Using AndroidManifest.xml instructs Android to
|
||||||
* launch K-9 if not running, defeating the purpose of this receiver. <br>
|
* launch K-9 if not running, defeating the purpose of this receiver. <br>
|
||||||
* The recommended way is to register this receiver using
|
* The recommended way is to register this receiver using
|
||||||
|
|
|
@ -35,7 +35,7 @@ import java.util.List;
|
||||||
*
|
*
|
||||||
* Usually ScrollView will capture all touch events once a drag has begun. In some cases,
|
* Usually ScrollView will capture all touch events once a drag has begun. In some cases,
|
||||||
* we want to delegate those touches to children as normal, even in the middle of a drag. This is
|
* we want to delegate those touches to children as normal, even in the middle of a drag. This is
|
||||||
* useful when there are childviews like a WebView tha handles scrolling in the horizontal direction
|
* useful when there are childviews like a WebView that handles scrolling in the horizontal direction
|
||||||
* even while the ScrollView drags vertically.
|
* even while the ScrollView drags vertically.
|
||||||
*
|
*
|
||||||
* This is only tested to work for ScrollViews where the content scrolls in one direction.
|
* This is only tested to work for ScrollViews where the content scrolls in one direction.
|
||||||
|
|
|
@ -119,7 +119,7 @@ public class OpenPgpApi {
|
||||||
* boolean EXTRA_REQUEST_ASCII_ARMOR (request ascii armor for output)
|
* boolean EXTRA_REQUEST_ASCII_ARMOR (request ascii armor for output)
|
||||||
* char[] EXTRA_PASSPHRASE (key passphrase)
|
* char[] EXTRA_PASSPHRASE (key passphrase)
|
||||||
* String EXTRA_ORIGINAL_FILENAME (original filename to be encrypted as metadata)
|
* String EXTRA_ORIGINAL_FILENAME (original filename to be encrypted as metadata)
|
||||||
* boolean EXTRA_ENABLE_COMPRESSION (enable ZLIB compression, default ist true)
|
* boolean EXTRA_ENABLE_COMPRESSION (enable ZLIB compression, default is true)
|
||||||
*/
|
*/
|
||||||
public static final String ACTION_ENCRYPT = "org.openintents.openpgp.action.ENCRYPT";
|
public static final String ACTION_ENCRYPT = "org.openintents.openpgp.action.ENCRYPT";
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ public class OpenPgpApi {
|
||||||
* boolean EXTRA_REQUEST_ASCII_ARMOR (request ascii armor for output)
|
* boolean EXTRA_REQUEST_ASCII_ARMOR (request ascii armor for output)
|
||||||
* char[] EXTRA_PASSPHRASE (key passphrase)
|
* char[] EXTRA_PASSPHRASE (key passphrase)
|
||||||
* String EXTRA_ORIGINAL_FILENAME (original filename to be encrypted as metadata)
|
* String EXTRA_ORIGINAL_FILENAME (original filename to be encrypted as metadata)
|
||||||
* boolean EXTRA_ENABLE_COMPRESSION (enable ZLIB compression, default ist true)
|
* boolean EXTRA_ENABLE_COMPRESSION (enable ZLIB compression, default is true)
|
||||||
*/
|
*/
|
||||||
public static final String ACTION_SIGN_AND_ENCRYPT = "org.openintents.openpgp.action.SIGN_AND_ENCRYPT";
|
public static final String ACTION_SIGN_AND_ENCRYPT = "org.openintents.openpgp.action.SIGN_AND_ENCRYPT";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue