1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

Add checkstyle check for trailing whitespace

This commit is contained in:
Florian Schmaus 2015-03-18 21:01:49 +01:00
parent b8f046706b
commit 8878cf3773
14 changed files with 35 additions and 22 deletions

View file

@ -205,7 +205,7 @@ public class Socks4ProxySocketFactory
{
try
{
if(socket!=null)socket.close();
if(socket!=null)socket.close();
}
catch(Exception eee)
{

View file

@ -340,7 +340,7 @@ public class Socks5ProxySocketFactory
{
if(socket!=null)
{
socket.close();
socket.close();
}
}
catch(Exception eee)

View file

@ -254,7 +254,7 @@ public class DNSUtil {
} else {
double rnd = Math.random() * running_total;
selectedPos = bisect(totals, rnd);
}
}
// add the SRVRecord that was randomly chosen on it's weight
// to the start of the result list
SRVRecord chosenSRVRecord = bucket.remove(selectedPos);

View file

@ -232,7 +232,7 @@ public class PacketParserUtils {
if (language != null && !"".equals(language.trim())) {
message.setLanguage(language);
defaultLanguage = language;
}
}
else {
defaultLanguage = Stanza.getDefaultLanguage();
}

View file

@ -37,7 +37,7 @@ public class SmackConfigurationTest {
// As there is currently no annotation/way to run a testclass/single test in a separate VM,
// which is required for reliable results of this test, and we don't want to fork a VM for
// *every* test, those tests are currently disabled. Hopefully this will change in the future.
@Ignore
@Ignore
@Test
public void smackConfigurationShouldNotCauseInitializationTest() {
SmackConfiguration.getDefaultPacketReplyTimeout();
@ -49,7 +49,7 @@ public class SmackConfigurationTest {
// As there is currently no annotation/way to run a testclass/single test in a separate VM,
// which is required for reliable results of this test, and we don't want to fork a VM for
// *every* test, those tests are currently disabled. Hopefully this will change in the future.
@Ignore
@Ignore
@Test
public void smackconfigurationVersionShouldInitialzieSmacktTest() {
SmackConfiguration.getVersion();