mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Add ParenPad and NoWhitespaceAfter checkstyle rules
This commit is contained in:
parent
9d0d8088f4
commit
9165e818d9
17 changed files with 76 additions and 60 deletions
|
@ -104,5 +104,18 @@
|
||||||
<property name="checkEmptyJavadoc" value="true"/>
|
<property name="checkEmptyJavadoc" value="true"/>
|
||||||
<property name="checkHtml" value="false"/>
|
<property name="checkHtml" value="false"/>
|
||||||
</module>
|
</module>
|
||||||
|
<module name="ParenPad">
|
||||||
|
</module>
|
||||||
|
<module name="NoWhitespaceAfter">
|
||||||
|
<property name="tokens" value="INC
|
||||||
|
, DEC
|
||||||
|
, UNARY_MINUS
|
||||||
|
, UNARY_PLUS
|
||||||
|
, BNOT, LNOT
|
||||||
|
, DOT
|
||||||
|
, ARRAY_DECLARATOR
|
||||||
|
, INDEX_OP
|
||||||
|
"/>
|
||||||
|
</module>
|
||||||
</module>
|
</module>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -248,11 +248,13 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
||||||
*/
|
*/
|
||||||
private final ExecutorService cachedExecutorService = Executors.newCachedThreadPool(
|
private final ExecutorService cachedExecutorService = Executors.newCachedThreadPool(
|
||||||
// @formatter:off
|
// @formatter:off
|
||||||
|
// CHECKSTYLE:OFF
|
||||||
new SmackExecutorThreadFactory( // threadFactory
|
new SmackExecutorThreadFactory( // threadFactory
|
||||||
this,
|
this,
|
||||||
"Cached Executor"
|
"Cached Executor"
|
||||||
)
|
)
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
|
// CHECKSTYLE:ON
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -983,9 +983,9 @@ public class PacketParserUtils {
|
||||||
private static String getLanguageAttribute(XmlPullParser parser) {
|
private static String getLanguageAttribute(XmlPullParser parser) {
|
||||||
// CHECKSTYLE:OFF
|
// CHECKSTYLE:OFF
|
||||||
for (int i = 0; i < parser.getAttributeCount(); i++) {
|
for (int i = 0; i < parser.getAttributeCount(); i++) {
|
||||||
// CHECKSTYLE:ON
|
|
||||||
String attributeName = parser.getAttributeName(i);
|
String attributeName = parser.getAttributeName(i);
|
||||||
if ( "xml:lang".equals(attributeName) ||
|
if ( "xml:lang".equals(attributeName) ||
|
||||||
|
// CHECKSTYLE:ON
|
||||||
("lang".equals(attributeName) &&
|
("lang".equals(attributeName) &&
|
||||||
"xml".equals(parser.getAttributePrefix(i)))) {
|
"xml".equals(parser.getAttributePrefix(i)))) {
|
||||||
// CHECKSTYLE:OFF
|
// CHECKSTYLE:OFF
|
||||||
|
|
|
@ -29,6 +29,7 @@ import java.util.logging.Logger;
|
||||||
* @author rob@iharder.net
|
* @author rob@iharder.net
|
||||||
* @version 2.2.1
|
* @version 2.2.1
|
||||||
*/
|
*/
|
||||||
|
// CHECKSTYLE:OFF
|
||||||
public final class Base64
|
public final class Base64
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(Base64.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(Base64.class.getName());
|
||||||
|
@ -1682,4 +1683,4 @@ public final class Base64
|
||||||
|
|
||||||
|
|
||||||
} // end class Base64
|
} // end class Base64
|
||||||
|
// CHECKSTYLE:ON
|
||||||
|
|
Loading…
Reference in a new issue