Skip to content

Commit 61b5b17

Browse files
committed
fmt
1 parent 65670cb commit 61b5b17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java_runtime/src/classes/java/lang/string_buffer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl StringBuffer {
4444
JavaMethodProto::new("toString", "()Ljava/lang/String;", Self::to_string, Default::default()),
4545
JavaMethodProto::new("setLength", "(I)V", Self::set_length, Default::default()),
4646
JavaMethodProto::new("length", "()I", Self::length, Default::default()),
47+
JavaMethodProto::new("charAt", "(I)C", Self::char_at, Default::default()),
4748
],
4849
fields: vec![
4950
JavaFieldProto::new("value", "[C", Default::default()),
@@ -223,7 +224,7 @@ impl StringBuffer {
223224
Ok(())
224225
}
225226

226-
async fn length(jvm: &Jvm, _: &mut RuntimeContext, this: ClassInstanceRef<Self>) -> Result<i32> {
227+
async fn length(jvm: &Jvm, _: &mut RuntimeContext, this: ClassInstanceRef<Self>) -> Result<i32> {
227228
tracing::debug!("java.lang.StringBuffer::length({:?})", &this);
228229

229230
let count: i32 = jvm.get_field(&this, "count", "I").await?;

0 commit comments

Comments
 (0)