unknown attributes
This commit is contained in:
parent
10646275cb
commit
8a79a28b5f
1 changed files with 4 additions and 4 deletions
|
@ -549,7 +549,9 @@ impl AttributeInfo {
|
|||
let mut attr_vec = Vec::with_capacity(length.into());
|
||||
|
||||
for _i in 0..length {
|
||||
attr_vec.push(AttributeInfo::from_reader(reader, &pool)?);
|
||||
let attribute = AttributeInfo::from_reader(reader, &pool)?;
|
||||
println!("{:#?}", attribute);
|
||||
attr_vec.push(attribute);
|
||||
}
|
||||
|
||||
Ok(attr_vec.into_boxed_slice())
|
||||
|
@ -585,8 +587,6 @@ impl AttributeInfo {
|
|||
}
|
||||
};
|
||||
|
||||
println!("{:#?}", data);
|
||||
|
||||
Ok(
|
||||
AttributeInfo {
|
||||
attribute_name_index,
|
||||
|
@ -618,7 +618,7 @@ impl MethodInfo {
|
|||
}
|
||||
|
||||
fn read_buffer(reader: &mut dyn Read, size: usize) -> Result<Box<[u8]>, Error> {
|
||||
let mut buffer: Box<[u8]> = Vec::<u8>::with_capacity(size).into_boxed_slice();
|
||||
let mut buffer: Box<[u8]> = vec![0; size].into_boxed_slice();
|
||||
|
||||
reader.read_exact(&mut buffer)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue