diff --git a/config/checker-framework-suppressions/checker-index-suppressions.xml b/config/checker-framework-suppressions/checker-index-suppressions.xml index 99f9136ff02..b05da1d7ff9 100644 --- a/config/checker-framework-suppressions/checker-index-suppressions.xml +++ b/config/checker-framework-suppressions/checker-index-suppressions.xml @@ -3,7 +3,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/AstTreeStringPrinter.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. baseIndentation = baseIndentation.substring(0, baseIndentation.length() - 2);
found : int @@ -14,7 +14,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return getBranchTokenTypes().get(tokenType);
found : int @@ -25,7 +25,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java argument - incompatible argument for parameter bitIndex of set. + incompatible argument for parameter bitIndex of BitSet.set. branchTokenTypes.set(type);
found : int @@ -36,7 +36,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return className.substring(0, className.length() - contextLength);
found : int @@ -48,22 +48,21 @@ src/main/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.java array.access.unsafe.high Potentially unsafe array access: the index could be larger than the array's bound - final String ruleName = recognizer.getRuleNames()[ruleIndex]; + children[i] = child;
found : int - required: @IndexFor("recognizer.getRuleNames()") or @LTLengthOf("recognizer.getRuleNames()") -- an integer less than recognizer.getRuleNames()'s length + required: @IndexFor("children") or @LTLengthOf("children") -- an integer less than children's length
src/main/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.java - array.access.unsafe.high.range + array.access.unsafe.high Potentially unsafe array access: the index could be larger than the array's bound - children[i] = child; + final String ruleName = recognizer.getRuleNames()[ruleIndex];
- index type found: @IntRange(from=-2147483648) int - array type found: DetailNode [] - required : index of type @IndexFor("children") or @LTLengthOf("children"), or array of type @MinLen(-9223372036854775808) + found : int + required: @IndexFor("recognizer.getRuleNames()") or @LTLengthOf("recognizer.getRuleNames()") -- an integer less than recognizer.getRuleNames()'s length
@@ -103,7 +102,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. ent.substring(prefixLength, ent.length() - 1), radix);
found : int @@ -114,7 +113,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. if (ent.charAt(0) == '&' && ent.endsWith(";")) {
found : @UpperBoundLiteral(0) int @@ -125,7 +124,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. if (ent.charAt(1) == '#') {
found : @UpperBoundLiteral(1) int @@ -136,7 +135,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. if (ent.charAt(2) == 'x') {
found : @UpperBoundLiteral(2) int @@ -191,7 +190,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. final String[] txt = {line.substring(startColNo)};
found : int @@ -202,7 +201,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. returnValue[0] = line(startLineNo - 1).substring(startColNo);
found : int @@ -213,7 +212,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. returnValue[0] = line(startLineNo - 1).substring(startColNo,
found : int @@ -224,7 +223,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. final String[] txt = {line.substring(startColNo)};
found : int @@ -235,7 +234,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. returnValue[0] = line(startLineNo - 1).substring(startColNo);
found : int @@ -246,7 +245,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. returnValue[0] = line(startLineNo - 1).substring(startColNo,
found : int @@ -257,7 +256,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. endColNo + 1);
found : int @@ -268,7 +267,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. endColNo + 1);
found : int @@ -279,7 +278,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. endColNo + 1);
found : int @@ -290,7 +289,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. endColNo + 1);
found : int @@ -364,6 +363,17 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java + array.access.unsafe.high + Potentially unsafe array access: the index could be larger than the array's bound + lineBreakPositions[lineNo] = matcher.end(); +
+ found : int + required: @IndexFor("lineBreakPositions") or @LTLengthOf("lineBreakPositions") -- an integer less than lineBreakPositions's length +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java array.access.unsafe.high @@ -386,18 +396,6 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java - array.access.unsafe.high.range - Potentially unsafe array access: the index could be larger than the array's bound - lineBreakPositions[lineNo] = matcher.end(); -
- index type found: @IntRange(from=-2147483648) int - array type found: int [] - required : index of type @IndexFor("lineBreakPositions") or @LTLengthOf("lineBreakPositions"), or array of type @MinLen(-9223372036854775808) -
-
- src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java array.access.unsafe.low @@ -434,7 +432,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. comment.getEndColNo() + 1, codePoints.length));
found : int @@ -445,7 +443,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. comment.getEndColNo() + 1, codePoints.length));
found : int @@ -511,7 +509,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/FinalParametersCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. && primitiveDataTypes.get(parameterType.getType())) {
found : int @@ -522,7 +520,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/NewlineAtEndOfFileCheck.java argument - incompatible argument for parameter pos of seek. + incompatible argument for parameter pos of RandomAccessFile.seek. file.seek(file.length() - len);
found : long @@ -544,7 +542,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. expr = quotedText.substring(1, quotedText.length() - 1);
found : @UpperBoundLiteral(1) int @@ -555,7 +553,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. expr = quotedText.substring(1, quotedText.length() - 1);
found : @GTENegativeOne int @@ -566,7 +564,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return sourceNameLower.substring(startIndex, endIndex);
found : @LTEqLengthOf("sourceName") int @@ -577,7 +575,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return sourceNameLower.substring(startIndex, endIndex);
found : int @@ -588,7 +586,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. lastChild.getColumnNo() + 2, lineCodePoints.length);
found : int @@ -599,7 +597,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. lastChild.getColumnNo() + 2, lineCodePoints.length);
found : int @@ -610,7 +608,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. final String removePattern = regexp.substring("^.+".length());
found : @LTEqLengthOf(""^.+"") int @@ -621,7 +619,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. .substring(0, fileNameWithPath.lastIndexOf(File.separator));
found : @GTENegativeOne int @@ -632,7 +630,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/annotation/MissingDeprecatedCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. if (TYPES_HASH_SET.get(type)) {
found : int @@ -654,7 +652,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/annotation/SuppressWarningsCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. return warning.substring(1, warning.length() - 1);
found : @UpperBoundLiteral(1) int @@ -665,7 +663,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/annotation/SuppressWarningsCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return warning.substring(1, warning.length() - 1);
found : @GTENegativeOne int @@ -676,7 +674,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. slistColNo + 1, codePointsFirstLine.length);
found : int @@ -687,7 +685,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. slistColNo + 1, rcurlyColNo);
found : int @@ -698,7 +696,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. slistColNo + 1, codePointsFirstLine.length);
found : int @@ -709,7 +707,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. slistColNo + 1, rcurlyColNo);
found : int @@ -720,7 +718,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheck.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. || braceLine.charAt(brace.getColumnNo() + 1) != '}') {
found : int @@ -731,7 +729,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheck.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. || braceLine.charAt(brace.getColumnNo() + 1) != '}') {
found : int @@ -742,7 +740,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/AvoidDoubleBraceInitializationCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. token -> !IGNORED_TYPES.get(token.getType());
found : int @@ -753,7 +751,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return ASSIGN_OPERATOR_TYPES.get(parentType);
found : int @@ -764,7 +762,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return LOOP_TYPES.get(ast);
found : int @@ -775,7 +773,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. setterName = name.substring(0, 1).toUpperCase(Locale.ENGLISH) + name.substring(1);
found : @UpperBoundLiteral(1) int @@ -786,7 +784,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. setterName = name.substring(0, 1).toUpperCase(Locale.ENGLISH) + name.substring(1);
found : @UpperBoundLiteral(1) int @@ -797,7 +795,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. if (name.length() == 1 || !Character.isUpperCase(name.charAt(1))) {
found : @UpperBoundLiteral(1) int @@ -808,7 +806,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/IllegalInstantiationCheck.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && illegal.charAt(pkgNameLen) == '.'
found : int @@ -819,7 +817,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/IllegalInstantiationCheck.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && illegal.charAt(pkgNameLen) == '.'
found : int @@ -830,7 +828,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/IllegalTypeCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. if (memberModifiers.get(modifier.getType())) {
found : int @@ -841,7 +839,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/InnerAssignmentCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return COMPARISON_TYPES.get(astType);
found : int @@ -852,7 +850,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/InnerAssignmentCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. while (skipTokens.get(result.getType())) {
found : int @@ -863,7 +861,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/MagicNumberCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. if (!constantWaiverParentToken.get(type)) {
found : int @@ -874,7 +872,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/ModifiedControlVariableCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return MUTATION_OPERATIONS.get(iteratingExpressionAST.getType());
found : int @@ -885,7 +883,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/MultipleStringLiteralsCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. if (ignoreOccurrenceContext.get(type)) {
found : int @@ -896,7 +894,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/MultipleStringLiteralsCheck.java argument - incompatible argument for parameter bitIndex of set. + incompatible argument for parameter bitIndex of BitSet.set. ignoreOccurrenceContext.set(type);
found : int @@ -907,7 +905,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/PackageDeclarationCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return fileName.substring(0, lastSeparatorPos);
found : @GTENegativeOne int @@ -918,7 +916,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return ASSIGN_TOKENS.get(tokenType);
found : int @@ -929,7 +927,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return COMPOUND_ASSIGN_TOKENS.get(tokenType);
found : int @@ -940,7 +938,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DECLARATION_TOKENS.get(parentType);
found : int @@ -951,7 +949,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/design/InnerTypeLastCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. && CLASS_MEMBER_TOKENS.get(nextSibling.getType())) {
found : int @@ -962,7 +960,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/header/HeaderCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return ignoreLines.get(lineNo);
found : int @@ -973,7 +971,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/header/RegexpHeaderCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return multiLines.get(lineNo + 1);
found : int @@ -984,7 +982,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/AvoidStaticImportCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. excludeMinusDotStar.length() + 1);
found : @LTLengthOf(value={"exclude.substring(0, exclude.length() - 2)", "excludeMinusDotStar"}, offset={"-2", "-2"}) int @@ -995,7 +993,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. ruleStr.indexOf(')'));
found : @GTENegativeOne int @@ -1007,10 +1005,10 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java array.access.unsafe.high Potentially unsafe array access: the index could be larger than the array's bound - final String import1Token = import1Tokens[i]; + final String import2Token = import2Tokens[i];
found : int - required: @IndexFor("import1Tokens") or @LTLengthOf("import1Tokens") -- an integer less than import1Tokens's length + required: @IndexFor("import2Tokens") or @LTLengthOf("import2Tokens") -- an integer less than import2Tokens's length
@@ -1025,18 +1023,6 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java - array.access.unsafe.high.range - Potentially unsafe array access: the index could be larger than the array's bound - final String import2Token = import2Tokens[i]; -
- index type found: @IntRange(from=-2147483648) int - array type found: String @ArrayLenRange(from=1) [] - required : index of type @IndexFor("import2Tokens") or @LTLengthOf("import2Tokens"), or array of type @MinLen(-9223372036854775808) -
-
- src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java array.access.unsafe.low @@ -1051,7 +1037,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return qualifiedImportName.substring(0, lastDotIndex);
found : @GTENegativeOne int @@ -1062,7 +1048,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/PkgImportControl.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && (pkg.length() == length || pkg.charAt(length) == '.');
found : @LTEqLengthOf("this.fullPackageName") int @@ -1073,7 +1059,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/RedundantImportCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. final String front = importName.substring(0, index);
found : @GTENegativeOne int @@ -1084,7 +1070,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/AbstractExpressionHandler.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. while (Character.isWhitespace(line.charAt(index))) {
found : int @@ -1095,7 +1081,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/AnnotationArrayInitHandler.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && Character.isWhitespace(line.charAt(realColumnNo))) {
found : int @@ -1128,7 +1114,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/ArrayInitHandler.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && Character.isWhitespace(line.charAt(realColumnNo))) {
found : int @@ -1216,20 +1202,19 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java - array.access.unsafe.high.range + array.access.unsafe.high Potentially unsafe array access: the index could be larger than the array's bound types[index] = val;
- index type found: @IntRange(from=-2147483648) int - array type found: int [] - required : index of type @IndexFor("types") or @LTLengthOf("types"), or array of type @MinLen(-9223372036854775808) + found : int + required: @IndexFor("types") or @LTLengthOf("types") -- an integer less than types's length
src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return levels.get(indent);
found : int @@ -1240,7 +1225,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.java argument - incompatible argument for parameter bitIndex of set. + incompatible argument for parameter bitIndex of BitSet.set. levels.set(i + offset);
found : int @@ -1251,7 +1236,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.java argument - incompatible argument for parameter bitIndex of set. + incompatible argument for parameter bitIndex of BitSet.set. levels.set(indent);
found : int @@ -1262,7 +1247,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.java argument - incompatible argument for parameter bitIndex of set. + incompatible argument for parameter bitIndex of BitSet.set. result.levels.set(addition);
found : int @@ -1273,7 +1258,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/LineWrappingHandler.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. while (Character.isWhitespace(line.charAt(index))) {
found : int @@ -1284,7 +1269,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/SlistHandler.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return PARENT_TOKEN_TYPES.get(parentType);
found : int @@ -1295,7 +1280,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/AtclauseOrderCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. if (target.get(parentType)) {
found : int @@ -1306,7 +1291,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/HtmlTag.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. return text.substring(startOfText, endOfText);
found : int @@ -1317,7 +1302,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/HtmlTag.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. return text.substring(startOfText, endOfText);
found : int @@ -1328,7 +1313,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/HtmlTag.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return text.substring(startOfText, endOfText);
found : int @@ -1339,7 +1324,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/HtmlTag.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. return position != text.length() - 1 && text.charAt(position + 1) == '/';
found : int @@ -1350,7 +1335,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/HtmlTag.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. return position != text.length() - 1 && text.charAt(position + 1) == '/';
found : int @@ -1383,7 +1368,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMissingWhitespaceAfterAsteriskCheck.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && !Character.isWhitespace(text.charAt(lastAsteriskPosition + 1))) {
found : int @@ -1394,7 +1379,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMissingWhitespaceAfterAsteriskCheck.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && !Character.isWhitespace(text.charAt(lastAsteriskPosition + 1))) {
found : int @@ -1405,7 +1390,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. builder.append(line.substring(textStart));
found : int @@ -1416,7 +1401,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. builder.append(line.substring(textStart));
found : int @@ -1427,19 +1412,19 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java argument - incompatible argument for parameter index of charAt. - if (line.charAt(textStart) == '@') { + incompatible argument for parameter index of AbstractStringBuilder.charAt. + if (Character.isWhitespace(builder.charAt(index))) {
found : int - required: @LTLengthOf("line") int + required: @NonNegative int
src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java argument - incompatible argument for parameter index of charAt. - if (Character.isWhitespace(builder.charAt(index))) { + incompatible argument for parameter index of AbstractStringBuilder.charAt. + while (builder.charAt(index - 1) == '*') {
found : int required: @NonNegative int @@ -1449,19 +1434,19 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. if (line.charAt(textStart) == '@') {
found : int - required: @NonNegative int + required: @LTLengthOf("line") int
src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java argument - incompatible argument for parameter index of charAt. - while (builder.charAt(index - 1) == '*') { + incompatible argument for parameter index of String.charAt. + if (line.charAt(textStart) == '@') {
found : int required: @NonNegative int @@ -1471,7 +1456,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java argument - incompatible argument for parameter index of deleteCharAt. + incompatible argument for parameter index of StringBuilder.deleteCharAt. builder.deleteCharAt(index - 1);
found : int @@ -1482,7 +1467,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java argument - incompatible argument for parameter index of deleteCharAt. + incompatible argument for parameter index of StringBuilder.deleteCharAt. builder.deleteCharAt(index);
found : int @@ -1515,7 +1500,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagContinuationIndentationCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. else if (!CommonUtil.isBlank(text.substring(1, offset + 1))) {
found : @UpperBoundLiteral(1) int @@ -1526,7 +1511,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagContinuationIndentationCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. else if (!CommonUtil.isBlank(text.substring(1, offset + 1))) {
found : int @@ -1537,7 +1522,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES.get(astType)
found : int @@ -1548,7 +1533,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES.get(astType)
found : int @@ -1559,7 +1544,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES.get(astType)
found : int @@ -1570,7 +1555,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES.get(astType)
found : int @@ -1581,7 +1566,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES.get(astType)
found : int @@ -1592,7 +1577,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES.get(astType)
found : int @@ -1603,7 +1588,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES.get(astType)
found : int @@ -1614,7 +1599,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES.get(astType)
found : int @@ -1625,7 +1610,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return DEF_TOKEN_TYPES_DEPRECATED.get(astType)
found : int @@ -1647,7 +1632,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. && ALLOWED_TYPES.get(child.getType())) {
found : int @@ -1655,17 +1640,6 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java - argument - incompatible argument for parameter end of append. - result.append(text, 0, text.indexOf(periodSuffix) + 1); -
- found : @LTLengthOf(value="text", offset="-2") int - required: @LTEqLengthOf("text") int -
-
- src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java array.access.unsafe.high.constant @@ -1768,7 +1742,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. text = text.substring(column).trim();
found : int @@ -1779,7 +1753,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. tagId = text.substring(0, position);
found : int @@ -1790,7 +1764,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. .substring(0, toPoint.getColumnNo() + 1).endsWith("-->")) {
found : int @@ -1801,7 +1775,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. .substring(0, toPoint.getColumnNo() + 1).endsWith("-->")) {
found : int @@ -1812,7 +1786,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && text[curr.getLineNo()].charAt(curr.getColumnNo()) != character) {
found : int @@ -1823,7 +1797,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. .charAt(endTag.getColumnNo() - 1) == '/';
found : int @@ -1834,7 +1808,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. && text[curr.getLineNo()].charAt(curr.getColumnNo()) != character) {
found : int @@ -1845,7 +1819,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. .charAt(endTag.getColumnNo() - 1) == '/';
found : int @@ -1856,7 +1830,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. if (text.charAt(column) == '/') {
found : int @@ -1867,7 +1841,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. || Character.isJavaIdentifierStart(text.charAt(column))
found : int @@ -1878,7 +1852,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. || text.charAt(column) == '/';
found : int @@ -2054,7 +2028,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/WriteTagCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. final String content = commentValue.substring(contentStart);
found : @GTENegativeOne int @@ -2065,7 +2039,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/WriteTagCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. final String content = commentValue.substring(contentStart);
found : int @@ -2076,7 +2050,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/utils/BlockTagUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. final String remainder = line.substring(tagMatcher.end(1));
found : @GTENegativeOne int @@ -2087,7 +2061,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/utils/BlockTagUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. final String remainder = line.substring(tagMatcher.end(1));
found : int @@ -2098,7 +2072,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/utils/InlineTagUtil.java argument - incompatible argument for parameter endIndex of subSequence. + incompatible argument for parameter endIndex of String.subSequence. final String precedingText = source.subSequence(0, index).toString();
found : int @@ -2109,7 +2083,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/utils/InlineTagUtil.java argument - incompatible argument for parameter endIndex of subSequence. + incompatible argument for parameter endIndex of String.subSequence. final String precedingText = source.subSequence(0, index).toString();
found : int @@ -2120,7 +2094,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/metrics/AbstractClassCouplingCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. classNameWithPackage.substring(0, lastDotIndex);
found : @GTENegativeOne int @@ -2131,7 +2105,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. result = str.substring(beginIndex);
found : int @@ -2142,7 +2116,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. result = str.substring(beginIndex, endIndex);
found : int @@ -2153,7 +2127,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. result = str.substring(beginIndex);
found : int @@ -2164,7 +2138,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. result = str.substring(beginIndex, endIndex);
found : int @@ -2175,7 +2149,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. result = str.substring(beginIndex, endIndex);
found : int @@ -2186,7 +2160,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. result = str.substring(beginIndex, endIndex);
found : int @@ -2197,7 +2171,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/regexp/SinglelineDetector.java argument - incompatible argument for parameter start of find. + incompatible argument for parameter start of Matcher.find. final boolean foundMatch = matcher.find(startPosition);
found : int @@ -2208,7 +2182,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/sizes/MethodLengthCheck.java argument - incompatible argument for parameter bitIndex of set. + incompatible argument for parameter bitIndex of BitSet.set. usedLines.set(lineIndex);
found : int @@ -2219,7 +2193,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/sizes/MethodLengthCheck.java argument - incompatible argument for parameter fromIndex of set. + incompatible argument for parameter fromIndex of BitSet.set. usedLines.set(lineIndex, endLineIndex + 1);
found : int @@ -2230,7 +2204,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/sizes/MethodLengthCheck.java argument - incompatible argument for parameter toIndex of set. + incompatible argument for parameter toIndex of BitSet.set. usedLines.set(lineIndex, endLineIndex + 1);
found : int @@ -2340,7 +2314,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/ParenPadCheck.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return acceptableTokens.get(ast.getType());
found : int @@ -2351,7 +2325,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/SeparatorWrapCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. Arrays.copyOfRange(currentLine, colNo + text.length(), currentLine.length)
found : @LTLengthOf(value={"ast.getText()", "text"}, offset={"-colNo - 1", "-colNo - 1"}) int @@ -2362,7 +2336,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/SeparatorWrapCheck.java argument - incompatible argument for parameter from of copyOfRange. + incompatible argument for parameter from of Arrays.copyOfRange. Arrays.copyOfRange(currentLine, colNo + text.length(), currentLine.length)
found : int @@ -2535,7 +2509,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. result.addLast(fileName.substring(0, fileName.length() - JAVA_FILE_EXTENSION.length()));
found : int @@ -2546,7 +2520,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return fileName.substring(0, fileName.length() - JAVA_FILE_EXTENSION.length());
found : int @@ -2557,7 +2531,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.java argument - incompatible argument for parameter initialCapacity of ArrayList. + incompatible argument for parameter initialCapacity of ArrayList constructor. final List<ModulePropertyDetails> result = new ArrayList<>(propertyListLength);
found : int @@ -2568,7 +2542,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.java argument - incompatible argument for parameter initialCapacity of ArrayList. + incompatible argument for parameter initialCapacity of ArrayList constructor. final List<String> listContent = new ArrayList<>(nodeListLength);
found : int @@ -2579,10 +2553,10 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaWriter.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. + moduleFilePath.substring(indexOfCheckstyle + 1) + xmlExtension;
- found : @LTLengthOf(value={"checkstyleString", "moduleFilePath", "moduleFilePath"}, offset={"-moduleFilePath.indexOf(checkstyleString) - 2", "-12", "-checkstyleString.length() - 2"}) int + found : @LTLengthOf(value={"checkstyleString", "moduleFilePath", "moduleFilePath"}, offset={"-moduleFilePath.indexOf(checkstyleString) - 2", "-11", "-checkstyleString.length() - 1"}) int required: @LTEqLengthOf("moduleFilePath") int
@@ -2590,10 +2564,10 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaWriter.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. + moduleFilePath.substring(0, indexOfCheckstyle) + "/meta/"
- found : @LTLengthOf(value={"checkstyleString", "moduleFilePath", "moduleFilePath"}, offset={"-moduleFilePath.indexOf(checkstyleString) - 1", "-11", "-checkstyleString.length() - 1"}) int + found : @LTLengthOf(value={"checkstyleString", "moduleFilePath", "moduleFilePath"}, offset={"-moduleFilePath.indexOf(checkstyleString) - 1", "-10", "-checkstyleString.length()"}) int required: @LTEqLengthOf("moduleFilePath") int
@@ -2601,7 +2575,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/ClassAndPropertiesSettersJavadocScraper.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. return Introspector.decapitalize(setterName.substring("set".length()));
found : @LTEqLengthOf(""set"") int @@ -2612,7 +2586,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. description = firstLetterCapitalized + descriptionString.substring(1);
found : @UpperBoundLiteral(1) int @@ -2623,7 +2597,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. href = href.substring(1, href.length() - 1);
found : @UpperBoundLiteral(1) int @@ -2634,7 +2608,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. href = href.substring(1, href.length() - 1);
found : @GTENegativeOne int @@ -2645,7 +2619,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. final String firstLetterCapitalized = descriptionString.substring(0, 1)
found : @UpperBoundLiteral(1) int @@ -2667,7 +2641,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/ChainedPropertyUtil.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. return variableExpression.substring(propertyStartIndex, propertyEndIndex);
found : @GTENegativeOne int @@ -2678,7 +2652,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. returnString = line.substring(indent, lastNonWhitespace);
found : int @@ -2689,7 +2663,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. returnString = line.substring(indent, lastNonWhitespace);
found : int @@ -2700,7 +2674,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. returnString = line.substring(indent, lastNonWhitespace);
found : int @@ -2711,7 +2685,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. final boolean negative = txt.charAt(0) == '-';
found : @UpperBoundLiteral(0) int @@ -2722,7 +2696,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseInt. + incompatible argument for parameter radix of Integer.parseInt. result = Integer.parseInt(txt, radix);
found : int @@ -2733,7 +2707,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseInt. + incompatible argument for parameter radix of Integer.parseInt. result = Integer.parseInt(txt, radix);
found : int @@ -2744,8 +2718,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseLong. - result = Long.parseLong(txt, radix); + incompatible argument for parameter radix of Integer.parseUnsignedInt. + result = Integer.parseUnsignedInt(txt, radix);
found : int required: @IntRange(from=2, to=36) int @@ -2755,8 +2729,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseLong. - result = Long.parseLong(txt, radix); + incompatible argument for parameter radix of Integer.parseUnsignedInt. + result = Integer.parseUnsignedInt(txt, radix);
found : int required: @Positive int @@ -2766,8 +2740,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseUnsignedInt. - result = Integer.parseUnsignedInt(txt, radix); + incompatible argument for parameter radix of Long.parseLong. + result = Long.parseLong(txt, radix);
found : int required: @IntRange(from=2, to=36) int @@ -2777,8 +2751,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseUnsignedInt. - result = Integer.parseUnsignedInt(txt, radix); + incompatible argument for parameter radix of Long.parseLong. + result = Long.parseLong(txt, radix);
found : int required: @Positive int @@ -2788,7 +2762,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseUnsignedLong. + incompatible argument for parameter radix of Long.parseUnsignedLong. result = Long.parseUnsignedLong(txt, radix);
found : int @@ -2799,7 +2773,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseUnsignedLong. + incompatible argument for parameter radix of Long.parseUnsignedLong. result = Long.parseUnsignedLong(txt, radix);
found : int @@ -2810,7 +2784,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. .substring(lastIndexOfClasspathProtocol));
found : @LTEqLengthOf("com.puppycrawl.tools.checkstyle.utils.CommonUtil.CLASSPATH_URL_PROTOCOL") int @@ -2821,7 +2795,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. if (filename.charAt(0) == '/') {
found : @UpperBoundLiteral(0) int @@ -2832,7 +2806,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. isIdentifier = Character.isJavaIdentifierStart(str.charAt(0));
found : @UpperBoundLiteral(0) int @@ -2843,7 +2817,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter index of charAt. + incompatible argument for parameter index of String.charAt. if (!Character.isWhitespace(line.charAt(i))) {
found : int @@ -2854,7 +2828,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter index of codePointAt. + incompatible argument for parameter index of String.codePointAt. if (inputString.codePointAt(idx) == '\t') {
found : int @@ -2898,7 +2872,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/JavadocUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. return commentContent.getText().substring(1);
found : @UpperBoundLiteral(1) int @@ -3002,7 +2976,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.java argument - incompatible argument for parameter newLength of copyOf. + incompatible argument for parameter newLength of Arrays.copyOf. return Arrays.copyOf(array, length);
found : int @@ -3013,7 +2987,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/XpathUtil.java argument - incompatible argument for parameter beginIndex of substring. + incompatible argument for parameter beginIndex of String.substring. text = text.substring(1, text.length() - 1);
found : @UpperBoundLiteral(1) int @@ -3024,7 +2998,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/XpathUtil.java argument - incompatible argument for parameter bitIndex of get. + incompatible argument for parameter bitIndex of BitSet.get. return TOKEN_TYPES_WITH_TEXT_ATTRIBUTE.get(ast.getType());
found : int @@ -3035,7 +3009,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/XpathUtil.java argument - incompatible argument for parameter endIndex of substring. + incompatible argument for parameter endIndex of String.substring. text = text.substring(1, text.length() - 1);
found : @GTENegativeOne int diff --git a/config/checker-framework-suppressions/checker-methods-resource-fenum-suppressions.xml b/config/checker-framework-suppressions/checker-methods-resource-fenum-suppressions.xml index d7c958e1dfd..82730e9d43e 100644 --- a/config/checker-framework-suppressions/checker-methods-resource-fenum-suppressions.xml +++ b/config/checker-framework-suppressions/checker-methods-resource-fenum-suppressions.xml @@ -3,22 +3,22 @@ src/main/java/com/puppycrawl/tools/checkstyle/Main.java required.method.not.called - @MustCall method close may not have been invoked on out or any of its aliases. - final OutputStream out = getOutputStream(outputLocation); + @MustCall method close may not have been invoked on getOutputStream(options.outputPath) or any of its aliases. + listener = new XpathFileGeneratorAuditListener(getOutputStream(options.outputPath),
The type of object is: java.io.OutputStream. - Reason for going out of scope: possible exceptional exit due to format.createListener(out, closeOutputStreamOption) with exception type java.io.IOException + Reason for going out of scope: regular method exit
src/main/java/com/puppycrawl/tools/checkstyle/Main.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - listener = new XpathFileGeneratorAuditListener(getOutputStream(options.outputPath), + @MustCall method close may not have been invoked on out or any of its aliases. + final OutputStream out = getOutputStream(outputLocation);
The type of object is: java.io.OutputStream. - Reason for going out of scope: regular method exit + Reason for going out of scope: possible exceptional exit due to format.createListener(out, closeOutputStreamOption) with exception type java.io.IOException
@@ -47,19 +47,19 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on debug or any of its aliases. - final OutputStream debug = new LogOutputStream(this, Project.MSG_DEBUG); + @MustCall method close may not have been invoked on Files.newOutputStream(toFile.toPath()) or any of its aliases. + sarifLogger = new SarifLogger(Files.newOutputStream(toFile.toPath()),
The type of object is: java.io.OutputStream. - Reason for going out of scope: regular method exit + Reason for going out of scope: possible exceptional exit due to new SarifLogger(Files.newOutputStream(toFile.toPath()), OutputStreamOptions.CLOSE) with exception type java.io.IOException
src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on err or any of its aliases. - final OutputStream err = new LogOutputStream(this, Project.MSG_ERR); + @MustCall method close may not have been invoked on Files.newOutputStream(toFile.toPath()) or any of its aliases. + xmlLogger = new XMLLogger(Files.newOutputStream(toFile.toPath()),
The type of object is: java.io.OutputStream. Reason for going out of scope: regular method exit @@ -69,8 +69,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on infoStream or any of its aliases. - final OutputStream infoStream = Files.newOutputStream(toFile.toPath()); + @MustCall method close may not have been invoked on debug or any of its aliases. + final OutputStream debug = new LogOutputStream(this, Project.MSG_DEBUG);
The type of object is: java.io.OutputStream. Reason for going out of scope: regular method exit @@ -80,19 +80,19 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - sarifLogger = new SarifLogger(Files.newOutputStream(toFile.toPath()), + @MustCall method close may not have been invoked on err or any of its aliases. + final OutputStream err = new LogOutputStream(this, Project.MSG_ERR);
The type of object is: java.io.OutputStream. - Reason for going out of scope: possible exceptional exit due to new SarifLogger(Files.newOutputStream(toFile.toPath()), OutputStreamOptions.CLOSE) with exception type java.io.IOException + Reason for going out of scope: regular method exit
src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - xmlLogger = new XMLLogger(Files.newOutputStream(toFile.toPath()), + @MustCall method close may not have been invoked on infoStream or any of its aliases. + final OutputStream infoStream = Files.newOutputStream(toFile.toPath());
The type of object is: java.io.OutputStream. Reason for going out of scope: regular method exit @@ -102,19 +102,19 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - sarifLogger = new SarifLogger(new LogOutputStream(task, Project.MSG_INFO), + @MustCall method close may not have been invoked on new LogOutputStream(task, Project.MSG_DEBUG) or any of its aliases. + new LogOutputStream(task, Project.MSG_DEBUG),
The type of object is: org.apache.tools.ant.taskdefs.LogOutputStream. - Reason for going out of scope: possible exceptional exit due to new SarifLogger(new LogOutputStream(task, Project.MSG_INFO), OutputStreamOptions.CLOSE) with exception type java.io.IOException + Reason for going out of scope: regular method exit
src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - new LogOutputStream(task, Project.MSG_DEBUG), + @MustCall method close may not have been invoked on new LogOutputStream(task, Project.MSG_ERR) or any of its aliases. + new LogOutputStream(task, Project.MSG_ERR),
The type of object is: org.apache.tools.ant.taskdefs.LogOutputStream. Reason for going out of scope: regular method exit @@ -124,18 +124,18 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - new LogOutputStream(task, Project.MSG_ERR), + @MustCall method close may not have been invoked on new LogOutputStream(task, Project.MSG_INFO) or any of its aliases. + sarifLogger = new SarifLogger(new LogOutputStream(task, Project.MSG_INFO),
The type of object is: org.apache.tools.ant.taskdefs.LogOutputStream. - Reason for going out of scope: regular method exit + Reason for going out of scope: possible exceptional exit due to new SarifLogger(new LogOutputStream(task, Project.MSG_INFO), OutputStreamOptions.CLOSE) with exception type java.io.IOException
src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on new LogOutputStream(task, Project.MSG_INFO) or any of its aliases. xmlLogger = new XMLLogger(new LogOutputStream(task, Project.MSG_INFO),
The type of object is: org.apache.tools.ant.taskdefs.LogOutputStream. @@ -154,21 +154,10 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java - return - incompatible types in return. - return resultHandler; -
- type of expression: @MustCallUnknown AbstractExpressionHandler - method return type: @MustCall AbstractExpressionHandler -
-
- src/main/java/com/puppycrawl/tools/checkstyle/gui/MainFrame.java argument - incompatible argument for parameter horizontalAlignment of JLabel. + incompatible argument for parameter horizontalAlignment of JLabel constructor. final JLabel modesLabel = new JLabel("Modes:", SwingConstants.RIGHT);
found : @SwingHorizontalOrientation int @@ -179,11 +168,11 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on XmlMetaReader.class.getResourceAsStream("/" + fileName) or any of its aliases. moduleDetails = read(XmlMetaReader.class.getResourceAsStream("/" + fileName),
The type of object is: java.io.InputStream. - Reason for going out of scope: regular method exit + Reason for going out of scope: possible exceptional exit due to throw new IllegalStateException("Problem to read all modules including third party if any. Problem detected at file: " + fileName, ex); with exception type java.lang.IllegalStateException
@@ -235,7 +224,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on new CustomPrintWriter(writer) or any of its aliases. super(new CustomPrintWriter(writer));
The type of object is: com.puppycrawl.tools.checkstyle.site.XdocsTemplateSink.CustomPrintWriter. @@ -243,21 +232,6 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.java - methodref.param - Incompatible parameter type for obj - .map(elementType::cast) -
- found : @FenumUnqualified Object - required: S extends @FenumTop Object - Consequence: method in @FenumUnqualified Class<T extends @FenumTop Object> - T extends @FenumTop Object cast(@FenumUnqualified Class<T extends @FenumTop Object> this, @FenumUnqualified Object p0) - is not a valid method reference for method in @FenumUnqualified Function<S extends @FenumTop Object, T extends @FenumTop Object> - T extends @FenumTop Object apply(@FenumUnqualified Function<S extends @FenumTop Object, T extends @FenumTop Object> this, S extends @FenumTop Object p0) -
-
- src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractNode.java required.method.not.called @@ -272,7 +246,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/DescendantIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on SingleNodeIterator.makeIterator(start) or any of its aliases. descendantEnum = SingleNodeIterator.makeIterator(start);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. @@ -283,7 +257,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/DescendantIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on queue.poll().iterateAxis(AxisInfo.CHILD) or any of its aliases. descendantEnum = queue.poll().iterateAxis(AxisInfo.CHILD);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. @@ -294,7 +268,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/DescendantIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on start.iterateAxis(AxisInfo.CHILD) or any of its aliases. descendantEnum = start.iterateAxis(AxisInfo.CHILD);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. @@ -305,8 +279,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/FollowingIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - ancestorEnum = start.iterateAxis(AxisInfo.ANCESTOR); + @MustCall method close may not have been invoked on parent.iterateAxis(AxisInfo.FOLLOWING_SIBLING) or any of its aliases. + siblingEnum = parent.iterateAxis(AxisInfo.FOLLOWING_SIBLING);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. Reason for going out of scope: regular method exit @@ -316,7 +290,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/FollowingIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on result.iterateAxis(AxisInfo.DESCENDANT) or any of its aliases. descendantEnum = result.iterateAxis(AxisInfo.DESCENDANT);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. @@ -327,8 +301,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/FollowingIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - siblingEnum = parent.iterateAxis(AxisInfo.FOLLOWING_SIBLING); + @MustCall method close may not have been invoked on start.iterateAxis(AxisInfo.ANCESTOR) or any of its aliases. + ancestorEnum = start.iterateAxis(AxisInfo.ANCESTOR);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. Reason for going out of scope: regular method exit @@ -338,7 +312,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/FollowingIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on start.iterateAxis(AxisInfo.FOLLOWING_SIBLING) or any of its aliases. siblingEnum = start.iterateAxis(AxisInfo.FOLLOWING_SIBLING);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. @@ -349,7 +323,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/PrecedingIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on new ReverseDescendantIterator(result) or any of its aliases. descendantEnum = new ReverseDescendantIterator(result);
The type of object is: com.puppycrawl.tools.checkstyle.xpath.iterators.ReverseDescendantIterator. @@ -360,8 +334,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/PrecedingIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - ancestorEnum = start.iterateAxis(AxisInfo.ANCESTOR); + @MustCall method close may not have been invoked on result.iterateAxis(AxisInfo.PRECEDING_SIBLING) or any of its aliases. + previousSiblingEnum = result.iterateAxis(AxisInfo.PRECEDING_SIBLING);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. Reason for going out of scope: regular method exit @@ -371,8 +345,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/PrecedingIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. - previousSiblingEnum = result.iterateAxis(AxisInfo.PRECEDING_SIBLING); + @MustCall method close may not have been invoked on start.iterateAxis(AxisInfo.ANCESTOR) or any of its aliases. + ancestorEnum = start.iterateAxis(AxisInfo.ANCESTOR);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. Reason for going out of scope: regular method exit @@ -382,7 +356,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/PrecedingIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on start.iterateAxis(AxisInfo.PRECEDING_SIBLING) or any of its aliases. previousSiblingEnum = start.iterateAxis(AxisInfo.PRECEDING_SIBLING);
The type of object is: net.sf.saxon.tree.iter.AxisIterator. @@ -393,7 +367,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/ReverseDescendantIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on queue.poll().iterateAxis(AxisInfo.CHILD) or any of its aliases. pushToStack(queue.poll().iterateAxis(AxisInfo.CHILD));
The type of object is: net.sf.saxon.tree.iter.AxisIterator. @@ -404,7 +378,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/ReverseDescendantIterator.java required.method.not.called - @MustCall method close may not have been invoked on temp-var or any of its aliases. + @MustCall method close may not have been invoked on start.iterateAxis(AxisInfo.CHILD) or any of its aliases. pushToStack(start.iterateAxis(AxisInfo.CHILD));
The type of object is: net.sf.saxon.tree.iter.AxisIterator. diff --git a/config/checker-framework-suppressions/checker-nullness-optional-interning-suppressions.xml b/config/checker-framework-suppressions/checker-nullness-optional-interning-suppressions.xml index 783ff170937..c3b40384deb 100644 --- a/config/checker-framework-suppressions/checker-nullness-optional-interning-suppressions.xml +++ b/config/checker-framework-suppressions/checker-nullness-optional-interning-suppressions.xml @@ -35,7 +35,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/Checker.java argument - incompatible argument for parameter args of Violation. + incompatible argument for parameter args of Violation constructor. new String[] {ioe.getMessage()}, null, getClass(), null));
found : @Initialized @Nullable String @Initialized @NonNull [] @@ -46,7 +46,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/Checker.java argument - incompatible argument for parameter customMessage of Violation. + incompatible argument for parameter customMessage of Violation constructor. new String[] {ioe.getMessage()}, null, getClass(), null));
found : null (NullType) @@ -57,7 +57,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/Checker.java argument - incompatible argument for parameter customMessage of Violation. + incompatible argument for parameter customMessage of Violation constructor. null, getClass(), null));
found : null (NullType) @@ -68,7 +68,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/Checker.java argument - incompatible argument for parameter moduleId of Violation. + incompatible argument for parameter moduleId of Violation constructor. new String[] {ioe.getMessage()}, null, getClass(), null));
found : null (NullType) @@ -79,7 +79,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/Checker.java argument - incompatible argument for parameter moduleId of Violation. + incompatible argument for parameter moduleId of Violation constructor. null, getClass(), null));
found : null (NullType) @@ -108,7 +108,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java argument - incompatible argument for parameter arg0 of add. + incompatible argument for parameter arg0 of Collection.add. fragments.add(null);
found : null (NullType) @@ -312,7 +312,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java argument - incompatible argument for parameter child of addChild. + incompatible argument for parameter child of DetailAstImpl.addChild. bop.addChild(descendantList.poll());
found : @Initialized @Nullable DetailAstImpl @@ -440,7 +440,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.java argument - incompatible argument for parameter parent of createJavadocNode. + incompatible argument for parameter parent of JavadocDetailNodeParser.createJavadocNode. final JavadocNodeImpl rootJavadocNode = createJavadocNode(parseTreeNode, null, -1);
found : null (NullType) @@ -555,7 +555,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/LocalizedMessage.java argument - incompatible argument for parameter loader of getBundle. + incompatible argument for parameter loader of ResourceBundle.getBundle. return ResourceBundle.getBundle(bundle, sLocale, sourceClass.getClassLoader(),
found : @Initialized @Nullable ClassLoader @@ -588,7 +588,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/Main.java argument - incompatible argument for parameter moduleClassLoader of getRootModule. + incompatible argument for parameter moduleClassLoader of Main.getRootModule. final RootModule rootModule = getRootModule(config.getName(), moduleClassLoader);
found : @Initialized @Nullable ClassLoader @@ -694,7 +694,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java argument - incompatible argument for parameter arg0 of contains. + incompatible argument for parameter arg0 of Set.contains. if (packageNames.contains(null)) {
found : null (NullType) @@ -705,7 +705,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java argument - incompatible argument for parameter args of LocalizedMessage. + incompatible argument for parameter args of LocalizedMessage constructor. UNABLE_TO_INSTANTIATE_EXCEPTION_MESSAGE, name, attemptedNames);
found : @Initialized @Nullable String @@ -727,21 +727,6 @@ public PackageObjectFactory(String packageName, ClassLoader moduleClassLoader) { - - src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java - methodref.return - Incompatible return type - Class::getCanonicalName, -
- found : @Initialized @Nullable String - required: @Initialized @NonNull String - Consequence: method in @Initialized @NonNull Class</*INFERENCE FAILED for:*/ ? extends @Initialized @NonNull Object> - @Initialized @Nullable String getCanonicalName(@Initialized @NonNull Class</*INFERENCE FAILED for:*/ ? extends @Initialized @NonNull Object> this) - is not a valid method reference for method in @Initialized @NonNull Function</*INFERENCE FAILED for:*/ ? extends @Initialized @Nullable Object, @Initialized @NonNull String> - @Initialized @NonNull String apply(@Initialized @NonNull Function</*INFERENCE FAILED for:*/ ? extends @Initialized @Nullable Object, @Initialized @NonNull String> this, /*INFERENCE FAILED for:*/ ? extends @Initialized @Nullable Object p0) -
-
- src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java return @@ -847,7 +832,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/SuppressionsStringPrinter.java argument - incompatible argument for parameter s of parseInt. + incompatible argument for parameter s of Integer.parseInt. final int columnNumber = Integer.parseInt(matcher.group(2));
found : @Initialized @Nullable String @@ -858,7 +843,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/SuppressionsStringPrinter.java argument - incompatible argument for parameter s of parseInt. + incompatible argument for parameter s of Integer.parseInt. final int lineNumber = Integer.parseInt(matcher.group(1));
found : @Initialized @Nullable String @@ -898,7 +883,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java argument - incompatible argument for parameter messages of writeFileMessages. + incompatible argument for parameter messages of XMLLogger.writeFileMessages. writeFileMessages(fileName, messages);
found : @Initialized @Nullable FileMessages @@ -916,7 +901,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java argument - incompatible argument for parameter byteStream of InputSource. + incompatible argument for parameter byteStream of InputSource constructor. inputSource = new InputSource(dtdIs);
found : @Initialized @Nullable InputStream @@ -927,7 +912,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java argument - incompatible argument for parameter handler of createXmlReader. + incompatible argument for parameter handler of XmlLoader.createXmlReader. parser = createXmlReader(this);
found : @UnderInitialization(org.xml.sax.helpers.DefaultHandler.class) @NonNull XmlLoader @@ -982,7 +967,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java argument - incompatible argument for parameter checkstyleVersion of realExecute. + incompatible argument for parameter checkstyleVersion of CheckstyleAntTask.realExecute. realExecute(version);
found : @Initialized @Nullable String @@ -993,7 +978,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java argument - incompatible argument for parameter moduleClassLoader of PackageObjectFactory. + incompatible argument for parameter moduleClassLoader of PackageObjectFactory constructor. Checker.class.getPackage().getName() + ".", moduleClassLoader);
found : @Initialized @Nullable ClassLoader @@ -1004,7 +989,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java argument - incompatible argument for parameter moduleClassLoader of setModuleClassLoader. + incompatible argument for parameter moduleClassLoader of RootModule.setModuleClassLoader. rootModule.setModuleClassLoader(moduleClassLoader);
found : @Initialized @Nullable ClassLoader @@ -1085,7 +1070,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractCheck.java argument - incompatible argument for parameter customMessage of Violation. + incompatible argument for parameter customMessage of Violation constructor. getCustomMessages().get(key)));
found : @Initialized @Nullable String @@ -1096,7 +1081,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractCheck.java argument - incompatible argument for parameter customMessage of Violation. + incompatible argument for parameter customMessage of Violation constructor. getCustomMessages().get(key)));
found : @Initialized @Nullable String @@ -1107,7 +1092,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractCheck.java argument - incompatible argument for parameter customMessage of Violation. + incompatible argument for parameter customMessage of Violation constructor. getCustomMessages().get(key)));
found : @Initialized @Nullable String @@ -1136,7 +1121,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.java argument - incompatible argument for parameter customMessage of Violation. + incompatible argument for parameter customMessage of Violation constructor. getCustomMessages().get(key)));
found : @Initialized @Nullable String @@ -1147,7 +1132,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.java argument - incompatible argument for parameter customMessage of Violation. + incompatible argument for parameter customMessage of Violation constructor. getCustomMessages().get(key)));
found : @Initialized @Nullable String @@ -1197,7 +1182,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/AuditEvent.java argument - incompatible argument for parameter fileName of AuditEvent. + incompatible argument for parameter fileName of AuditEvent constructor. this(source, null);
found : null (NullType) @@ -1208,7 +1193,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/api/AuditEvent.java argument - incompatible argument for parameter violation of AuditEvent. + incompatible argument for parameter violation of AuditEvent constructor. this(src, fileName, null);
found : null (NullType) @@ -1374,7 +1359,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java argument - incompatible argument for parameter args of log. + incompatible argument for parameter args of AbstractFileSetCheck.log. log(1, MSG_IO_EXCEPTION_KEY, file.getPath(), ex.getLocalizedMessage());
found : @Initialized @Nullable String @@ -1476,7 +1461,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java argument - incompatible argument for parameter args of Violation. + incompatible argument for parameter args of Violation constructor. args,
found : @Initialized @NonNull String @Initialized @Nullable [] @@ -1487,7 +1472,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java argument - incompatible argument for parameter customMessage of Violation. + incompatible argument for parameter customMessage of Violation constructor. getClass(), null);
found : null (NullType) @@ -1498,7 +1483,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java argument - incompatible argument for parameter languageCode of getMissingFileName. + incompatible argument for parameter languageCode of TranslationCheck.getMissingFileName. getMissingFileName(bundle, null)
found : null (NullType) @@ -1531,7 +1516,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/UncommentedMainCheck.java argument - incompatible argument for parameter ast of createFullIdent. + incompatible argument for parameter ast of FullIdent.createFullIdent. packageName = FullIdent.createFullIdent(null);
found : null (NullType) @@ -1556,7 +1541,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/UniquePropertiesCheck.java argument - incompatible argument for parameter args of log. + incompatible argument for parameter args of AbstractFileSetCheck.log. ex.getLocalizedMessage());
found : @Initialized @Nullable String @@ -1585,7 +1570,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java argument - incompatible argument for parameter nextToken of Details. + incompatible argument for parameter nextToken of Details constructor. return new Details(lcurly, rcurly, nextToken, true);
found : @Initialized @Nullable DetailAST @@ -1596,7 +1581,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java argument - incompatible argument for parameter rcurly of Details. + incompatible argument for parameter rcurly of Details constructor. return new Details(lcurly, rcurly, getNextToken(ast), true);
found : @Initialized @Nullable DetailAST @@ -1607,7 +1592,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java argument - incompatible argument for parameter rcurly of Details. + incompatible argument for parameter rcurly of Details constructor. return new Details(lcurly, rcurly, nextToken, false);
found : @Initialized @Nullable DetailAST @@ -1618,7 +1603,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java argument - incompatible argument for parameter rcurly of Details. + incompatible argument for parameter rcurly of Details constructor. return new Details(lcurly, rcurly, nextToken, shouldCheckLastRcurly);
found : @Initialized @Nullable DetailAST @@ -1629,7 +1614,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java argument - incompatible argument for parameter rcurly of Details. + incompatible argument for parameter rcurly of Details constructor. return new Details(lcurly, rcurly, nextToken, true);
found : @Initialized @Nullable DetailAST @@ -1651,7 +1636,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/DeclarationOrderCheck.java argument - incompatible argument for parameter state of processModifiersState. + incompatible argument for parameter state of DeclarationOrderCheck.processModifiersState. final boolean isStateValid = processModifiersState(ast, state);
found : @Initialized @Nullable ScopeState @@ -1690,7 +1675,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/EqualsAvoidNullCheck.java argument - incompatible argument for parameter parent of FieldFrame. + incompatible argument for parameter parent of FieldFrame constructor. currentFrame = new FieldFrame(null);
found : null (NullType) @@ -1881,7 +1866,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.java argument - incompatible argument for parameter frameName of FieldFrame. + incompatible argument for parameter frameName of FieldFrame constructor. final FieldFrame newFrame = new FieldFrame(frame, isStaticInnerType, frameName);
found : @Initialized @Nullable String @@ -1892,7 +1877,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.java argument - incompatible argument for parameter frameName of FieldFrame. + incompatible argument for parameter frameName of FieldFrame constructor. frame = new FieldFrame(null, true, null);
found : null (NullType) @@ -1903,7 +1888,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.java argument - incompatible argument for parameter parent of FieldFrame. + incompatible argument for parameter parent of FieldFrame constructor. frame = new FieldFrame(null, true, null);
found : null (NullType) @@ -2054,7 +2039,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter arg0 of push. + incompatible argument for parameter arg0 of Deque.push. current.push(frames.get(ast));
found : @Initialized @Nullable AbstractFrame @@ -2065,7 +2050,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter arg0 of push. + incompatible argument for parameter arg0 of Deque.push. current.push(frames.get(ast));
found : @Initialized @Nullable AbstractFrame @@ -2076,7 +2061,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter arg1 of put. + incompatible argument for parameter arg1 of Map.put. frames.put(ast, frameStack.poll());
found : @Initialized @Nullable AbstractFrame @@ -2087,7 +2072,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter arg1 of put. + incompatible argument for parameter arg1 of Map.put. frames.put(ast, frameStack.poll());
found : @Initialized @Nullable AbstractFrame @@ -2098,7 +2083,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter frame of collectMethodDeclarations. + incompatible argument for parameter frame of RequireThisCheck.collectMethodDeclarations. collectMethodDeclarations(frameStack, ast, frame);
found : @Initialized @Nullable AbstractFrame @@ -2109,7 +2094,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter frame of collectVariableDeclarations. + incompatible argument for parameter frame of RequireThisCheck.collectVariableDeclarations. collectVariableDeclarations(ast, frame);
found : @Initialized @Nullable AbstractFrame @@ -2120,7 +2105,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter frame of findFrame. + incompatible argument for parameter frame of RequireThisCheck.findFrame. frame = findFrame(frame, name, lookForMethod);
found : @Initialized @Nullable AbstractFrame @@ -2131,7 +2116,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter frame of findFrame. + incompatible argument for parameter frame of RequireThisCheck.findFrame. return findFrame(current.peek(), name, lookForMethod);
found : @Initialized @Nullable AbstractFrame @@ -2142,7 +2127,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter ident of ClassFrame. + incompatible argument for parameter ident of ClassFrame constructor. super(parent, null);
found : null (NullType) @@ -2153,7 +2138,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter parent of AnonymousClassFrame. + incompatible argument for parameter parent of AnonymousClassFrame constructor. frameStack.addFirst(new AnonymousClassFrame(frame,
found : @Initialized @Nullable AbstractFrame @@ -2164,7 +2149,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter parent of BlockFrame. + incompatible argument for parameter parent of BlockFrame constructor. frameStack.addFirst(new BlockFrame(frame, ast));
found : @Initialized @Nullable AbstractFrame @@ -2175,7 +2160,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter parent of CatchFrame. + incompatible argument for parameter parent of CatchFrame constructor. final AbstractFrame catchFrame = new CatchFrame(frame, ast);
found : @Initialized @Nullable AbstractFrame @@ -2186,7 +2171,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter parent of ClassFrame. + incompatible argument for parameter parent of ClassFrame constructor. frameStack.addFirst(new ClassFrame(frame, classFrameNameIdent));
found : @Initialized @Nullable AbstractFrame @@ -2197,7 +2182,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter parent of ConstructorFrame. + incompatible argument for parameter parent of ConstructorFrame constructor. frameStack.addFirst(new ConstructorFrame(frame, ctorFrameNameIdent));
found : @Initialized @Nullable AbstractFrame @@ -2208,7 +2193,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter parent of ForFrame. + incompatible argument for parameter parent of ForFrame constructor. final AbstractFrame forFrame = new ForFrame(frame, ast);
found : @Initialized @Nullable AbstractFrame @@ -2219,7 +2204,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.java argument - incompatible argument for parameter parent of TryWithResourcesFrame. + incompatible argument for parameter parent of TryWithResourcesFrame constructor. frameStack.addFirst(new TryWithResourcesFrame(frame, ast));
found : @Initialized @Nullable AbstractFrame @@ -2369,7 +2354,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.java argument - incompatible argument for parameter arg1 of put. + incompatible argument for parameter arg1 of Map.put. anonInnerAstToTypeDeclDesc.put(literalNewAst, typeDeclarations.peek());
found : @Initialized @Nullable TypeDeclDesc @@ -2380,7 +2365,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.java argument - incompatible argument for parameter outerClassQualifiedName of getQualifiedTypeDeclarationName. + incompatible argument for parameter outerClassQualifiedName of CheckUtil.getQualifiedTypeDeclarationName. .getQualifiedTypeDeclarationName(packageName, outerClassQualifiedName, className);
found : @Initialized @Nullable String @@ -2391,7 +2376,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.java argument - incompatible argument for parameter scope of VariableDesc. + incompatible argument for parameter scope of VariableDesc constructor. this(name, null, null);
found : null (NullType) @@ -2402,7 +2387,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.java argument - incompatible argument for parameter typeAst of VariableDesc. + incompatible argument for parameter typeAst of VariableDesc constructor. this(name, null, null);
found : null (NullType) @@ -2413,7 +2398,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.java argument - incompatible argument for parameter typeAst of VariableDesc. + incompatible argument for parameter typeAst of VariableDesc constructor. this(name, null, scope);
found : null (NullType) @@ -2555,7 +2540,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.java argument - incompatible argument for parameter key of SimpleEntry. + incompatible argument for parameter key of SimpleEntry constructor. return new SimpleEntry<>(variableUsageAst, dist);
found : @Initialized @Nullable DetailAST @@ -2566,7 +2551,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.java argument - incompatible argument for parameter key of SimpleEntry. + incompatible argument for parameter key of SimpleEntry constructor. return new SimpleEntry<>(variableUsageAst, dist);
found : @Initialized @Nullable DetailAST @@ -2663,7 +2648,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/design/FinalClassCheck.java argument - incompatible argument for parameter outerClassQualifiedName of getQualifiedTypeDeclarationName. + incompatible argument for parameter outerClassQualifiedName of CheckUtil.getQualifiedTypeDeclarationName. outerTypeDeclarationQualifiedName,
found : @Initialized @Nullable String @@ -2727,7 +2712,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/design/OneTopLevelClassCheck.java argument - incompatible argument for parameter typeDef of isPublic. + incompatible argument for parameter typeDef of OneTopLevelClassCheck.isPublic. if (publicTypeFound && !isPublic(firstType)) {
found : @Initialized @Nullable DetailAST @@ -2780,7 +2765,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java argument - incompatible argument for parameter previousImport of isAlphabeticalOrderBroken. + incompatible argument for parameter previousImport of CustomImportOrderCheck.isAlphabeticalOrderBroken. if (isAlphabeticalOrderBroken(previousImportFromCurrentGroup, fullImportIdent)) {
found : @Initialized @Nullable String @@ -2791,7 +2776,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java argument - incompatible argument for parameter previousImport of validateExtraEmptyLine. + incompatible argument for parameter previousImport of CustomImportOrderCheck.validateExtraEmptyLine. validateExtraEmptyLine(previousImportObjectFromCurrentGroup,
found : @Initialized @Nullable ImportDetails @@ -2802,7 +2787,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java argument - incompatible argument for parameter previousImport of validateMissedEmptyLine. + incompatible argument for parameter previousImport of CustomImportOrderCheck.validateMissedEmptyLine. validateMissedEmptyLine(previousImportObjectFromCurrentGroup,
found : @Initialized @Nullable ImportDetails @@ -2888,7 +2873,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/ImportControlLoader.java argument - incompatible argument for parameter parent of FileImportControl. + incompatible argument for parameter parent of FileImportControl constructor. final AbstractImportControl importControl = new FileImportControl(parentImportControl,
found : @Initialized @Nullable PkgImportControl @@ -2899,7 +2884,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/ImportControlLoader.java argument - incompatible argument for parameter parent of PkgImportControl. + incompatible argument for parameter parent of PkgImportControl constructor. final AbstractImportControl importControl = new PkgImportControl(parentImportControl,
found : @Initialized @Nullable PkgImportControl @@ -2949,7 +2934,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/PkgImportControl.java argument - incompatible argument for parameter parent of AbstractImportControl. + incompatible argument for parameter parent of AbstractImportControl constructor. super(null, strategyOnMismatch);
found : null (NullType) @@ -3033,7 +3018,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/UnusedImportsCheck.java argument - incompatible argument for parameter parent of Frame. + incompatible argument for parameter parent of Frame constructor. return new Frame(null);
found : null (NullType) @@ -3044,7 +3029,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/UnusedImportsCheck.java argument - incompatible argument for parameter type of topLevelType. + incompatible argument for parameter type of UnusedImportsCheck.topLevelType. references.add(topLevelType(matcher.group(1)));
found : @Initialized @Nullable String @@ -3210,7 +3195,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java argument - incompatible argument for parameter constructor of invokeConstructor. + incompatible argument for parameter constructor of CommonUtil.invokeConstructor. handlerCtor, indentCheck, ast, parent);
found : @Initialized @Nullable Constructor<capture extends @Initialized @Nullable Object> @@ -3650,7 +3635,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java type.argument - incompatible type argument for type parameter T extends Object of invokeConstructor. + incompatible type argument for type parameter T extends Object of CommonUtil.invokeConstructor. resultHandler = (AbstractExpressionHandler) CommonUtil.invokeConstructor(
found : capture[ extends @UnknownKeyFor Object super @KeyForBottom Void] @@ -3661,7 +3646,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/IndentationCheck.java argument - incompatible argument for parameter instance of LineWrappingHandler. + incompatible argument for parameter instance of LineWrappingHandler constructor. private final LineWrappingHandler lineWrappingHandler = new LineWrappingHandler(this);
found : @UnderInitialization(com.puppycrawl.tools.checkstyle.api.AbstractCheck.class) @NonNull IndentationCheck @@ -3672,7 +3657,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/IndentationCheck.java argument - incompatible argument for parameter parent of getHandler. + incompatible argument for parameter parent of HandlerFactory.getHandler. handlers.peek());
found : @Initialized @Nullable AbstractExpressionHandler @@ -3737,7 +3722,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/PrimordialHandler.java argument - incompatible argument for parameter expr of AbstractExpressionHandler. + incompatible argument for parameter expr of AbstractExpressionHandler constructor. super(indentCheck, null, null, null);
found : null (NullType) @@ -3748,7 +3733,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/PrimordialHandler.java argument - incompatible argument for parameter parent of AbstractExpressionHandler. + incompatible argument for parameter parent of AbstractExpressionHandler constructor. super(indentCheck, null, null, null);
found : null (NullType) @@ -3759,7 +3744,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/PrimordialHandler.java argument - incompatible argument for parameter typeName of AbstractExpressionHandler. + incompatible argument for parameter typeName of AbstractExpressionHandler constructor. super(indentCheck, null, null, null);
found : null (NullType) @@ -3832,7 +3817,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocBlockTagLocationCheck.java argument - incompatible argument for parameter arg0 of contains. + incompatible argument for parameter arg0 of Set.contains. if (tags.contains(tagName)) {
found : @Initialized @Nullable String @@ -3861,7 +3846,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter firstArg of JavadocTag. + incompatible argument for parameter firstArg of JavadocTag constructor. javadocArgMatcher.group(2)));
found : @Initialized @Nullable String @@ -3872,7 +3857,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter firstArg of JavadocTag. + incompatible argument for parameter firstArg of JavadocTag constructor. javadocArgMissingDescriptionMatcher.group(2)));
found : @Initialized @Nullable String @@ -3883,7 +3868,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter tag of JavadocTag. + incompatible argument for parameter tag of JavadocTag constructor. javadocArgMissingDescriptionMatcher.group(1),
found : @Initialized @Nullable String @@ -3894,7 +3879,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter tag of JavadocTag. + incompatible argument for parameter tag of JavadocTag constructor. tags.add(new JavadocTag(currentLine, 0, noargCurlyMatcher.group(1)));
found : @Initialized @Nullable String @@ -3905,7 +3890,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter tag of JavadocTag. + incompatible argument for parameter tag of JavadocTag constructor. tags.add(new JavadocTag(currentLine, col, javadocArgMatcher.group(1),
found : @Initialized @Nullable String @@ -3916,7 +3901,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter tag of JavadocTag. + incompatible argument for parameter tag of JavadocTag constructor. tags.add(new JavadocTag(currentLine, col, javadocNoargMatcher.group(1)));
found : @Initialized @Nullable String @@ -3927,7 +3912,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter tag of JavadocTag. + incompatible argument for parameter tag of JavadocTag constructor. tags.add(new JavadocTag(tagLine, col, param1));
found : @Initialized @Nullable String @@ -4029,7 +4014,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocPackageCheck.java argument - incompatible argument for parameter arg0 of add. + incompatible argument for parameter arg0 of Set.add. final boolean isDirChecked = !directoriesChecked.add(dir);
found : @Initialized @Nullable File @@ -4058,7 +4043,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTag.java argument - incompatible argument for parameter firstArg of JavadocTag. + incompatible argument for parameter firstArg of JavadocTag constructor. this(line, column, tag, null);
found : null (NullType) @@ -4146,7 +4131,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java argument - incompatible argument for parameter javadocInlineTag of isInlineReturnTag. + incompatible argument for parameter javadocInlineTag of SummaryJavadocCheck.isInlineReturnTag. else if (inlineTag.isPresent() && isInlineReturnTag(inlineTagNode)) {
found : @Initialized @Nullable DetailNode @@ -4157,7 +4142,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java argument - incompatible argument for parameter javadocInlineTag of isSummaryTag. + incompatible argument for parameter javadocInlineTag of SummaryJavadocCheck.isSummaryTag. && isSummaryTag(inlineTagNode)
found : @Initialized @Nullable DetailNode @@ -4211,7 +4196,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/utils/BlockTagUtil.java argument - incompatible argument for parameter name of TagInfo. + incompatible argument for parameter name of TagInfo constructor. tags.add(new TagInfo(tagName, tagValue, position));
found : @Initialized @Nullable String @@ -4222,7 +4207,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/utils/InlineTagUtil.java argument - incompatible argument for parameter name of TagInfo. + incompatible argument for parameter name of TagInfo constructor. tags.add(new TagInfo(tagName, tagValue, position));
found : @Initialized @Nullable String @@ -4233,7 +4218,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/utils/InlineTagUtil.java argument - incompatible argument for parameter source of removeLeadingJavaDoc. + incompatible argument for parameter source of InlineTagUtil.removeLeadingJavaDoc. matchedTagValue = removeLeadingJavaDoc(matchedTagValue);
found : @Initialized @Nullable String @@ -4244,7 +4229,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/metrics/AbstractClassCouplingCheck.java argument - incompatible argument for parameter ast of ClassContext. + incompatible argument for parameter ast of ClassContext constructor. classesContexts.push(new ClassContext("", null));
found : null (NullType) @@ -4443,7 +4428,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/regexp/RegexpSinglelineJavaCheck.java argument - incompatible argument for parameter val of suppressor. + incompatible argument for parameter val of Builder.suppressor. .suppressor(suppressor)
found : @Initialized @Nullable MatchSuppressor @@ -4461,7 +4446,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/sizes/ExecutableStatementCountCheck.java argument - incompatible argument for parameter ast of Context. + incompatible argument for parameter ast of Context constructor. context = new Context(null);
found : null (NullType) @@ -4748,7 +4733,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java argument - incompatible argument for parameter text of addTag. + incompatible argument for parameter text of SuppressWithNearbyCommentFilter.addTag. addTag(matcher.group(0), line);
found : @Initialized @Nullable String @@ -4835,7 +4820,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.java argument - incompatible argument for parameter text of Suppression. + incompatible argument for parameter text of Suppression constructor. suppression = new Suppression(text, lineNo + 1, this);
found : @Initialized @Nullable String @@ -4889,7 +4874,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.java argument - incompatible argument for parameter text of Suppression. + incompatible argument for parameter text of Suppression constructor. suppression = new Suppression(offCommentMatcher.group(0),
found : @Initialized @Nullable String @@ -4900,7 +4885,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.java argument - incompatible argument for parameter text of Suppression. + incompatible argument for parameter text of Suppression constructor. suppression = new Suppression(onCommentMatcher.group(0),
found : @Initialized @Nullable String @@ -4984,7 +4969,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java argument - incompatible argument for parameter text of addTag. + incompatible argument for parameter text of SuppressionCommentFilter.addTag. addTag(offMatcher.group(0), line, column, TagType.OFF);
found : @Initialized @Nullable String @@ -4995,7 +4980,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java argument - incompatible argument for parameter text of addTag. + incompatible argument for parameter text of SuppressionCommentFilter.addTag. addTag(onMatcher.group(0), line, column, TagType.ON);
found : @Initialized @Nullable String @@ -5246,7 +5231,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java argument - incompatible argument for parameter checks of XpathFilterElement. + incompatible argument for parameter checks of XpathFilterElement constructor. Optional.ofNullable(checks).map(CommonUtil::createPattern).orElse(null),
found : @Initialized @Nullable Pattern @@ -5257,7 +5242,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java argument - incompatible argument for parameter contextItem of createDynamicContext. + incompatible argument for parameter contextItem of XPathExpression.createDynamicContext. xpathExpression.createDynamicContext(rootNode);
found : @Initialized @Nullable RootNode @@ -5268,7 +5253,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java argument - incompatible argument for parameter files of XpathFilterElement. + incompatible argument for parameter files of XpathFilterElement constructor. this(Optional.ofNullable(files).map(Pattern::compile).orElse(null),
found : @Initialized @Nullable Pattern @@ -5279,7 +5264,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java argument - incompatible argument for parameter message of XpathFilterElement. + incompatible argument for parameter message of XpathFilterElement constructor. Optional.ofNullable(message).map(Pattern::compile).orElse(null),
found : @Initialized @Nullable Pattern @@ -5360,7 +5345,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/MainFrame.java argument - incompatible argument for parameter arg0 of getImage. + incompatible argument for parameter arg0 of Toolkit.getImage. setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrame.class.getResource(ICON)));
found : @Initialized @Nullable URL @@ -5371,7 +5356,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/MainFrame.java argument - incompatible argument for parameter event of actionPerformed. + incompatible argument for parameter event of ReloadAction.actionPerformed. reloadAction.actionPerformed(null);
found : null (NullType) @@ -5382,7 +5367,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/MainFrame.java argument - incompatible argument for parameter sourceFile of openFile. + incompatible argument for parameter sourceFile of MainFrame.openFile. openFile(file);
found : @Initialized @Nullable File @@ -5411,7 +5396,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/MainFrameModel.java argument - incompatible argument for parameter parseTree of ParseTreeTableModel. + incompatible argument for parameter parseTree of ParseTreeTableModel constructor. parseTreeTableModel = new ParseTreeTableModel(null);
found : null (NullType) @@ -5440,7 +5425,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTableModel.java argument - incompatible argument for parameter childIndices of fireTreeStructureChanged. + incompatible argument for parameter childIndices of ParseTreeTableModel.fireTreeStructureChanged. fireTreeStructureChanged(this, path, null, (Object[]) null);
found : null (NullType) @@ -5451,7 +5436,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeTableModel.java argument - incompatible argument for parameter children of fireTreeStructureChanged. + incompatible argument for parameter children of ParseTreeTableModel.fireTreeStructureChanged. fireTreeStructureChanged(this, path, null, (Object[]) null);
found : @Initialized @NonNull Object @FBCBottom @Nullable [] @@ -5502,7 +5487,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/TreeTable.java argument - incompatible argument for parameter font of getFontMetrics. + incompatible argument for parameter font of JComponent.getFontMetrics. final FontMetrics fontMetrics = getFontMetrics(getFont());
found : @Initialized @Nullable Font @@ -5513,7 +5498,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/TreeTable.java argument - incompatible argument for parameter jTreeTable of ListToTreeSelectionModelWrapper. + incompatible argument for parameter jTreeTable of ListToTreeSelectionModelWrapper constructor. ListToTreeSelectionModelWrapper(this);
found : @UnderInitialization(javax.swing.JTable.class) @NonNull TreeTable @@ -5524,7 +5509,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/TreeTable.java argument - incompatible argument for parameter selectionModel of setSelectionModel. + incompatible argument for parameter selectionModel of JTree.setSelectionModel. tree.setSelectionModel(selectionWrapper);
found : @UnderInitialization(com.puppycrawl.tools.checkstyle.gui.ListToTreeSelectionModelWrapper.class) @NonNull ListToTreeSelectionModelWrapper @@ -5535,7 +5520,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/gui/TreeTable.java argument - incompatible argument for parameter treeTable of TreeTableCellRenderer. + incompatible argument for parameter treeTable of TreeTableCellRenderer constructor. tree = new TreeTableCellRenderer(this, treeTableModel);
found : @UnderInitialization(javax.swing.JTable.class) @NonNull TreeTable @@ -5729,7 +5714,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java argument - incompatible argument for parameter arg0 of add. + incompatible argument for parameter arg0 of Set.add. tokens.add(matcher.group(0));
found : @Initialized @Nullable String @@ -5740,7 +5725,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java argument - incompatible argument for parameter nodeTag of getTextFromTag. + incompatible argument for parameter nodeTag of JavadocMetadataScraper.getTextFromTag. return getTextFromTag(tagNode);
found : @Initialized @Nullable DetailNode @@ -5762,28 +5747,6 @@ private DetailNode rootNode; - - src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java - method.invocation - call to <X>orElseThrow(java.util.function.Supplier<? extends X>) not allowed on the given receiver. - .orElseThrow(() -> { -
- found : @MaybePresent Optional</*INFERENCE FAILED for:*/ ? extends Object> - required: @Present Optional</*INFERENCE FAILED for:*/ ? extends Object> -
-
- - - src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java - method.invocation - call to <X>orElseThrow(java.util.function.Supplier<? extends X>) not allowed on the given receiver. - .orElseThrow(() -> { -
- found : @MaybePresent Optional</*INFERENCE FAILED for:*/ ? extends Object> - required: @Present Optional</*INFERENCE FAILED for:*/ ? extends Object> -
-
- src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java return @@ -5798,7 +5761,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/MetadataGeneratorUtil.java argument - incompatible argument for parameter moduleClassLoader of setModuleClassLoader. + incompatible argument for parameter moduleClassLoader of Checker.setModuleClassLoader. checker.setModuleClassLoader(Checker.class.getClassLoader());
found : @Initialized @Nullable ClassLoader @@ -5879,8 +5842,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.java argument - incompatible argument for parameter description of setDescription. - .get(0).getFirstChild().getNodeValue()); + incompatible argument for parameter description of ModuleDetails.setDescription. + .getFirstChild().getNodeValue());
found : @Initialized @Nullable String required: @Initialized @NonNull String @@ -5890,8 +5853,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.java argument - incompatible argument for parameter description of setDescription. - .getFirstChild().getNodeValue()); + incompatible argument for parameter description of ModulePropertyDetails.setDescription. + .get(0).getFirstChild().getNodeValue());
found : @Initialized @Nullable String required: @Initialized @NonNull String @@ -5901,7 +5864,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.java argument - incompatible argument for parameter element of getAttributeValue. + incompatible argument for parameter element of XmlMetaReader.getAttributeValue. listContent.add(getAttributeValue((Element) nodeList.item(j), attribute));
found : @Initialized @Nullable Element @@ -5912,7 +5875,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.java argument - incompatible argument for parameter element of getAttributeValue. + incompatible argument for parameter element of XmlMetaReader.getAttributeValue. propertyDetails.setName(getAttributeValue(prop, XML_TAG_NAME));
found : @Initialized @Nullable Element @@ -5923,7 +5886,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.java argument - incompatible argument for parameter moduleMetadataStream of read. + incompatible argument for parameter moduleMetadataStream of XmlMetaReader.read. moduleDetails = read(XmlMetaReader.class.getResourceAsStream("/" + fileName),
found : @Initialized @Nullable InputStream @@ -6009,7 +5972,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/PropertiesMacro.java argument - incompatible argument for parameter justification of tableRows. + incompatible argument for parameter justification of XdocSink.tableRows. sink.tableRows(null, false);
found : null (NullType) @@ -6020,7 +5983,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/PropertiesMacro.java argument - incompatible argument for parameter moduleJavadoc of writePropertyRow. + incompatible argument for parameter moduleJavadoc of PropertiesMacro.writePropertyRow. writePropertyRow(sink, property, propertyJavadoc, instance, currentModuleJavadoc);
found : @Initialized @Nullable DetailNode @@ -6031,7 +5994,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/PropertiesMacro.java argument - incompatible argument for parameter propertyJavadoc of writePropertyRow. + incompatible argument for parameter propertyJavadoc of PropertiesMacro.writePropertyRow. writePropertyRow(sink, property, propertyJavadoc, instance, currentModuleJavadoc);
found : @Initialized @Nullable DetailNode @@ -6042,7 +6005,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java argument - incompatible argument for parameter classLoader of getPackageNames. + incompatible argument for parameter classLoader of PackageNamesLoader.getPackageNames. final Set<String> packageNames = PackageNamesLoader.getPackageNames(cl);
found : @Initialized @Nullable ClassLoader @@ -6053,7 +6016,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java argument - incompatible argument for parameter message of MacroExecutionException. + incompatible argument for parameter message of MacroExecutionException constructor. throw new MacroExecutionException(exc.getMessage(), exc);
found : @Initialized @Nullable String @@ -6064,7 +6027,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java argument - incompatible argument for parameter moduleClassLoader of setModuleClassLoader. + incompatible argument for parameter moduleClassLoader of Checker.setModuleClassLoader. checker.setModuleClassLoader(Checker.class.getClassLoader());
found : @Initialized @Nullable ClassLoader @@ -6199,7 +6162,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateParser.java argument - incompatible argument for parameter arg0 of getAttributeValue. + incompatible argument for parameter arg0 of XmlPullParser.getAttributeValue. .getAttributeValue(null, Attribute.NAME.toString());
found : null (NullType) @@ -6210,7 +6173,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateParser.java argument - incompatible argument for parameter arg0 of getAttributeValue. + incompatible argument for parameter arg0 of XmlPullParser.getAttributeValue. .getAttributeValue(null, Attribute.VALUE.toString());
found : null (NullType) @@ -6221,7 +6184,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateParser.java argument - incompatible argument for parameter arg0 of getAttributeValue. + incompatible argument for parameter arg0 of XmlPullParser.getAttributeValue. macroName = parser.getAttributeValue(null, Attribute.NAME.toString());
found : null (NullType) @@ -6270,7 +6233,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/ChainedPropertyUtil.java argument - incompatible argument for parameter input of matcher. + incompatible argument for parameter input of Pattern.matcher. final Matcher matcher = PROPERTY_VARIABLE_PATTERN.matcher(propertyValue);
found : @Initialized @Nullable String @@ -6292,7 +6255,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter replacement of replaceAll. + incompatible argument for parameter replacement of String.replaceAll. result = result.replaceAll("\\$" + i, matcher.group(i));
found : @Initialized @Nullable String @@ -6398,7 +6361,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java argument - incompatible argument for parameter object of getIntFromField. + incompatible argument for parameter object of TokenUtil.getIntFromField. Field::getName, fld -> getIntFromField(fld, null))
found : null (NullType) @@ -6435,7 +6398,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractElementNode.java argument - incompatible argument for parameter name of AttributeNode. + incompatible argument for parameter name of AttributeNode constructor. private static final AttributeNode ATTRIBUTE_NODE_UNINITIALIZED = new AttributeNode(null, null);
found : null (NullType) @@ -6446,7 +6409,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractElementNode.java argument - incompatible argument for parameter nodes of OfNodes. + incompatible argument for parameter nodes of OfNodes constructor. getChildren().toArray(EMPTY_ABSTRACT_NODE_ARRAY));
found : @Initialized @Nullable AbstractNode @Initialized @NonNull [] @@ -6457,7 +6420,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractElementNode.java argument - incompatible argument for parameter nodes of OfNodes. + incompatible argument for parameter nodes of OfNodes constructor. getFollowingSiblings().toArray(EMPTY_ABSTRACT_NODE_ARRAY));
found : @Initialized @Nullable AbstractNode @Initialized @NonNull [] @@ -6468,7 +6431,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractElementNode.java argument - incompatible argument for parameter value of AttributeNode. + incompatible argument for parameter value of AttributeNode constructor. private static final AttributeNode ATTRIBUTE_NODE_UNINITIALIZED = new AttributeNode(null, null);
found : null (NullType) @@ -6539,7 +6502,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractRootNode.java argument - incompatible argument for parameter nodes of OfNodes. + incompatible argument for parameter nodes of OfNodes constructor. getChildren().toArray(EMPTY_ABSTRACT_NODE_ARRAY));
found : @Initialized @Nullable AbstractNode @Initialized @NonNull [] @@ -6568,7 +6531,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/AttributeNode.java argument - incompatible argument for parameter treeInfo of AbstractNode. + incompatible argument for parameter treeInfo of AbstractNode constructor. super(null);
found : null (NullType) @@ -6590,7 +6553,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/xpath/XpathQueryGenerator.java argument - incompatible argument for parameter root of getXpathQuery. + incompatible argument for parameter root of XpathQueryGenerator.getXpathQuery. final StringBuilder xpathQueryBuilder = new StringBuilder(getXpathQuery(null, ast));
found : null (NullType) @@ -6749,6 +6712,17 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/ReverseListIterator.java + argument + incompatible argument for parameter c of ArrayList constructor. + this.items = new ArrayList<>(items); +
+ found : @UnknownKeyFor Collection<capture[ extends @UnknownKeyFor NodeInfo super @KeyForBottom Void]> + required: @UnknownKeyFor Collection<?[ extends capture[ extends @UnknownKeyFor NodeInfo super @UnknownKeyFor Void] super @KeyForBottom Void]> +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/ReverseListIterator.java assignment diff --git a/config/checker-framework-suppressions/checker-purity-value-returns-suppressions.xml b/config/checker-framework-suppressions/checker-purity-value-returns-suppressions.xml index 8a5aa865b9a..f12b4fbd5af 100644 --- a/config/checker-framework-suppressions/checker-purity-value-returns-suppressions.xml +++ b/config/checker-framework-suppressions/checker-purity-value-returns-suppressions.xml @@ -3,7 +3,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseInt. + incompatible argument for parameter radix of Integer.parseInt. result = Integer.parseInt(txt, radix);
found : int @@ -14,8 +14,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseLong. - result = Long.parseLong(txt, radix); + incompatible argument for parameter radix of Integer.parseUnsignedInt. + result = Integer.parseUnsignedInt(txt, radix);
found : int required: @IntRange(from=2, to=36) int @@ -25,8 +25,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseUnsignedInt. - result = Integer.parseUnsignedInt(txt, radix); + incompatible argument for parameter radix of Long.parseLong. + result = Long.parseLong(txt, radix);
found : int required: @IntRange(from=2, to=36) int @@ -36,7 +36,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java argument - incompatible argument for parameter radix of parseUnsignedLong. + incompatible argument for parameter radix of Long.parseUnsignedLong. result = Long.parseUnsignedLong(txt, radix);
found : int diff --git a/config/checker-framework-suppressions/checker-regex-property-key-compiler-message-suppressions.xml b/config/checker-framework-suppressions/checker-regex-property-key-compiler-message-suppressions.xml index 2a215464b36..8af03d9a016 100644 --- a/config/checker-framework-suppressions/checker-regex-property-key-compiler-message-suppressions.xml +++ b/config/checker-framework-suppressions/checker-regex-property-key-compiler-message-suppressions.xml @@ -3,7 +3,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/LocalizedMessage.java argument - incompatible argument for parameter key of getString. + incompatible argument for parameter key of ResourceBundle.getString. final String pattern = resourceBundle.getString(key);
found : @UnknownPropertyKey String @@ -14,7 +14,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/Main.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. .map(pattern -> Pattern.compile("^" + pattern + "$"))
found : String @@ -25,7 +25,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java argument - incompatible argument for parameter key of getProperty. + incompatible argument for parameter key of Properties.getProperty. final String cachedConfigHash = details.getProperty(CONFIG_HASH_KEY);
found : @UnknownPropertyKey String @@ -36,7 +36,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java argument - incompatible argument for parameter key of getProperty. + incompatible argument for parameter key of Properties.getProperty. final String cachedHashSum = details.getProperty(location);
found : @UnknownPropertyKey String @@ -47,7 +47,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java argument - incompatible argument for parameter key of getProperty. + incompatible argument for parameter key of Properties.getProperty. final String cachedHashSum = details.getProperty(resource.location);
found : @UnknownPropertyKey String @@ -58,7 +58,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java argument - incompatible argument for parameter key of getProperty. + incompatible argument for parameter key of Properties.getProperty. final String lastChecked = details.getProperty(uncheckedFileName);
found : @UnknownPropertyKey String @@ -69,7 +69,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java argument - incompatible argument for parameter key of getProperty. + incompatible argument for parameter key of Properties.getProperty. return details.getProperty(name);
found : @UnknownPropertyKey String @@ -80,7 +80,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java argument - incompatible argument for parameter key of setProperty. + incompatible argument for parameter key of Properties.setProperty. .forEach(resource -> details.setProperty(resource.location, resource.contentHashSum));
found : @UnknownPropertyKey String @@ -91,7 +91,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java argument - incompatible argument for parameter key of setProperty. + incompatible argument for parameter key of Properties.setProperty. details.setProperty(CONFIG_HASH_KEY, configHash);
found : @UnknownPropertyKey String @@ -102,7 +102,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java argument - incompatible argument for parameter key of setProperty. + incompatible argument for parameter key of Properties.setProperty. details.setProperty(checkedFileName, Long.toString(timestamp));
found : @UnknownPropertyKey String @@ -113,7 +113,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java argument - incompatible argument for parameter key of setProperty. + incompatible argument for parameter key of Properties.setProperty. returnValue.setProperty(entry.getKey(), value);
found : @UnknownPropertyKey String @@ -124,7 +124,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java argument - incompatible argument for parameter key of setProperty. + incompatible argument for parameter key of Properties.setProperty. returnValue.setProperty(p.getKey(), p.getValue());
found : @UnknownPropertyKey String @@ -135,7 +135,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. + "|\""
found : String @@ -146,7 +146,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. return Pattern.compile(keyPatternString);
found : String @@ -157,7 +157,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java argument - incompatible argument for parameter regex of matches. + incompatible argument for parameter regex of Pattern.matches. if (Pattern.matches(fileNameRegexp, currentFile.getName())) {
found : String @@ -168,7 +168,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java argument - incompatible argument for parameter regex of replaceAll. + incompatible argument for parameter regex of String.replaceAll. return fileName.replaceAll(removePattern, "");
found : String @@ -179,7 +179,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/UniquePropertiesCheck.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. return Pattern.compile(keyPatternString);
found : String @@ -190,7 +190,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/design/MutableExceptionCheck.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. private Pattern extendedClassNameFormat = Pattern.compile(DEFAULT_FORMAT);
found : String @@ -201,7 +201,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/header/RegexpHeaderCheck.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. headerRegexps.add(Pattern.compile(line));
found : String @@ -212,7 +212,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/ClassImportRule.java argument - incompatible argument for parameter regex of matches. + incompatible argument for parameter regex of String.matches. classMatch = forImport.matches(className);
found : String @@ -223,7 +223,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/FileImportControl.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. return Pattern.compile(expression);
found : String @@ -234,7 +234,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderCheck.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. grp = Pattern.compile(pkg);
found : String @@ -245,7 +245,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/PkgImportControl.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. return Pattern.compile(expression + "(?:\\..*)?");
found : String @@ -256,7 +256,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/PkgImportControl.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. return Pattern.compile(expression);
found : String @@ -267,7 +267,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/PkgImportRule.java argument - incompatible argument for parameter regex of matches. + incompatible argument for parameter regex of String.matches. pkgMatch = !forImport.matches(pkgName + "\\..*\\..*");
found : String @@ -278,7 +278,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/PkgImportRule.java argument - incompatible argument for parameter regex of matches. + incompatible argument for parameter regex of String.matches. pkgMatch = forImport.matches(pkgName + "\\..*");
found : String @@ -373,7 +373,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. return Pattern.compile(formatValue, options);
found : String @@ -384,7 +384,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. checkRegexp = Pattern.compile(checks);
found : String @@ -395,7 +395,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. fileRegexp = Pattern.compile(files);
found : String @@ -406,7 +406,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. messageRegexp = Pattern.compile(message);
found : String @@ -417,7 +417,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. private Pattern commentFormat = Pattern.compile(DEFAULT_COMMENT_FORMAT);
found : String @@ -428,7 +428,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. tagCheckRegexp = Pattern.compile(format);
found : String @@ -439,7 +439,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. tagIdRegexp = Pattern.compile(format);
found : String @@ -450,7 +450,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. tagMessageRegexp = Pattern.compile(format);
found : String @@ -461,7 +461,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. eventIdRegexp = Pattern.compile(format);
found : String @@ -472,7 +472,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. eventMessageRegexp = Pattern.compile(format);
found : String @@ -483,7 +483,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. eventSourceRegexp = Pattern.compile(format);
found : String @@ -494,7 +494,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. private Pattern nearbyTextPattern = Pattern.compile(DEFAULT_NEARBY_TEXT_PATTERN);
found : String @@ -505,7 +505,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. eventIdRegexp = Pattern.compile(format);
found : String @@ -516,7 +516,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. eventMessageRegexp = Pattern.compile(format);
found : String @@ -527,7 +527,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. eventSourceRegexp = Pattern.compile(format);
found : String @@ -538,7 +538,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. private Pattern offCommentFormat = Pattern.compile(DEFAULT_OFF_FORMAT);
found : String @@ -549,7 +549,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. private Pattern onCommentFormat = Pattern.compile(DEFAULT_ON_FORMAT);
found : String @@ -560,7 +560,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. tagCheckRegexp = Pattern.compile(format);
found : String @@ -571,7 +571,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. tagIdRegexp = Pattern.compile(format);
found : String @@ -582,7 +582,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. tagMessageRegexp = Pattern.compile(format);
found : String @@ -593,7 +593,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionSingleFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. this.checks = Pattern.compile(checks);
found : String @@ -604,7 +604,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionXpathSingleFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. this.checks = Pattern.compile(checks);
found : String @@ -615,7 +615,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionXpathSingleFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. this.files = Pattern.compile(files);
found : String @@ -626,7 +626,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressionXpathSingleFilter.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. this.message = Pattern.compile(message);
found : String @@ -667,7 +667,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java argument - incompatible argument for parameter regex of matches. + incompatible argument for parameter regex of String.matches. .filter(path -> path.toString().matches(fileNamePattern))
found : String @@ -678,7 +678,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/ChainedPropertyUtil.java argument - incompatible argument for parameter key of getProperty. + incompatible argument for parameter key of Properties.getProperty. String propertyValue = properties.getProperty(propertyName);
found : @UnknownPropertyKey String @@ -689,7 +689,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/ChainedPropertyUtil.java argument - incompatible argument for parameter key of getProperty. + incompatible argument for parameter key of Properties.getProperty. properties.getProperty(unresolvedPropertyName);
found : @UnknownPropertyKey String @@ -700,7 +700,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/ChainedPropertyUtil.java argument - incompatible argument for parameter key of setProperty. + incompatible argument for parameter key of Properties.setProperty. properties.setProperty(propertyName, propertyValue);
found : @UnknownPropertyKey String @@ -711,7 +711,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. Pattern.compile(pattern);
found : String @@ -722,7 +722,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter regex of compile. + incompatible argument for parameter regex of Pattern.compile. return Pattern.compile(pattern, flags);
found : String @@ -733,7 +733,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/CommonUtil.java argument - incompatible argument for parameter regex of replaceAll. + incompatible argument for parameter regex of String.replaceAll. result = result.replaceAll("\\$" + i, matcher.group(i));
found : String @@ -751,7 +751,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java argument - incompatible argument for parameter key of getString. + incompatible argument for parameter key of ResourceBundle.getString. return bundle.getString(name);
found : @UnknownPropertyKey String diff --git a/config/checker-framework-suppressions/checker-signature-gui-units-init-suppressions.xml b/config/checker-framework-suppressions/checker-signature-gui-units-init-suppressions.xml index be21f291ec1..7f6f0874525 100644 --- a/config/checker-framework-suppressions/checker-signature-gui-units-init-suppressions.xml +++ b/config/checker-framework-suppressions/checker-signature-gui-units-init-suppressions.xml @@ -3,8 +3,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/LocalizedMessage.java argument - incompatible argument for parameter baseName of getBundle. - return ResourceBundle.getBundle(bundle, sLocale, sourceClass.getClassLoader(), + incompatible argument for parameter baseName of Control.toBundleName. + final String bundleName = toBundleName(baseName, locale);
found : @SignatureUnknown String required: @BinaryName String @@ -14,8 +14,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/LocalizedMessage.java argument - incompatible argument for parameter baseName of toBundleName. - final String bundleName = toBundleName(baseName, locale); + incompatible argument for parameter baseName of ResourceBundle.getBundle. + return ResourceBundle.getBundle(bundle, sLocale, sourceClass.getClassLoader(),
found : @SignatureUnknown String required: @BinaryName String @@ -25,7 +25,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java argument - incompatible argument for parameter name of forName. + incompatible argument for parameter name of Class.forName. clazz = Class.forName(className, true, moduleClassLoader);
found : @SignatureUnknown String diff --git a/pom.xml b/pom.xml index b87d36a0ec8..551d5ee0514 100644 --- a/pom.xml +++ b/pom.xml @@ -234,7 +234,7 @@ 3.4 1.2.0 2.23.0 - 3.27.0 + 3.41.0 1.12.0