Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/packets/PacketIgnore.java @ 307:071eccdff8ea ganymed
fix java formatting
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:16:58 -0700 |
parents | 91a31873c42a |
children |
comparison
equal
deleted
inserted
replaced
305:d2b303406d63 | 307:071eccdff8ea |
---|---|
17 | 17 |
18 public PacketIgnore(byte[] data) { | 18 public PacketIgnore(byte[] data) { |
19 TypesWriter tw = new TypesWriter(); | 19 TypesWriter tw = new TypesWriter(); |
20 tw.writeByte(Packets.SSH_MSG_IGNORE); | 20 tw.writeByte(Packets.SSH_MSG_IGNORE); |
21 | 21 |
22 if(data != null) { | 22 if (data != null) { |
23 tw.writeString(data, 0, data.length); | 23 tw.writeString(data, 0, data.length); |
24 } | 24 } |
25 else { | 25 else { |
26 tw.writeString(""); | 26 tw.writeString(""); |
27 } | 27 } |
28 | |
28 payload = tw.getBytes(); | 29 payload = tw.getBytes(); |
29 } | 30 } |
30 | 31 |
31 public byte[] getPayload() { | 32 public byte[] getPayload() { |
32 return payload; | 33 return payload; |