mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-14 06:51:08 +01:00
Enable LeftCurly checkstyle check
This commit is contained in:
parent
5a841ff0a8
commit
9b5dafe541
93 changed files with 549 additions and 1087 deletions
|
|
@ -204,8 +204,7 @@ public abstract class FileTransfer {
|
|||
}
|
||||
|
||||
protected void writeToStream(final InputStream in, final OutputStream out)
|
||||
throws IOException
|
||||
{
|
||||
throws IOException {
|
||||
final byte[] b = new byte[BUFFER_SIZE];
|
||||
int count = 0;
|
||||
amountWritten = 0;
|
||||
|
|
|
|||
|
|
@ -161,8 +161,7 @@ public class OutgoingFileTransfer extends FileTransfer {
|
|||
*/
|
||||
public synchronized void sendFile(final String fileName,
|
||||
final long fileSize, final String description,
|
||||
final NegotiationProgress progress)
|
||||
{
|
||||
final NegotiationProgress progress) {
|
||||
if (progress == null) {
|
||||
throw new IllegalArgumentException("Callback progress cannot be null.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,8 +51,7 @@ public class Socks5TransferNegotiator extends StreamNegotiator {
|
|||
}
|
||||
|
||||
@Override
|
||||
public OutputStream createOutgoingStream(String streamID, Jid initiator, Jid target) throws SmackException, XMPPException
|
||||
{
|
||||
public OutputStream createOutgoingStream(String streamID, Jid initiator, Jid target) throws SmackException, XMPPException {
|
||||
try {
|
||||
return this.manager.establishSession(target, streamID).getOutputStream();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,8 +73,7 @@ public abstract class StreamNegotiator extends Manager {
|
|||
* @return The response to be forwarded to the initiator.
|
||||
*/
|
||||
protected static StreamInitiation createInitiationAccept(
|
||||
StreamInitiation streamInitiationOffer, String[] namespaces)
|
||||
{
|
||||
StreamInitiation streamInitiationOffer, String[] namespaces) {
|
||||
StreamInitiation response = new StreamInitiation();
|
||||
response.setTo(streamInitiationOffer.getFrom());
|
||||
response.setFrom(streamInitiationOffer.getTo());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue