• R/O
  • SSH
  • HTTPS

versus: Commit


Commit MetaInfo

Revisão120 (tree)
Hora2016-02-19 14:10:54
Autort-nakamura

Mensagem de Log

フォーマッターを実行。

Mudança Sumário

Diff

--- branch/user/nakamura/Formation/src/jp/co/formation/provider/FormationProvider.java (revision 119)
+++ branch/user/nakamura/Formation/src/jp/co/formation/provider/FormationProvider.java (revision 120)
@@ -16,12 +16,6 @@
1616
1717 package jp.co.formation.provider;
1818
19-import jp.co.formation.provider.FormationContract.Member;
20-import jp.co.formation.provider.FormationContract.Point;
21-import jp.co.formation.provider.FormationContract.Result;
22-import jp.co.formation.provider.FormationContract.Team;
23-import jp.co.formation.provider.FormationContract.TeamMember;
24-import jp.co.formation.provider.FormationDatabaseHelper.Tables;
2519 import android.content.ContentUris;
2620 import android.content.ContentValues;
2721 import android.content.Context;
@@ -33,6 +27,13 @@
3327 import android.provider.BaseColumns;
3428 import android.util.Log;
3529
30+import jp.co.formation.provider.FormationContract.Member;
31+import jp.co.formation.provider.FormationContract.Point;
32+import jp.co.formation.provider.FormationContract.Result;
33+import jp.co.formation.provider.FormationContract.Team;
34+import jp.co.formation.provider.FormationContract.TeamMember;
35+import jp.co.formation.provider.FormationDatabaseHelper.Tables;
36+
3637 public class FormationProvider extends AbstractFormationProvider {
3738
3839 private static final String TAG = "FormationProvider";
@@ -62,10 +63,10 @@
6263 }
6364
6465 // The database tag to use for representing the contacts DB in formation transactions.
65- /* package */ static final String VERSUS_DB_TAG = "formation";
66+ /* package */static final String VERSUS_DB_TAG = "formation";
6667
6768 /**
68- * The thread-local holder of the active transaction. Shared between this and the profile
69+ * The thread-local holder of the active transaction. Shared between this and the profile
6970 * provider, to keep transactions on both databases synchronized.
7071 */
7172 private final ThreadLocal<FormationTransaction> mTransactionHolder =
@@ -182,7 +183,7 @@
182183 int count = 0;
183184
184185 final int match = sUriMatcher.match(uri);
185- switch(match) {
186+ switch (match) {
186187 case MEMBER:
187188 return mDbHelper.get().getWritableDatabase().update(Tables.MEMBER, values,
188189 selection, selectionArgs);
@@ -269,7 +270,8 @@
269270 mDbHelper.set(mFormationHelper);
270271
271272 Cursor cursor =
272- query(mDbHelper.get().getReadableDatabase(), qb, projection, selection, selectionArgs, sortOrder, groupBy,
273+ query(mDbHelper.get().getReadableDatabase(), qb, projection, selection,
274+ selectionArgs, sortOrder, groupBy,
273275 limit);
274276 return cursor;
275277 }
@@ -292,8 +294,8 @@
292294 /**
293295 * Gets the value of the "limit" URI query parameter.
294296 *
295- * @return A string containing a non-negative integer, or <code>null</code> if
296- * the parameter is not set, or is set to an invalid value.
297+ * @return A string containing a non-negative integer, or <code>null</code> if the parameter is
298+ * not set, or is set to an invalid value.
297299 */
298300 private String getLimit(Uri uri) {
299301 String limitParam = getQueryParameter(uri, FormationContract.LIMIT_PARAM_KEY);
@@ -317,7 +319,7 @@
317319 /**
318320 * A fast re-implementation of {@link Uri#getQueryParameter}
319321 */
320- /* package */ static String getQueryParameter(Uri uri, String parameter) {
322+ /* package */static String getQueryParameter(Uri uri, String parameter) {
321323 String query = uri.getEncodedQuery();
322324 if (query == null) {
323325 return null;
--- branch/user/nakamura/Formation/src/jp/co/formation/provider/ProjectionMap.java (revision 119)
+++ branch/user/nakamura/Formation/src/jp/co/formation/provider/ProjectionMap.java (revision 120)
@@ -21,7 +21,7 @@
2121 import java.util.Map;
2222
2323 /**
24- * A convenience wrapper for a projection map. Makes it easier to create and use projection maps.
24+ * A convenience wrapper for a projection map. Makes it easier to create and use projection maps.
2525 */
2626 public class ProjectionMap extends HashMap<String, String> {
2727 private static final long serialVersionUID = 1L;
--- branch/user/nakamura/Formation/src/jp/co/formation/provider/FormationContract.java (revision 119)
+++ branch/user/nakamura/Formation/src/jp/co/formation/provider/FormationContract.java (revision 120)
@@ -26,8 +26,8 @@
2626 public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);
2727
2828 /**
29- * A query parameter that limits the number of results returned. The
30- * parameter value should be an integer.
29+ * A query parameter that limits the number of results returned. The parameter value should be
30+ * an integer.
3131 */
3232 public static final String LIMIT_PARAM_KEY = "limit";
3333
@@ -40,15 +40,14 @@
4040 }
4141
4242 /**
43- * The content:// style URI for this table. Requests to this URI can be
44- * performed on the UI thread because they are always unblocking.
43+ * The content:// style URI for this table. Requests to this URI can be performed on the UI
44+ * thread because they are always unblocking.
4545 */
4646 public static final Uri CONTENT_URI =
4747 Uri.withAppendedPath(AUTHORITY_URI, "member");
4848
4949 /**
50- * The MIME-type of {@link #CONTENT_URI} providing a directory of
51- * contact directories.
50+ * The MIME-type of {@link #CONTENT_URI} providing a directory of contact directories.
5251 */
5352 public static final String CONTENT_TYPE =
5453 "vnd.android.cursor.dir/formation_member";
@@ -71,15 +70,14 @@
7170 }
7271
7372 /**
74- * The content:// style URI for this table. Requests to this URI can be
75- * performed on the UI thread because they are always unblocking.
73+ * The content:// style URI for this table. Requests to this URI can be performed on the UI
74+ * thread because they are always unblocking.
7675 */
7776 public static final Uri CONTENT_URI =
7877 Uri.withAppendedPath(AUTHORITY_URI, "team");
7978
8079 /**
81- * The MIME-type of {@link #CONTENT_URI} providing a directory of
82- * contact directories.
80+ * The MIME-type of {@link #CONTENT_URI} providing a directory of contact directories.
8381 */
8482 public static final String CONTENT_TYPE =
8583 "vnd.android.cursor.dir/formation_team";
@@ -102,15 +100,14 @@
102100 }
103101
104102 /**
105- * The content:// style URI for this table. Requests to this URI can be
106- * performed on the UI thread because they are always unblocking.
103+ * The content:// style URI for this table. Requests to this URI can be performed on the UI
104+ * thread because they are always unblocking.
107105 */
108106 public static final Uri CONTENT_URI =
109107 Uri.withAppendedPath(AUTHORITY_URI, "teammember");
110108
111109 /**
112- * The MIME-type of {@link #CONTENT_URI} providing a directory of
113- * contact directories.
110+ * The MIME-type of {@link #CONTENT_URI} providing a directory of contact directories.
114111 */
115112 public static final String CONTENT_TYPE =
116113 "vnd.android.cursor.dir/formation_teammember";
@@ -135,15 +132,14 @@
135132 }
136133
137134 /**
138- * The content:// style URI for this table. Requests to this URI can be
139- * performed on the UI thread because they are always unblocking.
135+ * The content:// style URI for this table. Requests to this URI can be performed on the UI
136+ * thread because they are always unblocking.
140137 */
141138 public static final Uri CONTENT_URI =
142139 Uri.withAppendedPath(AUTHORITY_URI, "result");
143140
144141 /**
145- * The MIME-type of {@link #CONTENT_URI} providing a directory of
146- * contact directories.
142+ * The MIME-type of {@link #CONTENT_URI} providing a directory of contact directories.
147143 */
148144 public static final String CONTENT_TYPE =
149145 "vnd.android.cursor.dir/formation_result";
@@ -173,15 +169,14 @@
173169 }
174170
175171 /**
176- * The content:// style URI for this table. Requests to this URI can be
177- * performed on the UI thread because they are always unblocking.
172+ * The content:// style URI for this table. Requests to this URI can be performed on the UI
173+ * thread because they are always unblocking.
178174 */
179175 public static final Uri CONTENT_URI =
180176 Uri.withAppendedPath(AUTHORITY_URI, "point");
181177
182178 /**
183- * The MIME-type of {@link #CONTENT_URI} providing a directory of
184- * contact directories.
179+ * The MIME-type of {@link #CONTENT_URI} providing a directory of contact directories.
185180 */
186181 public static final String CONTENT_TYPE =
187182 "vnd.android.cursor.dir/formation_point";
@@ -201,5 +196,4 @@
201196 public static final String ASSIST = "assist";
202197 }
203198
204-
205199 }
--- branch/user/nakamura/Formation/src/jp/co/formation/provider/AbstractFormationProvider.java (revision 119)
+++ branch/user/nakamura/Formation/src/jp/co/formation/provider/AbstractFormationProvider.java (revision 120)
@@ -29,10 +29,10 @@
2929 import java.util.ArrayList;
3030
3131 /**
32- * A common base class for the contacts and profile providers. This handles much of the same
33- * logic that SQLiteContentProvider does (i.e. starting transactions on the appropriate database),
34- * but exposes awareness of batch operations to the subclass so that cross-database operations
35- * can be supported.
32+ * A common base class for the contacts and profile providers. This handles much of the same logic
33+ * that SQLiteContentProvider does (i.e. starting transactions on the appropriate database), but
34+ * exposes awareness of batch operations to the subclass so that cross-database operations can be
35+ * supported.
3636 */
3737 public abstract class AbstractFormationProvider extends ContentProvider
3838 implements SQLiteTransactionListener {
@@ -63,10 +63,10 @@
6363 private SQLiteOpenHelper mDbHelper;
6464
6565 /**
66- * The database helper to serialize all transactions on. If non-null, any new transaction
67- * created by this provider will automatically retrieve a writable database from this helper
68- * and initiate a transaction on that database. This should be used to ensure that operations
69- * across multiple databases are all blocked on a single DB lock (to prevent deadlock cases).
66+ * The database helper to serialize all transactions on. If non-null, any new transaction
67+ * created by this provider will automatically retrieve a writable database from this helper and
68+ * initiate a transaction on that database. This should be used to ensure that operations across
69+ * multiple databases are all blocked on a single DB lock (to prevent deadlock cases).
7070 */
7171 private SQLiteOpenHelper mSerializeOnDbHelper;
7272
@@ -89,6 +89,7 @@
8989
9090 /**
9191 * Specifies a database helper (and corresponding tag) to serialize all transactions on.
92+ *
9293 * @param serializeOnDbHelper The database helper to use for serializing transactions.
9394 * @param tag The tag for this database.
9495 */
@@ -211,8 +212,9 @@
211212
212213 /**
213214 * If we are not yet already in a transaction, this starts one (on the DB to serialize on, if
214- * present) and sets the thread-local transaction variable for tracking. If we are already in
215- * a transaction, this returns that transaction, and the batch parameter is ignored.
215+ * present) and sets the thread-local transaction variable for tracking. If we are already in a
216+ * transaction, this returns that transaction, and the batch parameter is ignored.
217+ *
216218 * @param callerIsBatch Whether the caller is operating in batch mode.
217219 */
218220 private FormationTransaction startTransaction(boolean callerIsBatch) {
@@ -229,8 +231,9 @@
229231 }
230232
231233 /**
232- * Ends the current transaction and clears out the member variable. This does not set the
234+ * Ends the current transaction and clears out the member variable. This does not set the
233235 * transaction as being successful.
236+ *
234237 * @param callerIsBatch Whether the caller is operating in batch mode.
235238 */
236239 private void endTransaction(boolean callerIsBatch) {
@@ -249,14 +252,14 @@
249252 }
250253
251254 /**
252- * Gets the database helper for this contacts provider. This is called once, during onCreate().
255+ * Gets the database helper for this contacts provider. This is called once, during onCreate().
253256 */
254257 protected abstract SQLiteOpenHelper getDatabaseHelper(Context context);
255258
256259 /**
257- * Gets the thread-local transaction holder to use for keeping track of the transaction. This
258- * is called once, in onCreate(). If multiple classes are inheriting from this class that need
259- * to be kept in sync on the same transaction, they must all return the same thread-local.
260+ * Gets the thread-local transaction holder to use for keeping track of the transaction. This is
261+ * called once, in onCreate(). If multiple classes are inheriting from this class that need to
262+ * be kept in sync on the same transaction, they must all return the same thread-local.
260263 */
261264 protected abstract ThreadLocal<FormationTransaction> getTransactionHolder();
262265
--- branch/user/nakamura/Formation/src/jp/co/formation/provider/Lists.java (revision 119)
+++ branch/user/nakamura/Formation/src/jp/co/formation/provider/Lists.java (revision 120)
@@ -20,8 +20,8 @@
2020 import java.util.Collections;
2121
2222 /**
23- * Provides static methods for creating {@code List} instances easily, and other
24- * utility methods for working with lists.
23+ * Provides static methods for creating {@code List} instances easily, and other utility methods for
24+ * working with lists.
2525 */
2626 public class Lists {
2727
@@ -28,7 +28,8 @@
2828 /**
2929 * Creates an empty {@code ArrayList} instance.
3030 *
31- * <p><b>Note:</b> if you only need an <i>immutable</i> empty List, use
31+ * <p>
32+ * <b>Note:</b> if you only need an <i>immutable</i> empty List, use
3233 * {@link Collections#emptyList} instead.
3334 *
3435 * @return a newly-created, initially-empty {@code ArrayList}
@@ -38,19 +39,20 @@
3839 }
3940
4041 /**
41- * Creates a resizable {@code ArrayList} instance containing the given
42- * elements.
42+ * Creates a resizable {@code ArrayList} instance containing the given elements.
4343 *
44- * <p><b>Note:</b> due to a bug in javac 1.5.0_06, we cannot support the
45- * following:
44+ * <p>
45+ * <b>Note:</b> due to a bug in javac 1.5.0_06, we cannot support the following:
4646 *
47- * <p>{@code List<Base> list = Lists.newArrayList(sub1, sub2);}
47+ * <p>
48+ * {@code List<Base> list = Lists.newArrayList(sub1, sub2);}
4849 *
49- * <p>where {@code sub1} and {@code sub2} are references to subtypes of
50- * {@code Base}, not of {@code Base} itself. To get around this, you must
51- * use:
50+ * <p>
51+ * where {@code sub1} and {@code sub2} are references to subtypes of {@code Base}, not of
52+ * {@code Base} itself. To get around this, you must use:
5253 *
53- * <p>{@code List<Base> list = Lists.<Base>newArrayList(sub1, sub2);}
54+ * <p>
55+ * {@code List<Base> list = Lists.<Base>newArrayList(sub1, sub2);}
5456 *
5557 * @param elements the elements that the list should contain, in order
5658 * @return a newly-created {@code ArrayList} containing those elements
--- branch/user/nakamura/Formation/src/jp/co/formation/provider/FormationDatabaseHelper.java (revision 119)
+++ branch/user/nakamura/Formation/src/jp/co/formation/provider/FormationDatabaseHelper.java (revision 120)
@@ -16,15 +16,16 @@
1616
1717 package jp.co.formation.provider;
1818
19+import android.content.Context;
20+import android.database.sqlite.SQLiteDatabase;
21+import android.database.sqlite.SQLiteOpenHelper;
22+import android.util.Log;
23+
1924 import jp.co.formation.provider.FormationContract.Member;
2025 import jp.co.formation.provider.FormationContract.Point;
2126 import jp.co.formation.provider.FormationContract.Result;
2227 import jp.co.formation.provider.FormationContract.Team;
2328 import jp.co.formation.provider.FormationContract.TeamMember;
24-import android.content.Context;
25-import android.database.sqlite.SQLiteDatabase;
26-import android.database.sqlite.SQLiteOpenHelper;
27-import android.util.Log;
2829
2930 public class FormationDatabaseHelper extends SQLiteOpenHelper {
3031 private static final String TAG = "FormationDatabaseHelper";
@@ -47,30 +48,30 @@
4748 }
4849
4950 public interface TeamColumns {
50- public static final String _ID = Team._ID;
51- public static final String TEAM = Team.TEAM;
51+ public static final String _ID = Team._ID;
52+ public static final String TEAM = Team.TEAM;
5253 }
5354
5455 public interface TeamMemberColumns {
55- public static final String _ID = TeamMember._ID;
56- public static final String MEMBERID = TeamMember.MEMBERID;
57- public static final String TEAMID = TeamMember.TEAMID;
56+ public static final String _ID = TeamMember._ID;
57+ public static final String MEMBERID = TeamMember.MEMBERID;
58+ public static final String TEAMID = TeamMember.TEAMID;
5859 }
5960
6061 public interface ResultColumns {
61- public static final String _ID = Result._ID;
62- public static final String RESULTID = Result.RESULTID;
63- public static final String DATE = Result.DATE;
64- public static final String TEAM1 = Result.TEAM1;
65- public static final String TEAM2 = Result.TEAM2;
62+ public static final String _ID = Result._ID;
63+ public static final String RESULTID = Result.RESULTID;
64+ public static final String DATE = Result.DATE;
65+ public static final String TEAM1 = Result.TEAM1;
66+ public static final String TEAM2 = Result.TEAM2;
6667 }
6768
6869 public interface PointColumns {
69- public static final String _ID = Point._ID;
70- public static final String RESULTID = Point.RESULTID;
71- public static final String TEAMID = Point.TEAMID;
72- public static final String SCORER = Point.SCORER;
73- public static final String ASSIST = Point.ASSIST;
70+ public static final String _ID = Point._ID;
71+ public static final String RESULTID = Point.RESULTID;
72+ public static final String TEAMID = Point.TEAMID;
73+ public static final String SCORER = Point.SCORER;
74+ public static final String ASSIST = Point.ASSIST;
7475 }
7576
7677 private static FormationDatabaseHelper sSingleton = null;
@@ -102,18 +103,18 @@
102103 db.execSQL("CREATE TABLE " + Tables.MEMBER + " (" +
103104 MemberColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
104105 MemberColumns.NAME + " TEXT NOT NULL" +
105- ");");
106+ ");");
106107
107108 db.execSQL("CREATE TABLE " + Tables.TEAM + " (" +
108109 TeamColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
109110 TeamColumns.TEAM + " TEXT NOT NULL" +
110- ");");
111+ ");");
111112
112113 db.execSQL("CREATE TABLE " + Tables.TEAMMEMBER + " (" +
113114 TeamMemberColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
114115 TeamMemberColumns.MEMBERID + " INTEGER NOT NULL," +
115116 TeamMemberColumns.TEAMID + " INTEGER NOT NULL" +
116- ");");
117+ ");");
117118
118119 db.execSQL("CREATE TABLE " + Tables.RESULT + " (" +
119120 ResultColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
@@ -121,7 +122,7 @@
121122 ResultColumns.RESULTID + " INTEGER NOT NULL," +
122123 ResultColumns.TEAM1 + " INTEGER NOT NULL," +
123124 ResultColumns.TEAM2 + " INTEGER NOT NULL" +
124- ");");
125+ ");");
125126
126127 db.execSQL("CREATE TABLE " + Tables.POINT + " (" +
127128 PointColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
@@ -129,7 +130,7 @@
129130 PointColumns.TEAMID + " INTEGER NOT NULL," +
130131 PointColumns.SCORER + " INTEGER NOT NULL," +
131132 PointColumns.ASSIST + " INTEGER" +
132- ");");
133+ ");");
133134
134135 }
135136
--- branch/user/nakamura/Formation/src/jp/co/formation/provider/FormationTransaction.java (revision 119)
+++ branch/user/nakamura/Formation/src/jp/co/formation/provider/FormationTransaction.java (revision 120)
@@ -26,7 +26,7 @@
2626 import java.util.Map;
2727
2828 /**
29- * A transaction for interacting with a Contacts provider. This is used to pass state around
29+ * A transaction for interacting with a Contacts provider. This is used to pass state around
3030 * throughout the operations comprising the transaction, including which databases the overall
3131 * transaction is involved in, and whether the operation being performed is a batch operation.
3232 */
@@ -33,7 +33,7 @@
3333 public class FormationTransaction {
3434
3535 /**
36- * Whether this transaction is encompassing a batch of operations. If we're in batch mode,
36+ * Whether this transaction is encompassing a batch of operations. If we're in batch mode,
3737 * transactional operations from non-batch callers are ignored.
3838 */
3939 private final boolean mBatch;
@@ -54,14 +54,15 @@
5454 private boolean mIsDirty;
5555
5656 /**
57- * Whether a yield operation failed with an exception. If this occurred, we may not have a
58- * lock on one of the databases that we started the transaction with (the yield code cleans
59- * that up itself), so we should do an extra check before ending transactions.
57+ * Whether a yield operation failed with an exception. If this occurred, we may not have a lock
58+ * on one of the databases that we started the transaction with (the yield code cleans that up
59+ * itself), so we should do an extra check before ending transactions.
6060 */
6161 private boolean mYieldFailed;
6262
6363 /**
6464 * Creates a new transaction object, optionally marked as a batch transaction.
65+ *
6566 * @param batch Whether the transaction is in batch mode.
6667 */
6768 public FormationTransaction(boolean batch) {
@@ -88,12 +89,13 @@
8889 }
8990
9091 /**
91- * If the given database has not already been enlisted in this transaction, adds it to our
92- * list of affected databases and starts a transaction on it. If we already have the given
93- * database in this transaction, this is a no-op.
92+ * If the given database has not already been enlisted in this transaction, adds it to our list
93+ * of affected databases and starts a transaction on it. If we already have the given database
94+ * in this transaction, this is a no-op.
95+ *
9496 * @param db The database to start a transaction on, if necessary.
9597 * @param tag A constant that can be used to retrieve the DB instance in this transaction.
96- * @param listener A transaction listener to attach to this transaction. May be null.
98+ * @param listener A transaction listener to attach to this transaction. May be null.
9799 */
98100 public void startTransactionForDb(SQLiteDatabase db, String tag,
99101 SQLiteTransactionListener listener) {
@@ -117,9 +119,10 @@
117119
118120 /**
119121 * Retrieves the database enlisted in the transaction corresponding to the given tag.
122+ *
120123 * @param tag The tag of the database to look up.
121124 * @return The database corresponding to the tag, or null if no database with that tag has been
122- * enlisted in this transaction.
125+ * enlisted in this transaction.
123126 */
124127 public SQLiteDatabase getDbForTag(String tag) {
125128 return mDatabaseTagMap.get(tag);
@@ -126,12 +129,13 @@
126129 }
127130
128131 /**
129- * Removes the database corresponding to the given tag from this transaction. It is now the
130- * caller's responsibility to do whatever needs to happen with this database - it is no longer
131- * a part of this transaction.
132+ * Removes the database corresponding to the given tag from this transaction. It is now the
133+ * caller's responsibility to do whatever needs to happen with this database - it is no longer a
134+ * part of this transaction.
135+ *
132136 * @param tag The tag of the database to remove.
133137 * @return The database corresponding to the tag, or null if no database with that tag has been
134- * enlisted in this transaction.
138+ * enlisted in this transaction.
135139 */
136140 public SQLiteDatabase removeDbForTag(String tag) {
137141 SQLiteDatabase db = mDatabaseTagMap.get(tag);
@@ -142,8 +146,9 @@
142146
143147 /**
144148 * Marks all active DB transactions as successful.
145- * @param callerIsBatch Whether this is being performed in the context of a batch operation.
146- * If it is not, and the transaction is marked as batch, this call is a no-op.
149+ *
150+ * @param callerIsBatch Whether this is being performed in the context of a batch operation. If
151+ * it is not, and the transaction is marked as batch, this call is a no-op.
147152 */
148153 public void markSuccessful(boolean callerIsBatch) {
149154 if (!mBatch || callerIsBatch) {
@@ -155,8 +160,9 @@
155160
156161 /**
157162 * Completes the transaction, ending the DB transactions for all associated databases.
158- * @param callerIsBatch Whether this is being performed in the context of a batch operation.
159- * If it is not, and the transaction is marked as batch, this call is a no-op.
163+ *
164+ * @param callerIsBatch Whether this is being performed in the context of a batch operation. If
165+ * it is not, and the transaction is marked as batch, this call is a no-op.
160166 */
161167 public void finish(boolean callerIsBatch) {
162168 if (!mBatch || callerIsBatch) {
@@ -163,7 +169,7 @@
163169 for (SQLiteDatabase db : mDatabasesForTransaction) {
164170 // If an exception was thrown while yielding, it's possible that we no longer have
165171 // a lock on this database, so we need to check before attempting to end its
166- // transaction. Otherwise, we should always expect to be in a transaction (and will
172+ // transaction. Otherwise, we should always expect to be in a transaction (and will
167173 // throw an exception if this is not the case).
168174 if (mYieldFailed && !db.isDbLockedByCurrentThread()) {
169175 // We no longer hold the lock, so don't do anything with this database.
--- branch/user/nakamura/Formation/src/jp/co/formation/provider/ProfileAwareUriMatcher.java (revision 119)
+++ branch/user/nakamura/Formation/src/jp/co/formation/provider/ProfileAwareUriMatcher.java (revision 120)
@@ -71,7 +71,7 @@
7171 if (tokens != null) {
7272
7373 // Keep track of whether we've passed a "lookup" token in the path; wildcards after
74- // that token will be interpreted as lookup keys. For our purposes, vcard paths
74+ // that token will be interpreted as lookup keys. For our purposes, vcard paths
7575 // also count as lookup tokens, since the vcard is specified by lookup key.
7676 boolean afterLookup = false;
7777 for (int i = 0; i < tokens.length; i++) {
Show on old repository browser