diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/data/Contact.java b/src/Notesmaster/app/src/main/java/net/micode/notes/data/Contact.java index 4be94b9..477de84 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/data/Contact.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/data/Contact.java @@ -70,7 +70,6 @@ public class Contact { new String[] { phoneNumber }, // 排序 null); - // 如果查询结果不为空且游标指向第一条数据 if (cursor != null && cursor.moveToFirst()) { try { diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/data/Notes.java b/src/Notesmaster/app/src/main/java/net/micode/notes/data/Notes.java index d82eede..e0d74a6 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/data/Notes.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/data/Notes.java @@ -64,9 +64,7 @@ public class Notes { // 定义一个接口,用于定义Note的列 public interface NoteColumns { // 定义一个常量,表示ID - public static final String ID = "_id"; - - + public static final String ID = "_id"; // 定义一个常量,表示父节点的ID public static final String PARENT_ID = "parent_id"; diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java b/src/Notesmaster/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java index e24decd..c8bef94 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java @@ -35,7 +35,6 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper { // 定义一个常量DATA,值为"data" public static final String DATA = "data"; } - // 定义一个常量,用于标识NotesDatabaseHelper类 private static final String TAG = "NotesDatabaseHelper"; diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/data/NotesProvider.java b/src/Notesmaster/app/src/main/java/net/micode/notes/data/NotesProvider.java index 0ba4eed..078e372 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/data/NotesProvider.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/data/NotesProvider.java @@ -38,7 +38,6 @@ public class NotesProvider extends ContentProvider { private NotesDatabaseHelper mHelper; // 定义一个常量,用于标识NotesProvider private static final String TAG = "NotesProvider"; - // 定义URI常量 private static final int URI_NOTE = 1; // 笔记URI private static final int URI_NOTE_ITEM = 2; // 笔记项URI diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/MetaData.java b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/MetaData.java index d5fe597..f7b7782 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/MetaData.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/MetaData.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package net.micode.notes.gtask.data; // 导入Cursor和Log类 import android.database.Cursor; diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/Node.java b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/Node.java index 8bb865b..d428b50 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/Node.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/Node.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package net.micode.notes.gtask.data; import android.database.Cursor; import org.json.JSONObject; diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/SqlData.java b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/SqlData.java index 6b7e9b9..91c7899 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/SqlData.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/SqlData.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package net.micode.notes.gtask.data; import android.content.ContentResolver; import android.content.ContentUris; diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/SqlNote.java b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/SqlNote.java index 839139f..aefaaa1 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/SqlNote.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/SqlNote.java @@ -39,7 +39,6 @@ public class SqlNote { // 定义一个常量,用于标识无效的ID private static final int INVALID_ID = -99999; - // 定义一个常量,用于存储NoteColumns中的所有列名 public static final String[] PROJECTION_NOTE = new String[] { NoteColumns.ID, NoteColumns.ALERTED_DATE, NoteColumns.BG_COLOR_ID, diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/Task.java b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/Task.java index 45fd700..a1e0eee 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/Task.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/Task.java @@ -61,8 +61,7 @@ public class Task extends Node { // 创建一个JSONObject对象 JSONObject js = new JSONObject(); - try { - + try { // 将actionType设置为创建 js.put(GTaskStringUtils.GTASK_JSON_ACTION_TYPE, GTaskStringUtils.GTASK_JSON_ACTION_TYPE_CREATE); diff --git a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/TaskList.java b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/TaskList.java index b11253b..16c75a2 100644 --- a/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/TaskList.java +++ b/src/Notesmaster/app/src/main/java/net/micode/notes/gtask/data/TaskList.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package net.micode.notes.gtask.data; import android.database.Cursor; import android.util.Log;