find src/com/fsck/ -name \*.java|xargs astyle --style=ansi --mode=java --indent-switches --indent=spaces=4 --convert-tabs --unpad=paren

This commit is contained in:
Jesse Vincent 2010-05-30 04:17:00 +00:00
parent 6b5bcd2c4d
commit 1a66072910
18 changed files with 226 additions and 222 deletions

View File

@ -360,7 +360,7 @@ public class FolderList extends K9ListActivity
// This will be called either automatically for you on 2.0
// or later, or by the code above on earlier versions of the
// platform.
if (K9.manageBack() )
if (K9.manageBack())
{
onAccounts();
}
@ -376,7 +376,7 @@ public class FolderList extends K9ListActivity
keyCode == KeyEvent.KEYCODE_BACK
&& event.getRepeatCount() == 0
&& K9.manageBack() )
&& K9.manageBack())
{
// Take care of calling this method on earlier versions of
// the platform where it doesn't exist.

View File

@ -583,7 +583,9 @@ public class MessageList
if (K9.manageBack())
{
onShowFolderList();
} else {
}
else
{
finish();
}
}

View File

@ -492,7 +492,7 @@ public class MessageView extends K9Activity implements OnClickListener
messageToShow = R.string.message_no_additional_headers_available;
}
}
catch(MessagingException e)
catch (MessagingException e)
{
messageToShow = R.string.message_additional_headers_retrieval_failed;
}

View File

@ -144,15 +144,15 @@ public class DomainNameChecker
Iterator<?> i = subjectAltNames.iterator();
while (i.hasNext())
{
List<?> altNameEntry = (List<?>) (i.next());
List<?> altNameEntry = (List<?>)(i.next());
if ((altNameEntry != null) && (2 <= altNameEntry.size()))
{
Integer altNameType = (Integer) (altNameEntry.get(0));
Integer altNameType = (Integer)(altNameEntry.get(0));
if (altNameType != null)
{
if (altNameType.intValue() == ALT_IPA_NAME)
{
String altName = (String) (altNameEntry.get(1));
String altName = (String)(altNameEntry.get(1));
if (altName != null)
{
if (K9.DEBUG)
@ -198,16 +198,16 @@ public class DomainNameChecker
Iterator<?> i = subjectAltNames.iterator();
while (i.hasNext())
{
List<?> altNameEntry = (List<?>) (i.next());
List<?> altNameEntry = (List<?>)(i.next());
if ((altNameEntry != null) && (2 <= altNameEntry.size()))
{
Integer altNameType = (Integer) (altNameEntry.get(0));
Integer altNameType = (Integer)(altNameEntry.get(0));
if (altNameType != null)
{
if (altNameType.intValue() == ALT_DNS_NAME)
{
hasDns = true;
String altName = (String) (altNameEntry.get(1));
String altName = (String)(altNameEntry.get(1));
if (altName != null)
{
if (matchDns(thisDomain, altName))
@ -250,7 +250,7 @@ public class DomainNameChecker
{
if (oid.elementAt(i).equals(X509Name.CN))
{
return matchDns(thisDomain, (String) (val.elementAt(i)));
return matchDns(thisDomain, (String)(val.elementAt(i)));
}
}
}

View File

@ -65,7 +65,7 @@ public class TracingPowerManager
}
public void acquire(long timeout)
{
synchronized(wakeLock)
synchronized (wakeLock)
{
wakeLock.acquire(timeout);
}
@ -83,7 +83,7 @@ public class TracingPowerManager
}
public void acquire()
{
synchronized(wakeLock)
synchronized (wakeLock)
{
wakeLock.acquire();
}
@ -101,7 +101,7 @@ public class TracingPowerManager
}
public void setReferenceCounted(boolean counted)
{
synchronized(wakeLock)
synchronized (wakeLock)
{
wakeLock.setReferenceCounted(counted);
}
@ -125,7 +125,7 @@ public class TracingPowerManager
}
}
cancelNotification();
synchronized(wakeLock)
synchronized (wakeLock)
{
wakeLock.release();
}
@ -135,7 +135,7 @@ public class TracingPowerManager
{
if (timer != null)
{
synchronized(timer)
synchronized (timer)
{
if (timerTask != null)
{
@ -148,7 +148,7 @@ public class TracingPowerManager
{
if (timer != null)
{
synchronized(timer)
synchronized (timer)
{
if (timerTask != null)
{

View File

@ -655,7 +655,8 @@ public class LocalStore extends Store implements Serializable
boolean anyAdded = false;
String likeString = "%"+queryString+"%";
whereClause.append(" AND (");
for (String queryField : queryFields) {
for (String queryField : queryFields)
{
if (anyAdded == true)
{
@ -1930,7 +1931,7 @@ public class LocalStore extends Store implements Serializable
appendedFlags.add(Flag.X_GOT_ALL_HEADERS);
mDb.execSQL("UPDATE messages " + "SET flags = ? " + " WHERE id = ?", new Object[]
{ Utility.combine(appendedFlags.toArray(), ',').toUpperCase(), id } );
{ Utility.combine(appendedFlags.toArray(), ',').toUpperCase(), id });
}
}
@ -2778,7 +2779,8 @@ public class LocalStore extends Store implements Serializable
}
@Override
public Set<String> getHeaderNames() {
public Set<String> getHeaderNames()
{
if (!mHeadersLoaded)
loadHeaders();
return super.getHeaderNames();