Skip to content

Commit 7f375bb

Browse files
committed
Use is_empty
1 parent 524b0df commit 7f375bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java_runtime/src/classes/java/util/vector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl Vector {
236236

237237
let rust_vector = Self::get_rust_vector(jvm, &this).await?;
238238

239-
if rust_vector.lock().len() == 0 {
239+
if rust_vector.lock().is_empty() {
240240
return Ok(None.into());
241241
}
242242

0 commit comments

Comments
 (0)