summaryrefslogtreecommitdiff
path: root/runtime/jni/check_jni.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-03-08 15:48:44 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2024-03-12 15:52:28 +0000
commit5937cdeeef4639e523ae3cfde3bfce3ccb252921 (patch)
tree8c87fc2983ee01ae68fa79be1afb6cd3886d3053 /runtime/jni/check_jni.cc
parent68f3ec8001c46f00f82043d7100c04dee4449c48 (diff)
Remove default cases when all cases are defined
Bug: 328756212 Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Test: m test-art-host-gtest Change-Id: I9584e1b93e49265b84a9e45c8b283ebaf8ad3eb2
Diffstat (limited to 'runtime/jni/check_jni.cc')
-rw-r--r--runtime/jni/check_jni.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/jni/check_jni.cc b/runtime/jni/check_jni.cc
index db4205cdf8..a05a3e97f2 100644
--- a/runtime/jni/check_jni.cc
+++ b/runtime/jni/check_jni.cc
@@ -853,8 +853,6 @@ class ScopedCheck {
case kThrowable:
what = "jthrowable";
break;
- default:
- LOG(FATAL) << "Unknown kind " << static_cast<int>(kind);
}
if (java_object == nullptr) {
@@ -3303,9 +3301,6 @@ class CheckJNI {
LOG(FATAL) << "Unexpected invoke: " << invoke;
}
break;
- default:
- LOG(FATAL) << "Unexpected return type: " << type;
- result_check = nullptr;
}
if (sc.Check(soa, false, result_check, &result)) {
return result;
@@ -3489,9 +3484,6 @@ class CheckJNI {
LOG(FATAL) << "Unexpected invoke: " << invoke;
}
break;
- default:
- LOG(FATAL) << "Unexpected return type: " << type;
- result_check = nullptr;
}
if (sc.Check(soa, false, result_check, &result)) {
return result;