Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit a610346

Browse files
George Kankavaniftynei
authored andcommitted
squid:SwitchLastCaseIsDefaultCheck - "switch" statements should end with a "default" clause
https://dev.eclipse.org/sonar/rules/show/squid:SwitchLastCaseIsDefaultCh eck
1 parent 8227031 commit a610346

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/src/main/java/com/zulip/android/activities/LoginActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ protected void onActivityResult(int requestCode, int resultCode, Intent intent)
7373
GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(intent);
7474
handleSignInResult(result);
7575
break;
76+
default:
77+
break;
7678
}
7779
}
7880

@@ -258,6 +260,8 @@ public void onTaskFailure(String result) {
258260
case R.id.legal_button:
259261
openLegal();
260262
break;
263+
default:
264+
break;
261265
}
262266
}
263267

app/src/main/java/com/zulip/android/activities/ZulipActivity.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ public boolean setViewValue(View arg0, Cursor arg1, int arg2) {
136136
arg0.getBackground().setColorFilter(arg1.getInt(arg2),
137137
Mode.MULTIPLY);
138138
return true;
139+
default:
140+
break;
139141
}
140142
return false;
141143
}
@@ -180,6 +182,8 @@ public boolean setViewValue(View view, Cursor cursor, int i) {
180182
}
181183
}
182184
return true;
185+
default:
186+
break;
183187
}
184188
return false;
185189
}
@@ -443,6 +447,8 @@ private void processParams() {
443447
Log.i(PARAMS, "Database deleted successfully.");
444448
this.finish();
445449
break;
450+
default:
451+
break;
446452
}
447453
}
448454
}

0 commit comments

Comments
 (0)