diff --git a/Notes-master1/.gradle/7.6.1/executionHistory/executionHistory.bin b/Notes-master1/.gradle/7.6.1/executionHistory/executionHistory.bin index 2d92471..ef443d3 100644 Binary files a/Notes-master1/.gradle/7.6.1/executionHistory/executionHistory.bin and b/Notes-master1/.gradle/7.6.1/executionHistory/executionHistory.bin differ diff --git a/Notes-master1/.gradle/7.6.1/executionHistory/executionHistory.lock b/Notes-master1/.gradle/7.6.1/executionHistory/executionHistory.lock index d0416ad..b90b0eb 100644 Binary files a/Notes-master1/.gradle/7.6.1/executionHistory/executionHistory.lock and b/Notes-master1/.gradle/7.6.1/executionHistory/executionHistory.lock differ diff --git a/Notes-master1/.gradle/7.6.1/fileHashes/fileHashes.bin b/Notes-master1/.gradle/7.6.1/fileHashes/fileHashes.bin index 45b91af..a2a6353 100644 Binary files a/Notes-master1/.gradle/7.6.1/fileHashes/fileHashes.bin and b/Notes-master1/.gradle/7.6.1/fileHashes/fileHashes.bin differ diff --git a/Notes-master1/.gradle/7.6.1/fileHashes/fileHashes.lock b/Notes-master1/.gradle/7.6.1/fileHashes/fileHashes.lock index fde190c..2a717ec 100644 Binary files a/Notes-master1/.gradle/7.6.1/fileHashes/fileHashes.lock and b/Notes-master1/.gradle/7.6.1/fileHashes/fileHashes.lock differ diff --git a/Notes-master1/.gradle/7.6.1/fileHashes/resourceHashesCache.bin b/Notes-master1/.gradle/7.6.1/fileHashes/resourceHashesCache.bin index 318c20c..a501af6 100644 Binary files a/Notes-master1/.gradle/7.6.1/fileHashes/resourceHashesCache.bin and b/Notes-master1/.gradle/7.6.1/fileHashes/resourceHashesCache.bin differ diff --git a/Notes-master1/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/Notes-master1/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 65fef89..cb0742f 100644 Binary files a/Notes-master1/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/Notes-master1/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/Notes-master1/.gradle/file-system.probe b/Notes-master1/.gradle/file-system.probe index cebd576..cfe589a 100644 Binary files a/Notes-master1/.gradle/file-system.probe and b/Notes-master1/.gradle/file-system.probe differ diff --git a/Notes-master1/.idea/sonarlint/issuestore/0/1/0141ed096ee7cdbb52dc6a8b0e8eae49847eb64a b/Notes-master1/.idea/sonarlint/issuestore/0/1/0141ed096ee7cdbb52dc6a8b0e8eae49847eb64a deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/0/2/023468cfdd0b71d4098903b9070e364658e2fbcf b/Notes-master1/.idea/sonarlint/issuestore/0/2/023468cfdd0b71d4098903b9070e364658e2fbcf deleted file mode 100644 index a77925a..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/0/2/023468cfdd0b71d4098903b9070e364658e2fbcf +++ /dev/null @@ -1,21 +0,0 @@ - -? -java:S1604"(Make this anonymous inner class a lambda(î -V java:S125""; it is deprecated.(܃ -M -java:S1874g"7Remove this use of "getNotification"; it is deprecated.( -e -java:S1874s"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(ë -e -java:S1874{"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(ች \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/0/2/0268ec648e2fc0139b30ed13396174b7392c1ae2 b/Notes-master1/.idea/sonarlint/issuestore/0/2/0268ec648e2fc0139b30ed13396174b7392c1ae2 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/0/8/08b014011bf36107e05430e2372a86de8048f107 b/Notes-master1/.idea/sonarlint/issuestore/0/8/08b014011bf36107e05430e2372a86de8048f107 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/0/8/08c35f02f11c35ae9ebf8db0a482054dfa1cf493 b/Notes-master1/.idea/sonarlint/issuestore/0/8/08c35f02f11c35ae9ebf8db0a482054dfa1cf493 deleted file mode 100644 index c100822..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/0/8/08c35f02f11c35ae9ebf8db0a482054dfa1cf493 +++ /dev/null @@ -1,11 +0,0 @@ - -s -java:S4144"\Update this method so that its implementation is not identical to "getParentId" on line 185.( -> -java:S1125T"(Remove the unnecessary boolean literals.( -m -java:S3776p"RRefactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.( -C -java:S1125q"(Remove the unnecessary boolean literals.( -> -java:S1125r"(Remove the unnecessary boolean literals.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/0/f/0f0f0549145d0e2bfb972ba1ed2e2c38bfd6d1b1 b/Notes-master1/.idea/sonarlint/issuestore/0/f/0f0f0549145d0e2bfb972ba1ed2e2c38bfd6d1b1 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/1/0/102ed1bbec66cf4d2c859a294d53f757520c9c3a b/Notes-master1/.idea/sonarlint/issuestore/1/0/102ed1bbec66cf4d2c859a294d53f757520c9c3a deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/1/7/175d8fa829f0a7ced6aa11970f112de6ad144628 b/Notes-master1/.idea/sonarlint/issuestore/1/7/175d8fa829f0a7ced6aa11970f112de6ad144628 deleted file mode 100644 index 9c3a0d2..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/1/7/175d8fa829f0a7ced6aa11970f112de6ad144628 +++ /dev/null @@ -1,2 +0,0 @@ - -a java:S101"MRename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.(u \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/1/e/1eb2363b523dbcae43d3c6e4790c64436af61b13 b/Notes-master1/.idea/sonarlint/issuestore/1/e/1eb2363b523dbcae43d3c6e4790c64436af61b13 deleted file mode 100644 index 2c4c6e2..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/1/e/1eb2363b523dbcae43d3c6e4790c64436af61b13 +++ /dev/null @@ -1,25 +0,0 @@ - -} -java:S11927"[Define a constant instead of duplicating this literal " TEXT NOT NULL DEFAULT ''," 5 times.(޿80 -j -java:S1192["HDefine a constant instead of duplicating this literal " BEGIN " 4 times.(80 -h -java:S1192j"FDefine a constant instead of duplicating this literal "=old." 6 times.(80 -j -java:S1192"GDefine a constant instead of duplicating this literal " BEGIN" 6 times.(80 -{ -java:S11920"^Define a constant instead of duplicating this literal " INTEGER NOT NULL DEFAULT 0," 11 times.(80 -f -java:S1192^"IDefine a constant instead of duplicating this literal " WHERE " 8 times.(랰80 -c -java:S1192^"FDefine a constant instead of duplicating this literal "=new." 6 times.(랰80 -n -java:S1192"RDefine a constant instead of duplicating this literal " AFTER DELETE ON " 3 times.(B80 -j -java:S1192]"HDefine a constant instead of duplicating this literal " SET " 8 times.(˓80 -g -java:S1192\"JDefine a constant instead of duplicating this literal " UPDATE " 8 times.(80 - -java:S11923"yDefine a constant instead of duplicating this literal " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," 4 times.(80 -` -java:S1214#"CMove constants defined in this interfaces to another class or enum.(80 \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/1/f/1f37b3287e9e1f293b5edaa624e3963f9b0959e3 b/Notes-master1/.idea/sonarlint/issuestore/1/f/1f37b3287e9e1f293b5edaa624e3963f9b0959e3 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/2/8/283f16cc23da56ca65616082bc810304d3511d0a b/Notes-master1/.idea/sonarlint/issuestore/2/8/283f16cc23da56ca65616082bc810304d3511d0a deleted file mode 100644 index 69f4968..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/2/8/283f16cc23da56ca65616082bc810304d3511d0a +++ /dev/null @@ -1,39 +0,0 @@ - -t -java:S22930"YReplace the type specification in this constructor call with the diamond operator ("<>").(ə -o -java:S2293]"YReplace the type specification in this constructor call with the diamond operator ("<>").( -o -java:S2293m"YReplace the type specification in this constructor call with the diamond operator ("<>").(Ȫ -J -java:S1066U"/Merge this if statement with the enclosing one.(ڧ - -java:S1319\"mThe return type of this method should be an interface such as "Set" rather than the implementation "HashSet".( - -java:S1319l"mThe return type of this method should be an interface such as "Set" rather than the implementation "HashSet".( -j -java:S1104*"TMake widgetId a static final constant or non-public and provide accessors if needed.(ǎ -q -java:S1104+"VMake widgetType a static final constant or non-public and provide accessors if needed.(漬 -C -java:S5411_"(Use a primitive boolean expression here.(ɯ -C -java:S5411o"(Use a primitive boolean expression here.(ɯ -D -java:S5411"(Use a primitive boolean expression here.( -7 -java:S1116,"Remove this empty statement.( -D -java:S1874/".Remove this use of ""; it is deprecated.( -J -java:S2864^"4Iterate over the "entrySet" instead of the "keySet".(਷ -B -java:S1125_"'Remove the unnecessary boolean literal.(ɯ -J -java:S2864n"4Iterate over the "entrySet" instead of the "keySet".(਷ -B -java:S1125o"'Remove the unnecessary boolean literal.(ɯ -A -java:S1168|"+Return an empty collection instead of null.( -C -java:S1125"'Remove the unnecessary boolean literal.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/2/b/2b687ab930681e3885683578d43df600a0a20982 b/Notes-master1/.idea/sonarlint/issuestore/2/b/2b687ab930681e3885683578d43df600a0a20982 deleted file mode 100644 index 7dba34d..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/2/b/2b687ab930681e3885683578d43df600a0a20982 +++ /dev/null @@ -1,2 +0,0 @@ - -b java:S101"MRename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/2/b/2bfc771e07e87c37d3a76a2c815bc8fb30649798 b/Notes-master1/.idea/sonarlint/issuestore/2/b/2bfc771e07e87c37d3a76a2c815bc8fb30649798 deleted file mode 100644 index 389582c..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/2/b/2bfc771e07e87c37d3a76a2c815bc8fb30649798 +++ /dev/null @@ -1,10 +0,0 @@ - -> -java:S1604/"(Make this anonymous inner class a lambda(˽ -h java:S100("NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.( -x -java:S3923P"]This conditional operation returns the same value whether the condition is "true" or "false".( -P -java:S1874P"5Remove this use of "FORMAT_24HOUR"; it is deprecated.( -P -java:S1874P"5Remove this use of "FORMAT_24HOUR"; it is deprecated.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/3/1/3187a48b72709826e298c008a0076f24e6739bb9 b/Notes-master1/.idea/sonarlint/issuestore/3/1/3187a48b72709826e298c008a0076f24e6739bb9 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/3/2/32360bf24febc78f20db52498c7576b3d8650d56 b/Notes-master1/.idea/sonarlint/issuestore/3/2/32360bf24febc78f20db52498c7576b3d8650d56 deleted file mode 100644 index ac3ea31..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/3/2/32360bf24febc78f20db52498c7576b3d8650d56 +++ /dev/null @@ -1,39 +0,0 @@ - -t -java:S22932"YReplace the type specification in this constructor call with the diamond operator ("<>").(л -t -java:S2293Z"YReplace the type specification in this constructor call with the diamond operator ("<>").(л -u -java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(ª -b -java:S1192D"GDefine a constant instead of duplicating this literal "%s: %s" 4 times.( -c -java:S1192x"HDefine a constant instead of duplicating this literal "=? AND " 4 times.( -J -java:S1066~"/Merge this if statement with the enclosing one.(䲜 -v -java:S1319("`The type of "ids" should be an interface such as "Set" rather than the implementation "HashSet".( -{ -java:S1319S"`The type of "ids" should be an interface such as "Set" rather than the implementation "HashSet".(󆱋 - -java:S1319"mThe return type of this method should be an interface such as "Set" rather than the implementation "HashSet".( -S -java:S2589e"8Remove this expression which always evaluates to "false"(Ύ -S -java:S2589>"8Remove this expression which always evaluates to "false"(Ύ -U -java:S1118&":Add a private constructor to hide the implicit public one.( -T -java:S1155-">Use isEmpty() to check whether the collection is empty or not.( -Z -java:S2147E"DCombine this catch with the one at line 67, which has the same body.(暩 -[ -java:S2147l"ECombine this catch with the one at line 106, which has the same body.(暩 -k -java:S3252"OUse static access with "net.micode.notes.data.Notes$DataColumns" for "NOTE_ID".( -m -java:S3252"QUse static access with "net.micode.notes.data.Notes$DataColumns" for "MIME_TYPE".( -f -java:S3252"OUse static access with "net.micode.notes.data.Notes$DataColumns" for "NOTE_ID".(ʹ -m -java:S3252"QUse static access with "net.micode.notes.data.Notes$DataColumns" for "MIME_TYPE".( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/3/3/332c6f3d75926e4702a2bec3dcc4f101b096d5a2 b/Notes-master1/.idea/sonarlint/issuestore/3/3/332c6f3d75926e4702a2bec3dcc4f101b096d5a2 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/3/5/35a9534af99716b62a1b2f926cda2640ed66437c b/Notes-master1/.idea/sonarlint/issuestore/3/5/35a9534af99716b62a1b2f926cda2640ed66437c deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/3/a/3aac5305cb73bfbdeb8078cd264d04323fa80e92 b/Notes-master1/.idea/sonarlint/issuestore/3/a/3aac5305cb73bfbdeb8078cd264d04323fa80e92 deleted file mode 100644 index 24fb08d..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/3/a/3aac5305cb73bfbdeb8078cd264d04323fa80e92 +++ /dev/null @@ -1,3 +0,0 @@ - -O -java:S59932"9Change the visibility of this constructor to "protected".( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/3/d/3d0874cd378575c7e6e0973b184f167b3941748f b/Notes-master1/.idea/sonarlint/issuestore/3/d/3d0874cd378575c7e6e0973b184f167b3941748f deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710 b/Notes-master1/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710 deleted file mode 100644 index 56c5a4c..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710 +++ /dev/null @@ -1,29 +0,0 @@ - -n -java:S1301"KReplace this "switch" statement by "if" statements to increase readability.(۫80 -_ -java:S18747"=Remove this use of "FLAG_SHOW_WHEN_LOCKED"; it is deprecated.(80 -X -java:S1874;";Remove this use of "FLAG_TURN_SCREEN_ON"; it is deprecated.(80 -a -java:S1874="?Remove this use of "FLAG_LAYOUT_INSET_DECOR"; it is deprecated.(80 -O -java:S1874X"2Remove this use of "isScreenOn"; it is deprecated.(80 -V -java:S1874b":Remove this use of "setAudioStreamType"; it is deprecated.(080 -\ -java:S1874d":Remove this use of "setAudioStreamType"; it is deprecated.(Ũ80 -g -java:S2147n"ECombine this catch with the one at line 107, which has the same body.(80 -b -java:S2147q"ECombine this catch with the one at line 110, which has the same body.(80 -b -java:S2147t"ECombine this catch with the one at line 113, which has the same body.(ﭣ80 -T -java:S1135l"2Complete the task associated to this TODO comment.(̐80 -T -java:S1135o"2Complete the task associated to this TODO comment.(̐80 -T -java:S1135r"2Complete the task associated to this TODO comment.(̐80 -T -java:S1135u"2Complete the task associated to this TODO comment.(̐80 \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/3/f/3f52e8daf4bdfa7bee6741acd1bf90ffe7709f9a b/Notes-master1/.idea/sonarlint/issuestore/3/f/3f52e8daf4bdfa7bee6741acd1bf90ffe7709f9a deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/4/3/4382a5e52a040a8135b4c0fc2653f95c42c8766b b/Notes-master1/.idea/sonarlint/issuestore/4/3/4382a5e52a040a8135b4c0fc2653f95c42c8766b deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/4/5/4529b3a97b0f3b19b895aa06f23bed63ff38a312 b/Notes-master1/.idea/sonarlint/issuestore/4/5/4529b3a97b0f3b19b895aa06f23bed63ff38a312 deleted file mode 100644 index d7bd1f9..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/4/5/4529b3a97b0f3b19b895aa06f23bed63ff38a312 +++ /dev/null @@ -1,19 +0,0 @@ - -u -java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(各 -a -java:S2184s"FCast one of the operands of this multiplication operation to a "long".(⣛ -j -java:S2095"LUse try-with-resources or close this "BufferedReader" in a "finally" clause.(ƈ80 -H -java:S1874"2Remove this use of "HttpParams"; it is deprecated.(ŋE -X -java:S1874"").( -D -java:S1604"(Make this anonymous inner class a lambda( -f -java:S1301h"KReplace this "switch" statement by "if" statements to increase readability.( -M -java:S1135c"2Complete the task associated to this TODO comment.( -< java:S131h""Add a default case to this switch.( -^ -java:S1126"BReplace this if-then-else statement by a single method invocation.(忥 -P -java:S2864"4Iterate over the "entrySet" instead of the "keySet".(Κ \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c b/Notes-master1/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c deleted file mode 100644 index a439347..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c +++ /dev/null @@ -1,67 +0,0 @@ - -{ -java:S2293W"YReplace the type specification in this constructor call with the diamond operator ("<>").(ӏ80 -{ -java:S2293`"YReplace the type specification in this constructor call with the diamond operator ("<>").(80 -{ -java:S2293i"YReplace the type specification in this constructor call with the diamond operator ("<>").(80 -v -java:S2293q"YReplace the type specification in this constructor call with the diamond operator ("<>").(80 -w -java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(艥80 -F -java:S1604"(Make this anonymous inner class a lambda(ά80 -F -java:S1604"(Make this anonymous inner class a lambda(80 -F -java:S1604"(Make this anonymous inner class a lambda(ߒ80 -x -java:S1104N"VMake tvModified a static final constant or non-public and provide accessors if needed.(ԣ80 -y -java:S1104P"WMake ivAlertIcon a static final constant or non-public and provide accessors if needed.(න80 -y -java:S1104R"WMake tvAlertDate a static final constant or non-public and provide accessors if needed.(80 -z -java:S1104T"XMake ibSetBgColor a static final constant or non-public and provide accessors if needed.(80 -u -java:S1450"WRemove the "mPattern" field and declare it as a local variable in the relevant methods.(80 -u -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.(ݨ80 -^ -java:S1874"@Remove this use of "SOFT_INPUT_ADJUST_RESIZE"; it is deprecated.(ѯ80 -c -java:S1874"@Remove this use of "SOFT_INPUT_ADJUST_RESIZE"; it is deprecated.(ң80 -V -java:S1874"9Remove this use of "setTextAppearance"; it is deprecated.((80 -R -java:S2864"4Iterate over the "entrySet" instead of the "keySet".(ԇ80 -U -java:S1135"2Complete the task associated to this TODO comment.(80 -? -java:S1116"Remove this empty statement.(80 -_ -java:S1126"AReplace this if-then-else statement by a single return statement.(80 -? -java:S1116"Remove this empty statement.(80 -W -java:S1874"9Remove this use of "PreferenceManager"; it is deprecated.(80 -a -java:S1874"CRemove this use of "getDefaultSharedPreferences"; it is deprecated.(80 -\ -java:S1874"9Remove this use of "setTextAppearance"; it is deprecated.(80 -m -java:S1874"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(80 -X -java:S1874"5Remove this use of "onBackPressed"; it is deprecated.(80 -N -java:S1874"0Remove this use of "getColor"; it is deprecated.(80 -k -java:S3252"MUse static access with "android.text.Spanned" for "SPAN_INCLUSIVE_EXCLUSIVE".(80 -\ -java:S1874"9Remove this use of "setTextAppearance"; it is deprecated.(80 -[ -java:S1874"=Remove this use of "EXTRA_SHORTCUT_INTENT"; it is deprecated.(ð80 -Y -java:S1874";Remove this use of "EXTRA_SHORTCUT_NAME"; it is deprecated.(80 -b -java:S1874"DRemove this use of "EXTRA_SHORTCUT_ICON_RESOURCE"; it is deprecated.(Ǿ80 \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/5/8/58052a8597c5f01595e1c849728bcae66c27a1a6 b/Notes-master1/.idea/sonarlint/issuestore/5/8/58052a8597c5f01595e1c849728bcae66c27a1a6 deleted file mode 100644 index 07745a6..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/5/8/58052a8597c5f01595e1c849728bcae66c27a1a6 +++ /dev/null @@ -1,5 +0,0 @@ - -3 -java:S2386$"Make this member "protected".( -h -java:S3776H"RRefactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.(ʃ \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/5/8/5836a695995df8fadacfa6409fe8d21d88946842 b/Notes-master1/.idea/sonarlint/issuestore/5/8/5836a695995df8fadacfa6409fe8d21d88946842 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/5/b/5b5ea9e282b6b4d24438f217e6084a02a5631461 b/Notes-master1/.idea/sonarlint/issuestore/5/b/5b5ea9e282b6b4d24438f217e6084a02a5631461 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/5/c/5c5b5eab7e2212ceb1df9a9df360f7b74086f035 b/Notes-master1/.idea/sonarlint/issuestore/5/c/5c5b5eab7e2212ceb1df9a9df360f7b74086f035 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/5/d/5dfe6902d8ec740690f88d644e74362c3be08fad b/Notes-master1/.idea/sonarlint/issuestore/5/d/5dfe6902d8ec740690f88d644e74362c3be08fad deleted file mode 100644 index 505f811..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/5/d/5dfe6902d8ec740690f88d644e74362c3be08fad +++ /dev/null @@ -1,9 +0,0 @@ - -m -java:S37763"RRefactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.( -O -java:S1874?"9Remove this use of "setTextAppearance"; it is deprecated.( -O -java:S1874F"9Remove this use of "setTextAppearance"; it is deprecated.( -O -java:S1874P"9Remove this use of "setTextAppearance"; it is deprecated.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/5/f/5f6162ca79fcea353b280c5dc84973a9c37d2c74 b/Notes-master1/.idea/sonarlint/issuestore/5/f/5f6162ca79fcea353b280c5dc84973a9c37d2c74 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5 b/Notes-master1/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5 deleted file mode 100644 index 0b0f095..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5 +++ /dev/null @@ -1,13 +0,0 @@ - -p -java:S1192"MDefine a constant instead of duplicating this literal "Unknown URI " 4 times.(80 -T -java:S1153"1Directly append the argument of String.valueOf().(ߦ80 - -java:S3008L"eRename this field "NOTES_SNIPPET_SEARCH_QUERY" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(80 -f -java:S1659"CDeclare "noteId" and all following declarations on a separate line.(ؘ80 -[ -java:S2130"8Use "Long.parseLong" for this string-to-long conversion.(80 -U -java:S1135"2Complete the task associated to this TODO comment.(80 \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/6/c/6cbf8bd9aa98eff862b1dc067330ba66ba4493aa b/Notes-master1/.idea/sonarlint/issuestore/6/c/6cbf8bd9aa98eff862b1dc067330ba66ba4493aa deleted file mode 100644 index bdfcc68..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/6/c/6cbf8bd9aa98eff862b1dc067330ba66ba4493aa +++ /dev/null @@ -1,11 +0,0 @@ - -> -java:S1604C"(Make this anonymous inner class a lambda(׮ -C -java:S1604L"(Make this anonymous inner class a lambda(Ҵѝ -C -java:S1604v"(Make this anonymous inner class a lambda(ё -? -java:S1604"(Make this anonymous inner class a lambda( -V -java:S3398"?Move this method into the anonymous class declared at line 118.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/6/d/6ddcb085768c932a738db492683008cbdb890323 b/Notes-master1/.idea/sonarlint/issuestore/6/d/6ddcb085768c932a738db492683008cbdb890323 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/7/8/78b400021a4b67de1cb9c996b2d32e042fc1fec3 b/Notes-master1/.idea/sonarlint/issuestore/7/8/78b400021a4b67de1cb9c996b2d32e042fc1fec3 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/7/c/7cca4a2d94815c47d6a1ce79d4f7ac1c41c7b766 b/Notes-master1/.idea/sonarlint/issuestore/7/c/7cca4a2d94815c47d6a1ce79d4f7ac1c41c7b766 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/7/e/7e6c62cbf2db3592d39ae44d7f78b9e37151187e b/Notes-master1/.idea/sonarlint/issuestore/7/e/7e6c62cbf2db3592d39ae44d7f78b9e37151187e deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/8/7/876016634c6642b35109680ccac740dc8271b236 b/Notes-master1/.idea/sonarlint/issuestore/8/7/876016634c6642b35109680ccac740dc8271b236 deleted file mode 100644 index cc88819..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/8/7/876016634c6642b35109680ccac740dc8271b236 +++ /dev/null @@ -1,11 +0,0 @@ - -F -java:S1066"/Merge this if statement with the enclosing one.( -3 -java:S2386A"Make this member "protected".( -8 -java:S2386K"Make this member "protected".(㳎 -X -java:S1126"AReplace this if-then-else statement by a single return statement.( -? -java:S1125"(Remove the unnecessary boolean literals.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/8/c/8c55c3ccc257e5907959013f99656e4c8ec3903e b/Notes-master1/.idea/sonarlint/issuestore/8/c/8c55c3ccc257e5907959013f99656e4c8ec3903e deleted file mode 100644 index 2e09d79..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/8/c/8c55c3ccc257e5907959013f99656e4c8ec3903e +++ /dev/null @@ -1,2 +0,0 @@ - -K xml:S5594:"1Implement permissions on this exported component.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/8/c/8ccff78d0b5f6e2c2b5ae03eaa6292c9713ee7d6 b/Notes-master1/.idea/sonarlint/issuestore/8/c/8ccff78d0b5f6e2c2b5ae03eaa6292c9713ee7d6 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/3/934a4e2abf19d28a53f6aeb1dcd99248c44b6892 b/Notes-master1/.idea/sonarlint/issuestore/9/3/934a4e2abf19d28a53f6aeb1dcd99248c44b6892 deleted file mode 100644 index f6fc1de..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/9/3/934a4e2abf19d28a53f6aeb1dcd99248c44b6892 +++ /dev/null @@ -1,5 +0,0 @@ - -2 -java:S2386+"Make this member "protected".(X -n -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/4/941b86057337340eb9cbb286fc989594240b4dd8 b/Notes-master1/.idea/sonarlint/issuestore/9/4/941b86057337340eb9cbb286fc989594240b4dd8 deleted file mode 100644 index af480c1..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/9/4/941b86057337340eb9cbb286fc989594240b4dd8 +++ /dev/null @@ -1,3 +0,0 @@ - -U -java:S1118":Add a private constructor to hide the implicit public one.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/6/969faa2a5d9f5e8390e958d2c07f2cfd54676e6b b/Notes-master1/.idea/sonarlint/issuestore/9/6/969faa2a5d9f5e8390e958d2c07f2cfd54676e6b deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/7/97872a23506db5ffaa04e04bd96b003493352c30 b/Notes-master1/.idea/sonarlint/issuestore/9/7/97872a23506db5ffaa04e04bd96b003493352c30 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/a/9a3a19793537958b8b1b03a81985999e22705a2f b/Notes-master1/.idea/sonarlint/issuestore/9/a/9a3a19793537958b8b1b03a81985999e22705a2f deleted file mode 100644 index 5f64b46..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/9/a/9a3a19793537958b8b1b03a81985999e22705a2f +++ /dev/null @@ -1,11 +0,0 @@ - -{ -java:S2293)"YReplace the type specification in this constructor call with the diamond operator ("<>").(80 -W -java:S1118":Add a private constructor to hide the implicit public one.(80 -x -java:S3252!"VUse static access with "android.provider.ContactsContract$DataColumns" for "MIMETYPE".(80 -y -java:S3252""\Use static access with "android.provider.ContactsContract$DataColumns" for "RAW_CONTACT_ID".(80 -{ -java:S32524"^Use static access with "android.provider.ContactsContract$ContactsColumns" for "DISPLAY_NAME".(80 \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/b/9b09a4d37e3aec64adadab801bb8fec4165ad88f b/Notes-master1/.idea/sonarlint/issuestore/9/b/9b09a4d37e3aec64adadab801bb8fec4165ad88f deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/b/9bff80af6e3e79adb83d5133a046b17b4df93efe b/Notes-master1/.idea/sonarlint/issuestore/9/b/9bff80af6e3e79adb83d5133a046b17b4df93efe deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/d/9d3f688bcd8166493a0cc97a200f519d2f20537c b/Notes-master1/.idea/sonarlint/issuestore/9/d/9d3f688bcd8166493a0cc97a200f519d2f20537c deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/9/d/9dbe73b411fb77d236219bae9da8525f142f9b73 b/Notes-master1/.idea/sonarlint/issuestore/9/d/9dbe73b411fb77d236219bae9da8525f142f9b73 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/a/4/a446c87b1013132f8adaf83656b582028e8809af b/Notes-master1/.idea/sonarlint/issuestore/a/4/a446c87b1013132f8adaf83656b582028e8809af deleted file mode 100644 index be66b1d..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/a/4/a446c87b1013132f8adaf83656b582028e8809af +++ /dev/null @@ -1,14 +0,0 @@ - -r java:S116w"VRename this field "TEXT_FORMAT" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ћ80 -p java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(80 -o -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.(80 -b -java:S2147"ECombine this catch with the one at line 303, which has the same body.(80 -c -java:S2147"ECombine this catch with the one at line 337, which has the same body.(ﭣ80 -d java:S899"BDo something with the "boolean" value returned by "createNewFile".(80 -F -java:S3398"#Move this method into "TextExport".(80 -@ -java:S3398H"#Move this method into "TextExport".(80 \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/a/5/a5deab8a7a2cdb1cdc00e34cf882d28fd0f00c28 b/Notes-master1/.idea/sonarlint/issuestore/a/5/a5deab8a7a2cdb1cdc00e34cf882d28fd0f00c28 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/a/7/a7641cfac724321d508c2a284223a711011a93f5 b/Notes-master1/.idea/sonarlint/issuestore/a/7/a7641cfac724321d508c2a284223a711011a93f5 deleted file mode 100644 index 9b90641..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/a/7/a7641cfac724321d508c2a284223a711011a93f5 +++ /dev/null @@ -1,13 +0,0 @@ - -m -java:S11929"KDefine a constant instead of duplicating this literal "content://" 4 times.(80 -\ -java:S11181":Add a private constructor to hide the implicit public one.(͓80 -e -java:S1214@"CMove constants defined in this interfaces to another class or enum.(⸫80 -a -java:S1214"CMove constants defined in this interfaces to another class or enum.(80 -] -java:S1118":Add a private constructor to hide the implicit public one.(80 -X -java:S1118":Add a private constructor to hide the implicit public one.(߀80 \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/a/7/a776bfcfd1e96d15feaf2298b0b92948bb96533f b/Notes-master1/.idea/sonarlint/issuestore/a/7/a776bfcfd1e96d15feaf2298b0b92948bb96533f deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/a/b/ab153b0256bc5f6c194e188cec0b8e327e347a90 b/Notes-master1/.idea/sonarlint/issuestore/a/b/ab153b0256bc5f6c194e188cec0b8e327e347a90 deleted file mode 100644 index b413f64..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/a/b/ab153b0256bc5f6c194e188cec0b8e327e347a90 +++ /dev/null @@ -1,49 +0,0 @@ - -o -java:S2293]"YReplace the type specification in this constructor call with the diamond operator ("<>").( -t -java:S2293^"YReplace the type specification in this constructor call with the diamond operator ("<>").( -t -java:S2293_"YReplace the type specification in this constructor call with the diamond operator ("<>").( -o -java:S2293a"YReplace the type specification in this constructor call with the diamond operator ("<>").( -t -java:S2293b"YReplace the type specification in this constructor call with the diamond operator ("<>").( -t -java:S2293c"YReplace the type specification in this constructor call with the diamond operator ("<>").( -] -java:S1192"FDefine a constant instead of duplicating this literal " DESC" 3 times.(Ա -K -java:S1066"/Merge this if statement with the enclosing one.( -K -java:S1066"/Merge this if statement with the enclosing one.(˼֓ -i -java:S2259"M"NullPointerException" will be thrown when invoking method "doContentSync()".( -i -java:S2259"M"NullPointerException" will be thrown when invoking method "doContentSync()".( -S -java:S2589"7Remove this expression which always evaluates to "true"(락 -i -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 29 to the 15 allowed.(þ -I -java:S1905"-Remove this unnecessary cast to "JSONObject".(` -C -java:S1905"-Remove this unnecessary cast to "JSONObject".(؛ -i -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed.( -n -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 41 to the 15 allowed.(˰ -n -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 34 to the 15 allowed.(ɸ -5 -java:S2129"Remove this "Long" constructor(ϭ -C -java:S1874",Remove this use of "Long"; it is deprecated.(ϭ -n -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.(ƶؠ -G -java:S1172"+Remove this unused method parameter "node".(ƶؠ -C -java:S1905"'Remove this unnecessary cast to "Node".( -> -java:S1905"'Remove this unnecessary cast to "Node".( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/a/c/ac5e313f29cb4f0fad090fd0ffb56da5b70cb36a b/Notes-master1/.idea/sonarlint/issuestore/a/c/ac5e313f29cb4f0fad090fd0ffb56da5b70cb36a deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32 b/Notes-master1/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32 deleted file mode 100644 index e00f634..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32 +++ /dev/null @@ -1,98 +0,0 @@ - -p -java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(艥 -> -java:S1604"(Make this anonymous inner class a lambda(̺V -? -java:S1604"(Make this anonymous inner class a lambda(ά -? -java:S1604"(Make this anonymous inner class a lambda(ܴ -D -java:S1604"(Make this anonymous inner class a lambda( -? -java:S1604"(Make this anonymous inner class a lambda( -? -java:S1604"(Make this anonymous inner class a lambda(۱ -? -java:S1604"(Make this anonymous inner class a lambda(ά -g -java:S1301"KReplace this "switch" statement by "if" statements to increase readability.(ד -Z -java:S2583"CChange this condition so that it does not always evaluate to "true"( -7 -java:S1116`"Remove this empty statement.( -a -java:S1124"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124"EReorder the modifiers to comply with the Java Language Specification.(Ѿk -n -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.( -2 -java:S3626"Remove this redundant jump.(݅ -2 -java:S3626"Remove this redundant jump.(݅ -2 -java:S3626"Remove this redundant jump.(݅ -P -java:S1874"9Remove this use of "PreferenceManager"; it is deprecated.(­ -Z -java:S1874"CRemove this use of "getDefaultSharedPreferences"; it is deprecated.(­ -N -java:S1135"2Complete the task associated to this TODO comment.(̐ -F -java:S2093"*Change this "try" to a try-with-resources.( -o -java:S1450"XRemove the "mMoveMenu" field and declare it as a local variable in the relevant methods.( -n -java:S3252"RUse static access with "android.widget.AbsListView" for "MultiChoiceModeListener".( -N -java:S1135"2Complete the task associated to this TODO comment.( -N -java:S1135"2Complete the task associated to this TODO comment.( -U -java:S1874"9Remove this use of "getDefaultDisplay"; it is deprecated.(ĸ -M -java:S1874"1Remove this use of "getHeight"; it is deprecated.( -8 -java:S1116"Remove this empty statement.( -i -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.( -C -java:S1874".Remove this use of ""; it is deprecated.(? -? java:S108")Either remove or fill this block of code.(ʥ -a -java:S1874"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(Ϳ -K -java:S1874"/Remove this use of "execute"; it is deprecated.(嫏 -S -java:S1874"7Remove this use of "toggleSoftInput"; it is deprecated.( -O -java:S1874"3Remove this use of "SHOW_FORCED"; it is deprecated.( -h -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(# -N -java:S1135"2Complete the task associated to this TODO comment.( -^ -java:S1126"BReplace this if-then-else statement by a single method invocation.(玒 -N -java:S1135"2Complete the task associated to this TODO comment.( -f -java:S1874"JDon't override a deprecated method or explicitly mark it as "@Deprecated".( -Q -java:S1874"5Remove this use of "onBackPressed"; it is deprecated.( -J -java:S1874".Remove this use of ""; it is deprecated.(Ч -f -java:S1874"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(ች -K -java:S1874"/Remove this use of "execute"; it is deprecated.(嫏 -h -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.(b -K -java:S3398"/Move this method into "BackgroundQueryHandler".( -< -java:S3398"%Move this method into "ModeCallback".( -A -java:S3398"%Move this method into "ModeCallback".( -G -java:S3398"0Move this method into "OnListItemClickListener".( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/c/1/c182d0c9c237ea8a46a92ccaae9bb5c751923a88 b/Notes-master1/.idea/sonarlint/issuestore/c/1/c182d0c9c237ea8a46a92ccaae9bb5c751923a88 deleted file mode 100644 index c005de0..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/c/1/c182d0c9c237ea8a46a92ccaae9bb5c751923a88 +++ /dev/null @@ -1,3 +0,0 @@ - -[ -java:S1124"EReorder the modifiers to comply with the Java Language Specification.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/c/3/c3c1811dec2dbad2deeafb9aad505ca9631da740 b/Notes-master1/.idea/sonarlint/issuestore/c/3/c3c1811dec2dbad2deeafb9aad505ca9631da740 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/c/4/c42ad3cd6e664963fa1849c760a57d417d500ee7 b/Notes-master1/.idea/sonarlint/issuestore/c/4/c42ad3cd6e664963fa1849c760a57d417d500ee7 deleted file mode 100644 index 9a59a4b..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/c/4/c42ad3cd6e664963fa1849c760a57d417d500ee7 +++ /dev/null @@ -1,95 +0,0 @@ - -P -java:S1118":Add a private constructor to hide the implicit public one.( -` -java:S1124"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124"EReorder the modifiers to comply with the Java Language Specification.(㘱 -[ -java:S1124"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124"EReorder the modifiers to comply with the Java Language Specification.(ρ -` -java:S1124"EReorder the modifiers to comply with the Java Language Specification.(Ɖ -[ -java:S1124"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124!"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124#"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124%"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124'"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124)"EReorder the modifiers to comply with the Java Language Specification.(۲ -` -java:S1124+"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124-"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124/"EReorder the modifiers to comply with the Java Language Specification.(Ӎ -[ -java:S11241"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S11243"EReorder the modifiers to comply with the Java Language Specification.(̥ -[ -java:S11245"EReorder the modifiers to comply with the Java Language Specification.(Ƒ -Z -java:S11247"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S11249"EReorder the modifiers to comply with the Java Language Specification.( -Z -java:S1124;"EReorder the modifiers to comply with the Java Language Specification.(K -` -java:S1124="EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124?"EReorder the modifiers to comply with the Java Language Specification.(֫ -Z -java:S1124A"EReorder the modifiers to comply with the Java Language Specification.($ -[ -java:S1124C"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124E"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124G"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124I"EReorder the modifiers to comply with the Java Language Specification.(૵ -` -java:S1124K"EReorder the modifiers to comply with the Java Language Specification.(֐ -[ -java:S1124M"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124O"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124Q"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124S"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124U"EReorder the modifiers to comply with the Java Language Specification.(ʹ -` -java:S1124W"EReorder the modifiers to comply with the Java Language Specification.(ԣ -[ -java:S1124Y"EReorder the modifiers to comply with the Java Language Specification.(΢ -` -java:S1124["EReorder the modifiers to comply with the Java Language Specification.(Ō -` -java:S1124]"EReorder the modifiers to comply with the Java Language Specification.(Ȩ -[ -java:S1124_"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124a"EReorder the modifiers to comply with the Java Language Specification.(̀ -` -java:S1124c"EReorder the modifiers to comply with the Java Language Specification.(â -` -java:S1124e"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124g"EReorder the modifiers to comply with the Java Language Specification.(ƒ -` -java:S1124i"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124k"EReorder the modifiers to comply with the Java Language Specification.( -Z -java:S1124m"EReorder the modifiers to comply with the Java Language Specification.(†- -` -java:S1124o"EReorder the modifiers to comply with the Java Language Specification.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/c/6/c65f5dc8218ef1da6f6bfb5d1b14aea855a54d7f b/Notes-master1/.idea/sonarlint/issuestore/c/6/c65f5dc8218ef1da6f6bfb5d1b14aea855a54d7f deleted file mode 100644 index 4c37674..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/c/6/c65f5dc8218ef1da6f6bfb5d1b14aea855a54d7f +++ /dev/null @@ -1,35 +0,0 @@ - -P -java:S1118":Add a private constructor to hide the implicit public one.(ڦ -P -java:S1118*":Add a private constructor to hide the implicit public one.( -[ -java:S1124+"EReorder the modifiers to comply with the Java Language Specification.(Ɠ -` -java:S11243"EReorder the modifiers to comply with the Java Language Specification.( -O -java:S1874E"9Remove this use of "PreferenceManager"; it is deprecated.( -Y -java:S1874E"CRemove this use of "getDefaultSharedPreferences"; it is deprecated.( -D -java:S2140G")Use "java.util.Random.nextInt()" instead.( -U -java:S1118M":Add a private constructor to hide the implicit public one.(Ū -` -java:S1124N"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124V"EReorder the modifiers to comply with the Java Language Specification.( -` -java:S1124^"EReorder the modifiers to comply with the Java Language Specification.( -[ -java:S1124f"EReorder the modifiers to comply with the Java Language Specification.(ɜ -Q -java:S1118":Add a private constructor to hide the implicit public one.(ֹ -a -java:S1124"EReorder the modifiers to comply with the Java Language Specification.( -a -java:S1124"EReorder the modifiers to comply with the Java Language Specification.( -V -java:S1118":Add a private constructor to hide the implicit public one.( -\ -java:S1124"EReorder the modifiers to comply with the Java Language Specification.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/c/b/cbb9789871b962d17154fb6e10d5d57c0386bae5 b/Notes-master1/.idea/sonarlint/issuestore/c/b/cbb9789871b962d17154fb6e10d5d57c0386bae5 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/1/d187f1271655c3d91661a39fe6de395b6a9f290a b/Notes-master1/.idea/sonarlint/issuestore/d/1/d187f1271655c3d91661a39fe6de395b6a9f290a deleted file mode 100644 index 0e25932..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/d/1/d187f1271655c3d91661a39fe6de395b6a9f290a +++ /dev/null @@ -1,5 +0,0 @@ - -\ -java:S2259"@A "NullPointerException" could be thrown; "js" is nullable here.( -i -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.(ǎ \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/1/d1cc822fa9d783a8d4563bf6e139b7ae10de2fb1 b/Notes-master1/.idea/sonarlint/issuestore/d/1/d1cc822fa9d783a8d4563bf6e139b7ae10de2fb1 deleted file mode 100644 index e52aead..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/d/1/d1cc822fa9d783a8d4563bf6e139b7ae10de2fb1 +++ /dev/null @@ -1,3 +0,0 @@ - -> -java:S1604)"(Make this anonymous inner class a lambda(ʩ \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/1/d1d5c2a21bcee2c42fb71e493be5fa068951f155 b/Notes-master1/.idea/sonarlint/issuestore/d/1/d1d5c2a21bcee2c42fb71e493be5fa068951f155 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/2/d2281fbb3027de2722081a53408dd77628bf080e b/Notes-master1/.idea/sonarlint/issuestore/d/2/d2281fbb3027de2722081a53408dd77628bf080e deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/5/d523c5f9a544775535a62275862e5be71ba0775f b/Notes-master1/.idea/sonarlint/issuestore/d/5/d523c5f9a544775535a62275862e5be71ba0775f deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/6/d6094f02d3b882a8697c1462f3a5861b9b883946 b/Notes-master1/.idea/sonarlint/issuestore/d/6/d6094f02d3b882a8697c1462f3a5861b9b883946 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/8/d817b9340a5ced71d122f66b8d29cf7d6dfa79ab b/Notes-master1/.idea/sonarlint/issuestore/d/8/d817b9340a5ced71d122f66b8d29cf7d6dfa79ab deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/a/da57ce446af85bbd9aefee65e969869f0cff78b0 b/Notes-master1/.idea/sonarlint/issuestore/d/a/da57ce446af85bbd9aefee65e969869f0cff78b0 deleted file mode 100644 index 1d90a67..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/d/a/da57ce446af85bbd9aefee65e969869f0cff78b0 +++ /dev/null @@ -1,59 +0,0 @@ - -? -java:S1604"(Make this anonymous inner class a lambda( -? -java:S1604"(Make this anonymous inner class a lambda(ܨ -? -java:S1604"(Make this anonymous inner class a lambda(ܨ -? -java:S1604"(Make this anonymous inner class a lambda(ά -? -java:S1604"(Make this anonymous inner class a lambda(څ -? -java:S1604"(Make this anonymous inner class a lambda( -? -java:S1604"(Make this anonymous inner class a lambda(î -? -java:S1604"(Make this anonymous inner class a lambda(î -g -java:S1301"KReplace this "switch" statement by "if" statements to increase readability.(崡 -U -java:S18743":Remove this use of "PreferenceActivity"; it is deprecated.( -P -java:S1874@":Remove this use of "PreferenceCategory"; it is deprecated.(Θ -` -java:S1874I"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(Θ -K -java:S1874J"0Remove this use of "onCreate"; it is deprecated.(ȢՖ -P -java:S1874P":Remove this use of "PreferenceCategory"; it is deprecated.( -L -java:S1874P"6Remove this use of "findPreference"; it is deprecated.( -I -java:S1874X"3Remove this use of "getListView"; it is deprecated.(د -h -java:S3776\"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.(٫ -` -java:S1874x"JDon't override a deprecated method or explicitly mark it as "@Deprecated".( -G -java:S1874|"1Remove this use of "onDestroy"; it is deprecated.(ʷ -H -java:S1874"1Remove this use of "removeAll"; it is deprecated.( -N -java:S1874"2Remove this use of "Preference"; it is deprecated.( -N -java:S1874"2Remove this use of "Preference"; it is deprecated.( -G -java:S1874"0Remove this use of "setTitle"; it is deprecated.( -N -java:S1874"2Remove this use of "setSummary"; it is deprecated.( -[ -java:S1874"DRemove this use of "setOnPreferenceClickListener"; it is deprecated.( -N -java:S1874"2Remove this use of "Preference"; it is deprecated.( -Q -java:S1874"5Remove this use of "addPreference"; it is deprecated.(ن -a -java:S1874"JDon't override a deprecated method or explicitly mark it as "@Deprecated".( -Q -java:S1161":Add the "@Override" annotation above this method signature( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/c/dcbf3204de74b48a299a1133f01f78857e115ba2 b/Notes-master1/.idea/sonarlint/issuestore/d/c/dcbf3204de74b48a299a1133f01f78857e115ba2 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/d/dd970bd8ce083850fca1d4d159647ccd110e57cb b/Notes-master1/.idea/sonarlint/issuestore/d/d/dd970bd8ce083850fca1d4d159647ccd110e57cb deleted file mode 100644 index 5405687..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/d/d/dd970bd8ce083850fca1d4d159647ccd110e57cb +++ /dev/null @@ -1,15 +0,0 @@ - -u -java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(л -j -java:S1192?"ODefine a constant instead of duplicating this literal "Wrong note id:" 3 times.( -O -java:S2589"8Remove this expression which always evaluates to "false"( -\ -java:S1126}"AReplace this if-then-else statement by a single return statement.(Ʒ -i -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.( -U -java:S1155">Use isEmpty() to check whether the collection is empty or not.( -\ -java:S2147"ECombine this catch with the one at line 242, which has the same body.(暩 \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/d/e/de9bd32c86ad3a18c044f9da0ae3a85c009232b0 b/Notes-master1/.idea/sonarlint/issuestore/d/e/de9bd32c86ad3a18c044f9da0ae3a85c009232b0 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/e/0/e094aec5c3e1b6f44539adff3114f5a1ad603ddc b/Notes-master1/.idea/sonarlint/issuestore/e/0/e094aec5c3e1b6f44539adff3114f5a1ad603ddc deleted file mode 100644 index 9c7dfdf..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/e/0/e094aec5c3e1b6f44539adff3114f5a1ad603ddc +++ /dev/null @@ -1,9 +0,0 @@ - -t -java:S2293*"YReplace the type specification in this constructor call with the diamond operator ("<>").(ʩ - -java:S1319"pThe return type of this method should be an interface such as "List" rather than the implementation "ArrayList".(ﷺ -\ -java:S2259"@A "NullPointerException" could be thrown; "js" is nullable here.( -r -java:S3923"[Remove this conditional structure or edit its code blocks so that they're not all the same.(ԡ \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/e/4/e4a661e5de29d26ae56c43e59869580039c078be b/Notes-master1/.idea/sonarlint/issuestore/e/4/e4a661e5de29d26ae56c43e59869580039c078be deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/f/0/f087b1ba1b9c91b7293fea0fb071eaed62a42137 b/Notes-master1/.idea/sonarlint/issuestore/f/0/f087b1ba1b9c91b7293fea0fb071eaed62a42137 deleted file mode 100644 index 86a5121..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/f/0/f087b1ba1b9c91b7293fea0fb071eaed62a42137 +++ /dev/null @@ -1,27 +0,0 @@ - -> -java:S1604/"(Make this anonymous inner class a lambda(ю -` -java:S1124"EReorder the modifiers to comply with the Java Language Specification.(֖ -` -java:S1124"EReorder the modifiers to comply with the Java Language Specification.(Ų -` -java:S1124"EReorder the modifiers to comply with the Java Language Specification.(ز -` -java:S1124!"EReorder the modifiers to comply with the Java Language Specification.(຿ -[ -java:S1124#"EReorder the modifiers to comply with the Java Language Specification.(ճ -[ -java:S1124%"EReorder the modifiers to comply with the Java Language Specification.(ߪ -[ -java:S1124'"EReorder the modifiers to comply with the Java Language Specification.( -L -java:S2696/"6Make the enclosing method "static" or remove this set.(ю -L -java:S26961"6Make the enclosing method "static" or remove this set.( -E -java:S18747"/Remove this use of "execute"; it is deprecated.( -L -java:S2696C"6Make the enclosing method "static" or remove this set.( -K -java:S2696e"6Make the enclosing method "static" or remove this set.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/f/1/f1226eeacd46c914d51f3d1a6d6f27377490d2a4 b/Notes-master1/.idea/sonarlint/issuestore/f/1/f1226eeacd46c914d51f3d1a6d6f27377490d2a4 deleted file mode 100644 index 7e6be89..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/f/1/f1226eeacd46c914d51f3d1a6d6f27377490d2a4 +++ /dev/null @@ -1,13 +0,0 @@ - -u -java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").( -u -java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").( -u -java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").( -2 -java:S2386."Make this member "protected".(u -n -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 91 to the 15 allowed.( -h -java:S3776"RRefactor this method to reduce its Cognitive Complexity from 32 to the 15 allowed.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/f/4/f4a01d6a4fcb971362ec00a83903fd3902f52164 b/Notes-master1/.idea/sonarlint/issuestore/f/4/f4a01d6a4fcb971362ec00a83903fd3902f52164 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/f/7/f79cc2688e29fcbc286fda14ae07b27c9e83690f b/Notes-master1/.idea/sonarlint/issuestore/f/7/f79cc2688e29fcbc286fda14ae07b27c9e83690f deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/f/8/f880b4c44bb5d5a1db0a68dac9a41bede6b8374c b/Notes-master1/.idea/sonarlint/issuestore/f/8/f880b4c44bb5d5a1db0a68dac9a41bede6b8374c deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/f/9/f9357c93c5b5b86ae4f3363d3fe76860a1007f91 b/Notes-master1/.idea/sonarlint/issuestore/f/9/f9357c93c5b5b86ae4f3363d3fe76860a1007f91 deleted file mode 100644 index e69de29..0000000 diff --git a/Notes-master1/.idea/sonarlint/issuestore/f/9/f9f49497f95afd327db7a7a512612aa1089003d4 b/Notes-master1/.idea/sonarlint/issuestore/f/9/f9f49497f95afd327db7a7a512612aa1089003d4 deleted file mode 100644 index fafb6c2..0000000 --- a/Notes-master1/.idea/sonarlint/issuestore/f/9/f9f49497f95afd327db7a7a512612aa1089003d4 +++ /dev/null @@ -1,7 +0,0 @@ - -3 -java:S2386!"Make this member "protected".(Ꙗ -D -java:S1874*".Remove this use of ""; it is deprecated.(ж -M -java:S1135+"2Complete the task associated to this TODO comment.( \ No newline at end of file diff --git a/Notes-master1/.idea/sonarlint/issuestore/index.pb b/Notes-master1/.idea/sonarlint/issuestore/index.pb index b1eb28f..c4af299 100644 --- a/Notes-master1/.idea/sonarlint/issuestore/index.pb +++ b/Notes-master1/.idea/sonarlint/issuestore/index.pb @@ -6,166 +6,4 @@ X @ local.properties,0\7\0712df971a99ac4d2fccb8e0fb19f377f3374cca ? -settings.gradle,0\5\05efc8b1657769a27696d478ded1e95f38737233 -r -Bapp/src/main/java/net/micode/notes/ui/NotesPreferenceActivity.java,d\a\da57ce446af85bbd9aefee65e969869f0cff78b0 -l - sContactCache;//散列表对象 private static final String TAG = "Contact"; - + //实用类程序 + private Contact() throws IllegalAccessException { + throw new IllegalAccessException("Utility class"); + } + //MIMETYPE被定义在DataColumns,Data只是他的子类,使用静态成员变量应该在定义它的地方使用,但是DataColumns是protected接口,无法在该类中引用 + //下列Data的Static变量在protected interface DataColumns定义 private static final String CALLER_ID_SELECTION = "PHONE_NUMBERS_EQUAL(" + Phone.NUMBER + ",?) AND " + Data.MIMETYPE + "='" + Phone.CONTENT_ITEM_TYPE + "'" + " AND " + Data.RAW_CONTACT_ID + " IN " @@ -44,7 +50,7 @@ public class Contact { if(sContactCache.containsKey(phoneNumber)) { return sContactCache.get(phoneNumber); } - + //因为static变量无论在哪里使用,都是共享同一块内存空间。所以最好是使用定义了这个静态变量的类名进行属性的引用 String selection = CALLER_ID_SELECTION.replace("+", PhoneNumberUtils.toCallerIDMinMatch(phoneNumber)); Cursor cursor = context.getContentResolver().query( diff --git a/Notes-master1/app/src/main/java/net/micode/notes/tool/BackupUtils.java b/Notes-master1/app/src/main/java/net/micode/notes/tool/BackupUtils.java index e76aa54..459eefc 100644 --- a/Notes-master1/app/src/main/java/net/micode/notes/tool/BackupUtils.java +++ b/Notes-master1/app/src/main/java/net/micode/notes/tool/BackupUtils.java @@ -174,6 +174,7 @@ public class BackupUtils { if (dataCursor != null) { if (dataCursor.moveToFirst()) { do { + //减少嵌套 Print_imformation(dataCursor,ps); } while (dataCursor.moveToNext()); } @@ -188,6 +189,7 @@ public class BackupUtils { Log.e(TAG, e.toString()); } } + //减少嵌套 private void Print_imformation(Cursor dataCursor,PrintStream ps) { String mimeType = dataCursor.getString(DATA_COLUMN_MIME_TYPE); if (DataConstants.CALL_NOTE.equals(mimeType)) { @@ -243,17 +245,8 @@ public class BackupUtils { if (folderCursor.moveToFirst()) { do { // Print folder's name - String folderName = ""; - if(folderCursor.getLong(NOTE_COLUMN_ID) == Notes.ID_CALL_RECORD_FOLDER) { - folderName = mContext.getString(R.string.call_record_folder_name); - } else { - folderName = folderCursor.getString(NOTE_COLUMN_SNIPPET); - } - if (!TextUtils.isEmpty(folderName)) { - ps.println(String.format(getFormat(FORMAT_FOLDER_NAME), folderName)); - } - String folderId = folderCursor.getString(NOTE_COLUMN_ID); - exportFolderToText(folderId, ps); + //减少嵌套 + Print_folder_name(folderCursor,ps); } while (folderCursor.moveToNext()); } folderCursor.close(); @@ -283,7 +276,21 @@ public class BackupUtils { return STATE_SUCCESS; } - + //减少嵌套 + private void Print_folder_name(Cursor folderCursor,PrintStream ps) + { + String folderName = ""; + if(folderCursor.getLong(NOTE_COLUMN_ID) == Notes.ID_CALL_RECORD_FOLDER) { + folderName = mContext.getString(R.string.call_record_folder_name); + } else { + folderName = folderCursor.getString(NOTE_COLUMN_SNIPPET); + } + if (!TextUtils.isEmpty(folderName)) { + ps.println(String.format(getFormat(FORMAT_FOLDER_NAME), folderName)); + } + String folderId = folderCursor.getString(NOTE_COLUMN_ID); + exportFolderToText(folderId, ps); + } /** * Get a print stream pointed to the file {@generateExportedTextFile} */ diff --git a/Notes-master1/app/src/main/java/net/micode/notes/tool/DataUtils.java b/Notes-master1/app/src/main/java/net/micode/notes/tool/DataUtils.java index 2a14982..d6ca1a0 100644 --- a/Notes-master1/app/src/main/java/net/micode/notes/tool/DataUtils.java +++ b/Notes-master1/app/src/main/java/net/micode/notes/tool/DataUtils.java @@ -37,6 +37,7 @@ import java.util.HashSet; public class DataUtils { public static final String TAG = "DataUtils"; + public static final String AND = "=? AND "; public static boolean batchDeleteNotes(ContentResolver resolver, HashSet ids) { if (ids == null) { Log.d(TAG, "the ids is null"); @@ -64,10 +65,13 @@ public class DataUtils { return false; } return true; + //字符串不应该被复制。这个问题很显而易见了。如果我们采用复制字符串编写代码的方式,在代码重构的过程中,如果需要修改部分,首先麻烦,其次如果部分换部分不换,还会造成一致性错误。 } catch (RemoteException e) { - Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage())); + String str = e.toString()+": "+e.getMessage(); + Log.e(TAG, str); } catch (OperationApplicationException e) { - Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage())); + String str = e.toString()+": "+e.getMessage(); + Log.e(TAG, str); } return false; } @@ -117,13 +121,12 @@ public class DataUtils { public static int getUserFolderCount(ContentResolver resolver) { Cursor cursor =resolver.query(Notes.CONTENT_NOTE_URI, new String[] { "COUNT(*)" }, - NoteColumns.TYPE + "=? AND " + NoteColumns.PARENT_ID + "<>?", + NoteColumns.TYPE + AND + NoteColumns.PARENT_ID + "<>?", new String[] { String.valueOf(Notes.TYPE_FOLDER), String.valueOf(Notes.ID_TRASH_FOLER)}, null); int count = 0; - if(cursor != null) { - if(cursor.moveToFirst()) { + if(cursor != null&&cursor.moveToFirst()) { try { count = cursor.getInt(0); } catch (IndexOutOfBoundsException e) { @@ -132,14 +135,13 @@ public class DataUtils { cursor.close(); } } - } return count; } public static boolean visibleInNoteDatabase(ContentResolver resolver, long noteId, int type) { Cursor cursor = resolver.query(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId), null, - NoteColumns.TYPE + "=? AND " + NoteColumns.PARENT_ID + "<>" + Notes.ID_TRASH_FOLER, + NoteColumns.TYPE + AND + NoteColumns.PARENT_ID + "<>" + Notes.ID_TRASH_FOLER, new String [] {String.valueOf(type)}, null); @@ -227,7 +229,7 @@ public class DataUtils { public static String getCallNumberByNoteId(ContentResolver resolver, long noteId) { Cursor cursor = resolver.query(Notes.CONTENT_DATA_URI, new String [] { CallNote.PHONE_NUMBER }, - CallNote.NOTE_ID + "=? AND " + CallNote.MIME_TYPE + "=?", + CallNote.NOTE_ID + AND + CallNote.MIME_TYPE + "=?", new String [] { String.valueOf(noteId), CallNote.CONTENT_ITEM_TYPE }, null); @@ -246,7 +248,7 @@ public class DataUtils { public static long getNoteIdByPhoneNumberAndCallDate(ContentResolver resolver, String phoneNumber, long callDate) { Cursor cursor = resolver.query(Notes.CONTENT_DATA_URI, new String [] { CallNote.NOTE_ID }, - CallNote.CALL_DATE + "=? AND " + CallNote.MIME_TYPE + "=? AND PHONE_NUMBERS_EQUAL(" + CallNote.CALL_DATE + AND + CallNote.MIME_TYPE + "=? AND PHONE_NUMBERS_EQUAL(" + CallNote.PHONE_NUMBER + ",?)", new String [] { String.valueOf(callDate), CallNote.CONTENT_ITEM_TYPE, phoneNumber }, null);