@@ -108,7 +108,7 @@ impl DataInputStream {
108108 let byte1: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
109109 let byte2: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
110110
111- Ok ( ( byte1 as JavaChar ) << 8 | ( byte2 as JavaChar ) )
111+ Ok ( ( ( byte1 as JavaChar ) << 8 ) | ( byte2 as JavaChar ) )
112112 }
113113
114114 async fn read_short ( jvm : & Jvm , _: & mut RuntimeContext , this : ClassInstanceRef < Self > ) -> Result < i16 > {
@@ -119,7 +119,7 @@ impl DataInputStream {
119119 let byte1: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
120120 let byte2: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
121121
122- Ok ( ( byte1 as i16 ) << 8 | ( byte2 as i16 ) )
122+ Ok ( ( ( byte1 as i16 ) << 8 ) | ( byte2 as i16 ) )
123123 }
124124
125125 async fn read_unsigned_short ( jvm : & Jvm , _: & mut RuntimeContext , this : ClassInstanceRef < Self > ) -> Result < i32 > {
@@ -130,7 +130,7 @@ impl DataInputStream {
130130 let byte1: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
131131 let byte2: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
132132
133- Ok ( ( byte1 << 8 | byte2) & 0xffff )
133+ Ok ( ( ( byte1 << 8 ) | byte2) & 0xffff )
134134 }
135135
136136 async fn read_int ( jvm : & Jvm , _: & mut RuntimeContext , this : ClassInstanceRef < Self > ) -> Result < i32 > {
@@ -143,7 +143,7 @@ impl DataInputStream {
143143 let byte3: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
144144 let byte4: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
145145
146- Ok ( byte1 << 24 | byte2 << 16 | byte3 << 8 | byte4)
146+ Ok ( ( byte1 << 24 ) | ( byte2 << 16 ) | ( byte3 << 8 ) | byte4)
147147 }
148148
149149 async fn read_long ( jvm : & Jvm , _: & mut RuntimeContext , this : ClassInstanceRef < Self > ) -> Result < i64 > {
@@ -160,13 +160,13 @@ impl DataInputStream {
160160 let byte7: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
161161 let byte8: i32 = jvm. invoke_virtual ( & r#in, "read" , "()I" , ( ) ) . await ?;
162162
163- Ok ( ( byte1 as i64 ) << 56
164- | ( byte2 as i64 ) << 48
165- | ( byte3 as i64 ) << 40
166- | ( byte4 as i64 ) << 32
167- | ( byte5 as i64 ) << 24
168- | ( byte6 as i64 ) << 16
169- | ( byte7 as i64 ) << 8
163+ Ok ( ( ( byte1 as i64 ) << 56 )
164+ | ( ( byte2 as i64 ) << 48 )
165+ | ( ( byte3 as i64 ) << 40 )
166+ | ( ( byte4 as i64 ) << 32 )
167+ | ( ( byte5 as i64 ) << 24 )
168+ | ( ( byte6 as i64 ) << 16 )
169+ | ( ( byte7 as i64 ) << 8 )
170170 | ( byte8 as i64 ) )
171171 }
172172
0 commit comments