@@ -799,7 +799,7 @@ private void checkDumpAndShowSectorChooserDialog(final String[] dump) {
799
799
mDumpWithPos .remove (sector );
800
800
}
801
801
}
802
- if (mDumpWithPos .size () == 0 ) {
802
+ if (mDumpWithPos .isEmpty () ) {
803
803
// Error. There is nothing to write.
804
804
Toast .makeText (context , R .string .info_nothing_to_write ,
805
805
Toast .LENGTH_LONG ).show ();
@@ -1147,7 +1147,7 @@ private void checkDumpAgainstTag() {
1147
1147
}
1148
1148
1149
1149
// Show skip/cancel dialog (if needed).
1150
- if (list .size () != 0 ) {
1150
+ if (! list .isEmpty () ) {
1151
1151
// If the user skips all sectors/blocks that are not writable,
1152
1152
// the writeTag() method will be called.
1153
1153
LinearLayout ll = new LinearLayout (this );
@@ -1222,7 +1222,7 @@ private void writeDump(
1222
1222
final HashMap <Integer , HashMap <Integer , Integer >> writeOnPos ,
1223
1223
final SparseArray <byte [][]> keyMap ) {
1224
1224
// Check for write data.
1225
- if (writeOnPos .size () == 0 ) {
1225
+ if (writeOnPos .isEmpty () ) {
1226
1226
// Nothing to write. Exit.
1227
1227
Toast .makeText (this , R .string .info_nothing_to_write ,
1228
1228
Toast .LENGTH_LONG ).show ();
0 commit comments