mirror of
https://github.com/revanced/jadb.git
synced 2024-11-19 02:29:24 +01:00
Remove unnecessary boxing/unboxing
(causes warning about loosing precision)
This commit is contained in:
parent
6876adc9df
commit
293796fcc6
@ -55,7 +55,7 @@ public class SyncTransport {
|
||||
output.writeBytes("DENT");
|
||||
output.writeInt(Integer.reverseBytes(0666 | (file.isDirectory() ? (1 << 14) : 0)));
|
||||
output.writeInt(Integer.reverseBytes(file.getSize()));
|
||||
output.writeInt(Integer.reverseBytes(Long.valueOf(file.getLastModified()).intValue()));
|
||||
output.writeInt(Integer.reverseBytes((int)file.getLastModified()));
|
||||
byte[] pathChars = file.getPath().getBytes(StandardCharsets.UTF_8);
|
||||
output.writeInt(Integer.reverseBytes(pathChars.length));
|
||||
output.write(pathChars);
|
||||
|
Loading…
Reference in New Issue
Block a user