mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-13 16:41:08 +01:00
Enable more 'checkstyle' checks
AvoidStarImport IllegalImport RedundantImport UpperEll ArrayTypeStyle GenericWhitespace EmptyStatement PackageDelcaration
This commit is contained in:
parent
522d0f30ff
commit
7277eb553a
92 changed files with 465 additions and 253 deletions
|
|
@ -627,7 +627,7 @@ public class InBandBytestreamSession implements BytestreamSession {
|
|||
buffer[bufferPointer++] = (byte) b;
|
||||
}
|
||||
|
||||
public synchronized void write(byte b[], int off, int len) throws IOException {
|
||||
public synchronized void write(byte[] b, int off, int len) throws IOException {
|
||||
if (b == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
|
@ -671,7 +671,7 @@ public class InBandBytestreamSession implements BytestreamSession {
|
|||
* @param len the number of bytes to write
|
||||
* @throws IOException if an I/O error occurred while sending or if the stream is closed
|
||||
*/
|
||||
private synchronized void writeOut(byte b[], int off, int len) throws IOException {
|
||||
private synchronized void writeOut(byte[] b, int off, int len) throws IOException {
|
||||
if (this.isClosed) {
|
||||
throw new IOException("Stream is closed");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ class Socks5Client {
|
|||
* @return SOCKS5 connection request message
|
||||
*/
|
||||
private byte[] createSocks5ConnectRequest() {
|
||||
byte addr[] = this.digest.getBytes();
|
||||
byte[] addr = this.digest.getBytes();
|
||||
|
||||
byte[] data = new byte[7 + addr.length];
|
||||
data[0] = (byte) 0x05; // version (SOCKS5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue