diff options
| author | 2019-01-31 15:14:25 +0000 | |
|---|---|---|
| committer | 2019-01-31 15:29:04 +0000 | |
| commit | 4b80033434bccbc24fee0388febb1d86a0deab7e (patch) | |
| tree | 4852e03a411be1208d281fa5a01ad67a64bf2a2e | |
| parent | dbde8ac29bf635bf7f4fffcf17328dc4d0e80366 (diff) | |
Make method private to fix checkstyle error.
Checkstyle wants all public methods to have javadocs. Rather than add
javadocs for this method, mark it private, which is more appropriate.
Bug: 112431924
Test: atest RollbackTest
Change-Id: I438d16b0e4164482ba5f6527aecd50c65ce41418
| -rw-r--r-- | tests/RollbackTest/TestApp/src/com/android/tests/rollback/testapp/CrashingMainActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/RollbackTest/TestApp/src/com/android/tests/rollback/testapp/CrashingMainActivity.java b/tests/RollbackTest/TestApp/src/com/android/tests/rollback/testapp/CrashingMainActivity.java index 2310c829347e..97958acde21b 100644 --- a/tests/RollbackTest/TestApp/src/com/android/tests/rollback/testapp/CrashingMainActivity.java +++ b/tests/RollbackTest/TestApp/src/com/android/tests/rollback/testapp/CrashingMainActivity.java @@ -33,7 +33,7 @@ public class CrashingMainActivity extends Activity { throw new RuntimeException("Intended force crash"); } - public void incrementCountAndBroadcast() { + private void incrementCountAndBroadcast() { SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE); SharedPreferences.Editor editor = preferences.edit(); int count = preferences.getInt("crash_count", 0); |