@@ -146,7 +146,7 @@ public class DirectoryScanner | |||||
* method instead. | * method instead. | ||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
protected static final String[] DEFAULTEXCLUDES = { | |||||
protected static final String[] DEFAULTEXCLUDES = { //NOSONAR | |||||
// Miscellaneous typical temporary files | // Miscellaneous typical temporary files | ||||
SelectorUtils.DEEP_TREE_MATCH + "/*~", | SelectorUtils.DEEP_TREE_MATCH + "/*~", | ||||
SelectorUtils.DEEP_TREE_MATCH + "/#*#", | SelectorUtils.DEEP_TREE_MATCH + "/#*#", | ||||
@@ -1313,7 +1313,7 @@ public class Javadoc extends Task { | |||||
* cannot be static in inner classes.) The first letter | * cannot be static in inner classes.) The first letter | ||||
* from each element is used to build up the scope string. | * from each element is used to build up the scope string. | ||||
*/ | */ | ||||
static final String[] SCOPE_ELEMENTS = { | |||||
static final String[] SCOPE_ELEMENTS = { //NOSONAR | |||||
"overview", "packages", "types", "constructors", | "overview", "packages", "types", "constructors", | ||||
"methods", "fields" | "methods", "fields" | ||||
}; | }; | ||||
@@ -247,7 +247,7 @@ public class Length extends Task implements Condition { | |||||
/** EnumeratedAttribute operation mode */ | /** EnumeratedAttribute operation mode */ | ||||
public static class FileMode extends EnumeratedAttribute { | public static class FileMode extends EnumeratedAttribute { | ||||
static final String[] MODES = new String[] {EACH, ALL}; | |||||
static final String[] MODES = new String[] {EACH, ALL}; //NOSONAR | |||||
/** | /** | ||||
* Return the possible values for FileMode. | * Return the possible values for FileMode. | ||||
@@ -77,7 +77,7 @@ public class JavaCC extends Task { | |||||
protected static final int TASKDEF_TYPE_JJTREE = 2; | protected static final int TASKDEF_TYPE_JJTREE = 2; | ||||
protected static final int TASKDEF_TYPE_JJDOC = 3; | protected static final int TASKDEF_TYPE_JJDOC = 3; | ||||
protected static final String[] ARCHIVE_LOCATIONS = | |||||
protected static final String[] ARCHIVE_LOCATIONS = //NOSONAR | |||||
new String[] { | new String[] { | ||||
"JavaCC.zip", | "JavaCC.zip", | ||||
"bin/lib/JavaCC.zip", | "bin/lib/JavaCC.zip", | ||||
@@ -85,7 +85,7 @@ public class JavaCC extends Task { | |||||
"javacc.jar", // used by jpackage for JavaCC 3.x | "javacc.jar", // used by jpackage for JavaCC 3.x | ||||
}; | }; | ||||
protected static final int[] ARCHIVE_LOCATIONS_VS_MAJOR_VERSION = | |||||
protected static final int[] ARCHIVE_LOCATIONS_VS_MAJOR_VERSION = //NOSONAR | |||||
new int[] { | new int[] { | ||||
1, | 1, | ||||
2, | 2, | ||||
@@ -33,7 +33,7 @@ public class JspNameMangler implements JspMangler { | |||||
/** | /** | ||||
* this is the list of keywords which can not be used as classnames | * this is the list of keywords which can not be used as classnames | ||||
*/ | */ | ||||
public static final String[] keywords = { | |||||
public static final String[] keywords = { //NOSONAR | |||||
"assert", | "assert", | ||||
"abstract", "boolean", "break", "byte", | "abstract", "boolean", "break", "byte", | ||||
"case", "catch", "char", "class", | "case", "catch", "char", "class", | ||||
@@ -144,7 +144,7 @@ public class FTP extends Task implements FTPTaskConfig { | |||||
private String initialSiteCommand = null; | private String initialSiteCommand = null; | ||||
private boolean enableRemoteVerification = true; | private boolean enableRemoteVerification = true; | ||||
protected static final String[] ACTION_STRS = { | |||||
protected static final String[] ACTION_STRS = { //NOSONAR | |||||
"sending", | "sending", | ||||
"getting", | "getting", | ||||
"deleting", | "deleting", | ||||
@@ -155,7 +155,7 @@ public class FTP extends Task implements FTPTaskConfig { | |||||
"site" | "site" | ||||
}; | }; | ||||
protected static final String[] COMPLETED_ACTION_STRS = { | |||||
protected static final String[] COMPLETED_ACTION_STRS = { //NOSONAR | |||||
"sent", | "sent", | ||||
"retrieved", | "retrieved", | ||||
"deleted", | "deleted", | ||||
@@ -166,7 +166,7 @@ public class FTP extends Task implements FTPTaskConfig { | |||||
"site command executed" | "site command executed" | ||||
}; | }; | ||||
protected static final String[] ACTION_TARGET_STRS = { | |||||
protected static final String[] ACTION_TARGET_STRS = { //NOSONAR | |||||
"files", | "files", | ||||
"files", | "files", | ||||
"files", | "files", | ||||
@@ -108,7 +108,7 @@ public class FTPTask extends Task implements FTPTaskConfig { | |||||
private ClassLoader mirrorLoader; | private ClassLoader mirrorLoader; | ||||
private FTPTaskMirror delegate = null; | private FTPTaskMirror delegate = null; | ||||
public static final String[] ACTION_STRS = { | |||||
public static final String[] ACTION_STRS = { //NOSONAR | |||||
"sending", | "sending", | ||||
"getting", | "getting", | ||||
"deleting", | "deleting", | ||||
@@ -119,7 +119,7 @@ public class FTPTask extends Task implements FTPTaskConfig { | |||||
"site" | "site" | ||||
}; | }; | ||||
public static final String[] COMPLETED_ACTION_STRS = { | |||||
public static final String[] COMPLETED_ACTION_STRS = { //NOSONAR | |||||
"sent", | "sent", | ||||
"retrieved", | "retrieved", | ||||
"deleted", | "deleted", | ||||
@@ -130,7 +130,7 @@ public class FTPTask extends Task implements FTPTaskConfig { | |||||
"site command executed" | "site command executed" | ||||
}; | }; | ||||
public static final String[] ACTION_TARGET_STRS = { | |||||
public static final String[] ACTION_TARGET_STRS = { //NOSONAR | |||||
"files", | "files", | ||||
"files", | "files", | ||||
"files", | "files", | ||||
@@ -49,7 +49,7 @@ public class Base64Converter { | |||||
// CheckStyle:ConstantNameCheck OFF - bc | // CheckStyle:ConstantNameCheck OFF - bc | ||||
/** Provided for BC purposes */ | /** Provided for BC purposes */ | ||||
public static final char[] alphabet = ALPHABET; | |||||
public static final char[] alphabet = ALPHABET; //NOSONAR | |||||
// CheckStyle:ConstantNameCheck ON | // CheckStyle:ConstantNameCheck ON | ||||
@@ -36,12 +36,9 @@ import java.util.Vector; | |||||
*/ | */ | ||||
public class CollectionUtils { | public class CollectionUtils { | ||||
/** | |||||
* Collections.emptyList() is Java5+. | |||||
*/ | |||||
@SuppressWarnings("rawtypes") | @SuppressWarnings("rawtypes") | ||||
@Deprecated | @Deprecated | ||||
public static final List EMPTY_LIST = Collections.EMPTY_LIST; | |||||
public static final List EMPTY_LIST = Collections.EMPTY_LIST; //NOSONAR | |||||
/** | /** | ||||
* Please use Vector.equals() or List.equals(). | * Please use Vector.equals() or List.equals(). | ||||
@@ -52,7 +52,7 @@ public interface BZip2Constants { | |||||
* <p>FIXME: This array should be in a private or package private | * <p>FIXME: This array should be in a private or package private | ||||
* location, since it could be modified by malicious code.</p> | * location, since it could be modified by malicious code.</p> | ||||
*/ | */ | ||||
int[] rNums = { | |||||
int[] rNums = { //NOSONAR | |||||
619, 720, 127, 481, 931, 816, 813, 233, 566, 247, | 619, 720, 127, 481, 931, 816, 813, 233, 566, 247, | ||||
985, 724, 205, 454, 863, 491, 741, 242, 949, 214, | 985, 724, 205, 454, 863, 491, 741, 242, 949, 214, | ||||
733, 859, 335, 708, 621, 574, 73, 654, 730, 472, | 733, 859, 335, 708, 621, 574, 73, 654, 730, 472, | ||||
@@ -30,7 +30,7 @@ package org.apache.tools.bzip2; | |||||
* | * | ||||
*/ | */ | ||||
final class CRC { | final class CRC { | ||||
static final int crc32Table[] = { | |||||
static final int crc32Table[] = { //NOSONAR | |||||
0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, | 0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, | ||||
0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005, | 0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005, | ||||
0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61, | 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61, | ||||
@@ -963,33 +963,33 @@ public class ZipOutputStream extends FilterOutputStream { | |||||
* | * | ||||
* @since 1.1 | * @since 1.1 | ||||
*/ | */ | ||||
protected static final byte[] LFH_SIG = ZipLong.LFH_SIG.getBytes(); | |||||
protected static final byte[] LFH_SIG = ZipLong.LFH_SIG.getBytes(); //NOSONAR | |||||
/** | /** | ||||
* data descriptor signature | * data descriptor signature | ||||
* | * | ||||
* @since 1.1 | * @since 1.1 | ||||
*/ | */ | ||||
protected static final byte[] DD_SIG = ZipLong.DD_SIG.getBytes(); | |||||
protected static final byte[] DD_SIG = ZipLong.DD_SIG.getBytes(); //NOSONAR | |||||
/** | /** | ||||
* central file header signature | * central file header signature | ||||
* | * | ||||
* @since 1.1 | * @since 1.1 | ||||
*/ | */ | ||||
protected static final byte[] CFH_SIG = ZipLong.CFH_SIG.getBytes(); | |||||
protected static final byte[] CFH_SIG = ZipLong.CFH_SIG.getBytes(); //NOSONAR | |||||
/** | /** | ||||
* end of central dir signature | * end of central dir signature | ||||
* | * | ||||
* @since 1.1 | * @since 1.1 | ||||
*/ | */ | ||||
protected static final byte[] EOCD_SIG = ZipLong.getBytes(0X06054B50L); | |||||
protected static final byte[] EOCD_SIG = ZipLong.getBytes(0X06054B50L); //NOSONAR | |||||
/** | /** | ||||
* ZIP64 end of central dir signature | * ZIP64 end of central dir signature | ||||
*/ | */ | ||||
static final byte[] ZIP64_EOCD_SIG = ZipLong.getBytes(0X06064B50L); | |||||
static final byte[] ZIP64_EOCD_SIG = ZipLong.getBytes(0X06064B50L); //NOSONAR | |||||
/** | /** | ||||
* ZIP64 end of central dir locator signature | * ZIP64 end of central dir locator signature | ||||
*/ | */ | ||||
static final byte[] ZIP64_EOCD_LOC_SIG = ZipLong.getBytes(0X07064B50L); | |||||
static final byte[] ZIP64_EOCD_LOC_SIG = ZipLong.getBytes(0X07064B50L); //NOSONAR | |||||
/** | /** | ||||
* Writes next block of compressed data to the output stream. | * Writes next block of compressed data to the output stream. | ||||