diff --git a/.ci/check-performance-regression.sh b/.ci/check-performance-regression.sh new file mode 100755 index 00000000000..776bf6f4db1 --- /dev/null +++ b/.ci/check-performance-regression.sh @@ -0,0 +1,103 @@ +#!/bin/bash + +set -e + +# max difference tolerance in % +THRESHOLD_PERCENTAGE=10 +# baseline of execution time in seconds +BASELINE_SECONDS=415.72 + +# JDK version +JDK_VERSION=17 +# sample project path +SAMPLE_PROJECT="./.ci-temp/jdk$JDK_VERSION" +# suppression file +SUPPRESSION_FILE="./config/projects-to-test/openjdk$JDK_VERSION-excluded.files" +# config file +CONFIG_FILE="./config/benchmark-config.xml" + +# execute a command and time it +# $TEST_COMMAND: command being timed +time_command() { + # execute the command and time it + /usr/bin/time -o time.temp -q -f "%e" "$@" &>result.tmp + + cat time.temp +} + +# execute the benchmark a few times to calculate the average metrics +# $JAR_PATH: path of the jar file being benchmarked +execute_benchmark() { + local JAR_PATH=$1 + if [ -z "$JAR_PATH" ]; then + echo "Missing JAR_PATH as an argument." + exit 1 + fi + + local TOTAL_SECONDS=0 + local NUM_EXECUTIONS=3 + + [ ! -d "$SAMPLE_PROJECT" ] && + echo "Directory $SAMPLE_PROJECT DOES NOT exist." | exit 1 + + # add suppressions to config file + sed -i "/ /r $SUPPRESSION_FILE" \ + $CONFIG_FILE + + for ((i = 0; i < NUM_EXECUTIONS; i++)); do + local CMD=(java -jar "$JAR_PATH" -c "$CONFIG_FILE" \ + -x .git -x module-info.java "$SAMPLE_PROJECT") + local BENCHMARK=($(time_command "${CMD[@]}")) + TOTAL_SECONDS=$(echo "$TOTAL_SECONDS + $BENCHMARK" | bc) + done + + # average execution time in patch + local AVERAGE_IN_SECONDS=$(echo "scale=2; $TOTAL_SECONDS / $NUM_EXECUTIONS" | bc) + echo "$AVERAGE_IN_SECONDS" +} + +# compare baseline and patch benchmarks +# $EXECUTION_TIME_SECONDS execution time of the patch +compare_results() { + local EXECUTION_TIME_SECONDS=$1 + if [ -z "$EXECUTION_TIME_SECONDS" ]; then + echo "Missing EXECUTION_TIME_SECONDS as an argument." + exit 1 + fi + # Calculate percentage difference for execution time + local DEVIATION_IN_SECONDS=$(echo "scale=4; \ + ((${EXECUTION_TIME_SECONDS} - ${BASELINE_SECONDS}) / ${BASELINE_SECONDS}) * 100" | bc) + echo "Execution Time Difference: $DEVIATION_IN_SECONDS%" + + # Check if differences exceed the maximum allowed difference + if (( $(echo "$DEVIATION_IN_SECONDS > $THRESHOLD_PERCENTAGE" | bc -l) )); then + echo "Difference exceeds the maximum allowed difference (${DEVIATION_IN_SECONDS}% \ + > ${THRESHOLD_PERCENTAGE}%)!" + exit 1 + else + echo "Difference is within the maximum allowed difference (${DEVIATION_IN_SECONDS}% \ + <= ${THRESHOLD_PERCENTAGE}%)." + exit 0 + fi +} + +# package patch +mvn -e --no-transfer-progress -Passembly,no-validations package + +# start benchmark +echo "Benchmark launching..." +AVERAGE_IN_SECONDS="$(execute_benchmark "$(find "./target/" -type f -name "checkstyle-*-all.jar")")" + +# print the command execution result +echo "================ MOST RECENT COMMAND RESULT =================" +cat result.tmp + +echo "===================== BENCHMARK SUMMARY ====================" +echo "Execution Time Baseline: ${BASELINE_SECONDS} s" +echo "Average Execution Time: ${AVERAGE_IN_SECONDS} s" +echo "============================================================" + +# compare result with baseline +compare_results "$AVERAGE_IN_SECONDS" + +exit $? diff --git a/.ci/checker-framework.groovy b/.ci/checker-framework.groovy index d51c0782e1f..5aca6f8b8d1 100644 --- a/.ci/checker-framework.groovy +++ b/.ci/checker-framework.groovy @@ -127,7 +127,10 @@ private static List> getCheckerFrameworkErrors(final String profile checkerFrameworkLines.add(lineFromReader) lineFromReader = reader.readLine() } - process.waitFor() + int exitCode = process.waitFor() + if (exitCode != 0) { + throw new IllegalStateException("Maven process exited with error code: " + exitCode) + } } finally { reader.close() } diff --git a/.ci/codenarc.groovy b/.ci/codenarc.groovy index c0a8575d132..5ecd8db68d7 100644 --- a/.ci/codenarc.groovy +++ b/.ci/codenarc.groovy @@ -1,5 +1,5 @@ @Grapes( - @Grab(group='org.codenarc', module='CodeNarc', version='1.4') + @Grab(group='org.codenarc', module='CodeNarc', version='2.2.0') ) @GrabExclude('org.codehaus.groovy:groovy-xml') import java.lang.Object diff --git a/.ci/diff-report.sh b/.ci/diff-report.sh index 36e2efac305..b5860a8f0bb 100755 --- a/.ci/diff-report.sh +++ b/.ci/diff-report.sh @@ -95,6 +95,11 @@ parse-pr-description-text) NEW_MODULE_CONFIG_LINK=$(echo "$NEW_MODULE_CONFIG_PARAMETER" | sed -E 's/New module config: //') PATCH_CONFIG_LINK=$(echo "$PATCH_CONFIG_PARAMETER" | sed -E 's/Diff Regression patch config: //') REPORT_LABEL=$(echo "$REPORT_LABEL_PARAMETER" | sed -E 's/Report label: //') + # trim + PROJECTS_LINK=$(echo "$PROJECTS_LINK" | tr -d '[:space:]') + CONFIG_LINK=$(echo "$CONFIG_LINK" | tr -d '[:space:]') + NEW_MODULE_CONFIG_LINK=$(echo "$NEW_MODULE_CONFIG_LINK" | tr -d '[:space:]') + PATCH_CONFIG_LINK=$(echo "$PATCH_CONFIG_LINK" | tr -d '[:space:]') echo "URLs extracted from parameters:" echo "PROJECTS_LINK: '$PROJECTS_LINK'" diff --git a/.ci/generate-extra-site-links.sh b/.ci/generate-extra-site-links.sh index 3b934ed78bd..40d354e8a2c 100755 --- a/.ci/generate-extra-site-links.sh +++ b/.ci/generate-extra-site-links.sh @@ -18,12 +18,19 @@ checkForVariable "REPOSITORY_OWNER" echo "PR_NUMBER=$PR_NUMBER" echo "AWS_FOLDER_LINK=$AWS_FOLDER_LINK" -# Extract a list of the changed xdocs in the pull request. For example 'src/xdocs/config_misc.xml'. -CHANGED_XDOCS_PATHS=$(curl --fail-with-body -Ls \ +GITHUB_API_RESPONSE=$(curl --fail-with-body -Ls \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $GITHUB_TOKEN" \ - "https://api.github.com/repos/$REPOSITORY_OWNER/checkstyle/pulls/$PR_NUMBER/files?per_page=100" | - jq -r ".[] | .filename" | grep src/xdocs/ || true) + "https://api.github.com/repos/$REPOSITORY_OWNER/checkstyle/pulls/$PR_NUMBER/files?per_page=100") +echo "GITHUB_API_RESPONSE=$GITHUB_API_RESPONSE" + +# Extract a list of the changed xdocs in the pull request. For example 'src/xdocs/config_misc.xml'. +# We ignore template files and deleted files. +CHANGED_XDOCS_PATHS=$(echo "$GITHUB_API_RESPONSE" \ + | jq -r '.[] | select(.status != "removed") | .filename' \ + | grep src/xdocs/ \ + | grep -v '.*xml.template$' \ + || true) echo "CHANGED_XDOCS_PATHS=$CHANGED_XDOCS_PATHS" if [[ -z "$CHANGED_XDOCS_PATHS" ]]; then diff --git a/.ci/no-exception-test.sh b/.ci/no-exception-test.sh index 2e6ee11b6d3..29f08aeff4e 100755 --- a/.ci/no-exception-test.sh +++ b/.ci/no-exception-test.sh @@ -115,6 +115,28 @@ openjdk20-with-checks-nonjavadoc-error) removeFolderWithProtectedFiles contribution ;; +openjdk21-with-checks-nonjavadoc-error) + LOCAL_GIT_REPO=$(pwd) + BRANCH=$(git rev-parse --abbrev-ref HEAD) + checkout_from https://github.com/checkstyle/contribution + sed -i.'' 's/value=\"error\"/value=\"ignore\"/' \ + .ci-temp/contribution/checkstyle-tester/checks-nonjavadoc-error.xml + cd .ci-temp/contribution/checkstyle-tester + cp ../../../config/projects-to-test/openjdk-21-projects-to-test-on.config \ + openjdk-21-projects-to-test-on.config + sed -i '/ /r ../../../config/projects-to-test/openjdk21-excluded.files' \ + checks-nonjavadoc-error.xml + export MAVEN_OPTS="-Xmx2048m" + groovy ./diff.groovy --listOfProjects openjdk-21-projects-to-test-on.config \ + --mode single --allowExcludes \ + --patchConfig checks-nonjavadoc-error.xml \ + --localGitRepo "$LOCAL_GIT_REPO" \ + --patchBranch "$BRANCH" -xm "-Dcheckstyle.failsOnError=false" + + cd ../../ + removeFolderWithProtectedFiles contribution + ;; + no-exception-lucene-and-others-javadoc) CS_POM_VERSION="$(getCheckstylePomVersion)" BRANCH=$(git rev-parse --abbrev-ref HEAD) @@ -218,6 +240,24 @@ no-exception-samples-ant) removeFolderWithProtectedFiles checkstyle-samples ;; +no-exception-samples-gradle) + CS_POM_VERSION="$(getCheckstylePomVersion)" + echo 'CS_POM_VERSION='"${CS_POM_VERSION}" + mvn -e --no-transfer-progress -B install -Pno-validations + checkout_from https://github.com/sevntu-checkstyle/checkstyle-samples + cd .ci-temp/checkstyle-samples/gradle-project + + sed -i "s/\(project\.ext\.checkstyleVersion = \)'[0-9.]\+'/\\1'${CS_POM_VERSION}'/" \ + build.gradle + + echo "Checking gradle properties..." + ./gradlew properties + ./gradlew check + + cd ../.. + removeFolderWithProtectedFiles checkstyle-samples + ;; + *) echo "Unexpected argument: $1" diff --git a/.ci/pitest-survival-check-xml.groovy b/.ci/pitest-survival-check-xml.groovy index fa58dd33c25..d015cd9bb37 100644 --- a/.ci/pitest-survival-check-xml.groovy +++ b/.ci/pitest-survival-check-xml.groovy @@ -267,7 +267,7 @@ private static int printComparisonToConsole(Set survivingMutations, println 'No new surviving mutation(s) found.' } else if (survivingUnsuppressedMutations.isEmpty() - && !hasOnlyStableMutations(extraSuppressions)) { + && hasOnlyUnstableMutations(extraSuppressions)) { exitCode = 0 println 'No new surviving mutation(s) found.' } @@ -293,13 +293,13 @@ private static int printComparisonToConsole(Set survivingMutations, } /** - * Whether a set has only stable mutations. + * Whether a set has only unstable mutations. * * @param mutations A set of mutations - * @return {@code true} if a set has only stable mutations + * @return {@code true} if a set has only unstable mutations */ -private static boolean hasOnlyStableMutations(Set mutations) { - return mutations.every { !it.isUnstable() } +private static boolean hasOnlyUnstableMutations(Set mutations) { + return mutations.every { it.isUnstable() } } /** diff --git a/.ci/run-link-check-plugin.sh b/.ci/run-link-check-plugin.sh index 851c146c305..7de3aa985c4 100755 --- a/.ci/run-link-check-plugin.sh +++ b/.ci/run-link-check-plugin.sh @@ -15,7 +15,8 @@ OPTION=$1 echo "------------ grep of linkcheck.html--BEGIN" LINKCHECK_ERRORS=$(grep -E "doesn't exist|externalLink" target/site/linkcheck.html \ - | grep -v 'Read timed out' | sed 's/<\/table><\/td><\/tr>//g' || true) + | grep -v 'Read timed out' | sed 's/<\/table><\/td><\/tr>//g' \ + | sed 's///g' | sed 's/<\/i><\/td><\/tr>//g' | sed 's/<\/table><\/section>//g' || true) if [[ $OPTION == "--skip-external" ]]; then echo "Checking internal (checkstyle website) links only." @@ -25,11 +26,10 @@ else echo "$LINKCHECK_ERRORS" | sort > .ci-temp/linkcheck-errors-sorted.txt fi -sort config/linkcheck-suppressions.txt | sed 's/<\/table><\/td><\/tr>//g' \ - > .ci-temp/linkcheck-suppressions-sorted.txt +sort config/linkcheck-suppressions.txt > .ci-temp/linkcheck-suppressions-sorted.txt # Suppressions exist until https://github.com/checkstyle/checkstyle/issues/11572 -diff .ci-temp/linkcheck-suppressions-sorted.txt .ci-temp/linkcheck-errors-sorted.txt || true +diff -u .ci-temp/linkcheck-suppressions-sorted.txt .ci-temp/linkcheck-errors-sorted.txt || true echo "------------ grep of linkcheck.html--END" RESULT=$(diff -y --suppress-common-lines .ci-temp/linkcheck-suppressions-sorted.txt \ diff --git a/.ci/validation.cmd b/.ci/validation.cmd index 89e242f95ec..9b75db470b6 100644 --- a/.ci/validation.cmd +++ b/.ci/validation.cmd @@ -32,6 +32,19 @@ if "%OPTION%" == "site_without_verify" ( goto :END_CASE ) +if "%OPTION%" == "git_diff" ( + for /f "delims=" %%a in ('git status ^| findstr /c:"Changes not staged"') do set output=%%a + if defined output ( + echo Please clean up or update .gitattributes file. + echo Git status output: + echo Top 300 lines of diff: + call git diff | find /v /n "" | findstr /R "^\[[1-2]*[1-9]*[0-9]\]" + echo There should be no changes in git repository after any CI job/task + goto :ERROR + ) + goto :END_CASE +) + echo Unexpected argument %OPTION% SET ERRORLEVEL=-1 goto :END_CASE diff --git a/.ci/validation.sh b/.ci/validation.sh index da706869091..31394b483b7 100755 --- a/.ci/validation.sh +++ b/.ci/validation.sh @@ -18,6 +18,10 @@ addCheckstyleBundleToAntResolvers() { ivysettings.xml } +function list_tasks() { + cat "${0}" | sed -E -n 's/^([a-zA-Z0-9\-]*)\)$/\1/p' | sort +} + case $1 in all-sevntu-checks) @@ -135,47 +139,52 @@ test) test-de) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=de -Duser.country=DE -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=de -Duser.country=DE -Xms1024m -Xmx2048m' ;; test-es) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=es -Duser.country=ES -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=es -Duser.country=ES -Xms1024m -Xmx2048m' ;; test-fi) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=fi -Duser.country=FI -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=fi -Duser.country=FI -Xms1024m -Xmx2048m' ;; test-fr) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=fr -Duser.country=FR -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=fr -Duser.country=FR -Xms1024m -Xmx2048m' ;; test-zh) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=zh -Duser.country=CN -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=zh -Duser.country=CN -Xms1024m -Xmx2048m' ;; test-ja) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=ja -Duser.country=JP -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=ja -Duser.country=JP -Xms1024m -Xmx2048m' ;; test-pt) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=pt -Duser.country=PT -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=pt -Duser.country=PT -Xms1024m -Xmx2048m' ;; test-tr) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=tr -Duser.country=TR -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=tr -Duser.country=TR -Xms1024m -Xmx2048m' ;; test-ru) mvn -e --no-transfer-progress clean integration-test failsafe:verify \ - -DargLine='-Duser.language=ru -Duser.country=RU -Xms1024m -Xmx2048m' + -Dsurefire.options='-Duser.language=ru -Duser.country=RU -Xms1024m -Xmx2048m' + ;; + +test-al) + mvn -e --no-transfer-progress clean integration-test failsafe:verify \ + -Dsurefire.options='-Duser.language=sq -Duser.country=AL -Xms1024m -Xmx2048m' ;; versions) @@ -527,51 +536,6 @@ javac11) done ;; -javac14) - files=($(grep -Rl --include='*.java' ': Compilable with Java14' \ - src/test/resources-noncompilable \ - src/xdocs-examples/resources-noncompilable || true)) - if [[ ${#files[@]} -eq 0 ]]; then - echo "No Java14 files to process" - else - mkdir -p target - for file in "${files[@]}" - do - javac --release 14 --enable-preview -d target "${file}" - done - fi - ;; - -javac15) - files=($(grep -Rl --include='*.java' ': Compilable with Java15' \ - src/test/resources-noncompilable \ - src/xdocs-examples/resources-noncompilable || true)) - if [[ ${#files[@]} -eq 0 ]]; then - echo "No Java15 files to process" - else - mkdir -p target - for file in "${files[@]}" - do - javac --release 15 --enable-preview -d target "${file}" - done - fi - ;; - -javac16) - files=($(grep -Rl --include='*.java' ': Compilable with Java16' \ - src/test/resources-noncompilable \ - src/xdocs-examples/resources-noncompilable || true)) - if [[ ${#files[@]} -eq 0 ]]; then - echo "No Java16 files to process" - else - mkdir -p target - for file in "${files[@]}" - do - javac --release 16 --enable-preview -d target "${file}" - done - fi - ;; - javac17) files=($(grep -Rl --include='*.java' ': Compilable with Java17' \ src/test/resources-noncompilable \ @@ -617,6 +581,21 @@ javac20) fi ;; +javac21) + files=($(grep -Rl --include='*.java' ': Compilable with Java21' \ + src/test/resources-noncompilable \ + src/xdocs-examples/resources-noncompilable || true)) + if [[ ${#files[@]} -eq 0 ]]; then + echo "No Java21 files to process" + else + mkdir -p target + for file in "${files[@]}" + do + javac --release 21 --enable-preview -d target "${file}" + done + fi + ;; + package-site) mvn -e --no-transfer-progress package -Passembly,no-validations mvn -e --no-transfer-progress site -Dlinkcheck.skip=true @@ -847,6 +826,20 @@ no-error-htmlunit) removeFolderWithProtectedFiles htmlunit ;; +no-error-spotbugs) + CS_POM_VERSION="$(getCheckstylePomVersion)" + echo CS_version: "${CS_POM_VERSION}" + mvn -e --no-transfer-progress clean install -Pno-validations + echo "Checkout target sources ..." + checkout_from https://github.com/spotbugs/spotbugs + cd .ci-temp/spotbugs + sed -i'' "s/mavenCentral()/mavenLocal(); mavenCentral()/" build.gradle + sed -i'' "s/toolVersion.*$/toolVersion '${CS_POM_VERSION}'/" gradle/checkstyle.gradle + ./gradlew :eclipsePlugin-junit:checkstyleTest -Dcheckstyle.version="${CS_POM_VERSION}" + cd ../ + removeFolderWithProtectedFiles spotbugs + ;; + no-exception-struts) CS_POM_VERSION="$(getCheckstylePomVersion)" BRANCH=$(git rev-parse --abbrev-ref HEAD) @@ -857,6 +850,7 @@ no-exception-struts) sed -i'' 's/#apache-struts/apache-struts/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -875,6 +869,7 @@ no-exception-checkstyle-sevntu) sed -i'' 's/#sevntu-checkstyle/sevntu-checkstyle/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -892,6 +887,7 @@ no-exception-checkstyle-sevntu-javadoc) sed -i'' 's/#sevntu-checkstyle/sevntu-checkstyle/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-only-javadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -908,6 +904,7 @@ no-exception-guava) sed -i'' 's/#guava/guava/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -923,7 +920,8 @@ no-exception-hibernate-orm) sed -i.'' 's/#hibernate-orm/hibernate-orm/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ - --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" + --useShallowClone \ + --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution ;; @@ -938,6 +936,7 @@ no-exception-spotbugs) sed -i.'' 's/#spotbugs/spotbugs/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -953,6 +952,7 @@ no-exception-spoon) sed -i.'' 's/#spoon/spoon/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -968,7 +968,8 @@ no-exception-spring-framework) sed -i.'' 's/#spring-framework/spring-framework/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ - --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" + --useShallowClone \ + --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution ;; @@ -983,6 +984,7 @@ no-exception-hbase) sed -i.'' 's/#Hbase/Hbase/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -1000,6 +1002,7 @@ no-exception-Pmd-elasticsearch-lombok-ast) sed -i.'' 's/#lombok-ast/lombok-ast/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -1020,6 +1023,7 @@ no-exception-alot-of-projects) sed -i.'' 's/#android-launcher/android-launcher/' projects-to-test-on.properties groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \ --patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false" cd ../../ removeFolderWithProtectedFiles contribution @@ -1036,6 +1040,7 @@ no-warning-imports-guava) cd .ci-temp/contribution/checkstyle-tester groovy ./diff.groovy --listOfProjects $PROJECTS --patchConfig $CONFIG \ --allowExcludes -p "$BRANCH" -r ../../.. \ + --useShallowClone \ --mode single -xm "-Dcheckstyle.failsOnError=false" RESULT=$(grep -A 5 " Warning" $REPORT | cat) cd ../../ @@ -1061,6 +1066,7 @@ no-warning-imports-java-design-patterns) cd .ci-temp/contribution/checkstyle-tester groovy ./diff.groovy --listOfProjects $PROJECTS --patchConfig $CONFIG \ --allowExcludes -p "$BRANCH" -r ../../..\ + --useShallowClone \ --mode single RESULT=$(grep -A 5 " Warning" $REPORT | cat) cd ../../ @@ -1182,7 +1188,8 @@ check-wildcards-on-pitest-target-classes) *) echo "Unexpected argument: $1" - sleep 5s + echo "Supported tasks:" + list_tasks "${0}" false ;; diff --git a/.circleci/config.yml b/.circleci/config.yml index d0c8209dc67..4ac32f23678 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ jobs: run-inspections: docker: - - image: checkstyle/idea-docker:jdk11-idea2022.2.2 + - image: checkstyle/idea-docker:jdk11-idea2022.3.3 steps: - checkout @@ -75,14 +75,12 @@ jobs: export PR_HEAD_SHA=$CIRCLE_SHA1 export PR_NUMBER=$CIRCLE_PR_NUMBER << parameters.command >> - sonarqube: docker: - - image: checkstyle/jdk-11-groovy-git-mvn:11.0.13__3.0.9__2.25.1__3.6.3 + - image: checkstyle/jdk-11-groovy-git-mvn:11.0.20.1__2.4.21__2.42.0__3.9.5 steps: - checkout - - run: apt-get install -y jq - run: name: Run sonarqube command: | @@ -107,30 +105,31 @@ jobs: command: yamllint -f parsable -c config/yamllint.yaml . workflows: - sonarqube: - jobs: - - sonarqube: - context: - - sonarqube + # until https://github.com/checkstyle/checkstyle/issues/13209 + # sonarqube: + # jobs: + # - sonarqube: + # context: + # - sonarqube test: jobs: # no-exception-test script - validate-with-maven-script: name: "no-exception-lucene-and-others-javadoc" - image-name: &custom_img "checkstyle/jdk-11-groovy-git-mvn:11.0.13__3.0.9__2.25.1__3.6.3" + image-name: &cs_img "checkstyle/jdk-11-groovy-git-mvn:11.0.20.1__2.4.21__2.42.0__3.9.5" command: "./.ci/no-exception-test.sh no-exception-lucene-and-others-javadoc" - validate-with-maven-script: name: "no-exception-cassandra-storm-tapestry-javadoc" - image-name: *custom_img + image-name: *cs_img command: "./.ci/no-exception-test.sh no-exception-cassandra-storm-tapestry-javadoc" - validate-with-maven-script: name: "no-exception-hadoop-apache-groovy-scouter-javadoc" - image-name: *custom_img + image-name: *cs_img command: "./.ci/no-exception-test.sh no-exception-hadoop-apache-groovy-scouter-javadoc" - validate-with-maven-script: name: "no-exception-only-javadoc" - image-name: *custom_img + image-name: *cs_img command: "./.ci/no-exception-test.sh no-exception-only-javadoc" # validation script @@ -140,88 +139,97 @@ workflows: command: "./.ci/validation.sh no-error-xwiki" - validate-with-maven-script: name: "no-error-pmd" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-error-pmd" - validate-with-maven-script: name: "no-exception-struts" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-struts" - validate-with-maven-script: name: "no-exception-checkstyle-sevntu" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-checkstyle-sevntu" - validate-with-maven-script: name: "no-exception-checkstyle-sevntu-javadoc" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-checkstyle-sevntu-javadoc" - validate-with-maven-script: name: "no-exception-guava" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-guava" - validate-with-maven-script: name: "no-exception-hibernate-orm" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-hibernate-orm" - validate-with-maven-script: name: "no-exception-spotbugs" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-spotbugs" - validate-with-maven-script: name: "no-exception-spoon" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-spoon" - validate-with-maven-script: name: "no-exception-spring-framework" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-spring-framework" - validate-with-maven-script: name: "no-exception-hbase" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-hbase" - validate-with-maven-script: name: "no-exception-Pmd-elasticsearch-lombok-ast" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-Pmd-elasticsearch-lombok-ast" - validate-with-maven-script: name: "no-exception-alot-of-projects" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-exception-alot-of-projects" - validate-with-maven-script: name: "no-warning-imports-guava" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-warning-imports-guava" - validate-with-maven-script: name: "no-warning-imports-java-design-patterns" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-warning-imports-java-design-patterns" - validate-with-maven-script: name: "checkstyle-and-sevntu" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh checkstyle-and-sevntu" - - validate-with-maven-script: - name: "spotbugs-and-pmd" - image-name: *custom_img - command: "./.ci/validation.sh spotbugs-and-pmd" + # until https://github.com/spotbugs/spotbugs-maven-plugin/issues/806 + # - validate-with-maven-script: + # name: "spotbugs-and-pmd" + # image-name: *cs_img + # command: "./.ci/validation.sh spotbugs-and-pmd" - validate-with-maven-script: name: "site" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh site" - validate-with-maven-script: name: "release-dry-run" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh release-dry-run" - validate-with-maven-script: name: "assembly-run-all-jar" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh assembly-run-all-jar" - validate-with-maven-script: name: "no-error-test-sbe" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh no-error-test-sbe" + - validate-with-maven-script: + name: "no-error-spotbugs" + image-name: *cs_img + command: "./.ci/validation.sh no-error-spotbugs" - validate-with-maven-script: name: "linkcheck-plugin" image-name: "cimg/openjdk:11.0.19" command: "./.ci/run-link-check-plugin.sh --skip-external" + - validate-with-maven-script: + name: "no-exception-samples-gradle" + image-name: "cimg/openjdk:11.0.19" + command: "./.ci/no-exception-test.sh no-exception-samples-gradle" idea: jobs: @@ -258,18 +266,6 @@ workflows: - validate-with-script: name: "javac11" command: "./.ci/validation.sh javac11" - - validate-with-script: - name: "javac14" - image-name: "cimg/openjdk:14.0.2" - command: "./.ci/validation.sh javac14" - - validate-with-script: - name: "javac15" - image-name: "cimg/openjdk:15.0.2" - command: "./.ci/validation.sh javac15" - - validate-with-script: - name: "javac16" - image-name: "cimg/openjdk:16.0.2" - command: "./.ci/validation.sh javac16" - validate-with-script: name: "javac17" image-name: "cimg/openjdk:17.0.5" @@ -282,6 +278,10 @@ workflows: name: "javac20" image-name: "cimg/openjdk:20.0.1" command: "./.ci/validation.sh javac20" + - validate-with-script: + name: "javac21" + image-name: "cimg/openjdk:21.0.0" + command: "./.ci/validation.sh javac21" site-validation: jobs: @@ -291,5 +291,5 @@ workflows: command: "./.ci/validation.sh package-site" - validate-with-maven-script: name: "jdk11-package-site" - image-name: *custom_img + image-name: *cs_img command: "./.ci/validation.sh package-site" diff --git a/.cirrus.yml b/.cirrus.yml index a223e308590..f9f79eb8489 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,3 +1,4 @@ +only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH task: name: Windows build windows_container: @@ -29,7 +30,8 @@ task: MAVEN_OPTS: "-Dhttp.keepAlive=false \ -Dmaven.repo.local=%CIRRUS_WORKING_DIR%/.m2 \ -Dmaven.wagon.http.retryHandler.count=3" - MAVEN_VERSION: "3.8.4" + # This Maven version here should be same as minimum defined maven version in pom.xml + MAVEN_VERSION: "3.6.3" PATH: "%PATH%;C:/Program Files/OpenJDK/%OPENJDK_PATH%/bin;\ C:/ProgramData/chocolatey/lib/maven/apache-maven-%MAVEN_VERSION%/bin;\ C:/ProgramData/chocolatey/bin" diff --git a/.gitattributes b/.gitattributes index ef728b8eefe..6e74fbfb238 100644 --- a/.gitattributes +++ b/.gitattributes @@ -20,3 +20,4 @@ src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/xpath/xpathquerygenerator/InputXpathQueryGeneratorTextBlockCrlf.java eol=crlf src/test/resources/com/puppycrawl/tools/checkstyle/grammar/javadoc/InputCrAsNewlineMultiline.javadoc -text src/test/resources/com/puppycrawl/tools/checkstyle/grammar/javadoc/InputDosLineEndingAsNewlineMultiline.javadoc eol=crlf +src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/checks/newlineatendoffile/Example3.java eol=crlf diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a6a86b73803..d1dca44b426 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -4,7 +4,7 @@ * [Reporting issues](https://checkstyle.org/report_issue.html) * [How to report a bug?](https://checkstyle.org/report_issue.html#How_to_report_a_bug.3F) -* [Issue Template](https://github.com/checkstyle/checkstyle/blob/master/.github/ISSUE_TEMPLATE.md) +* [Issue Template](https://github.com/checkstyle/checkstyle/blob/master/.github/ISSUE_TEMPLATE/bug_report.md) Please provide issue report in the format that we request, EACH DETAIL IS A HUGE HELP. diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 900bd3e48af..70c0b1f2376 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -9,4 +9,3 @@ open_collective: checkstyle liberapay: checkstyle # issuehunt: # Replace with a single IssueHunt username # otechie: # Replace with a single Otechie username -custom: https://www.bountysource.com/teams/checkstyle/issues diff --git a/.github/dependabot.yml b/.github/dependabot.yml index cb2c3ce8a87..02a6aa481d4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,3 +11,10 @@ updates: - "> 2.1" commit-message: prefix: dependency + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 + commit-message: + prefix: dependency diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index b6a577e7c5e..81882a664e2 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -6,7 +6,8 @@ on: paths: - '.github/workflows/**' pull_request: - branches: '*' + branches: + - '*' paths: - '.github/workflows/**' @@ -19,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check workflow files uses: docker://rhysd/actionlint:latest diff --git a/.github/workflows/bump-license-year.yml b/.github/workflows/bump-license-year.yml index b70d1762d0f..493a6fe3cd9 100644 --- a/.github/workflows/bump-license-year.yml +++ b/.github/workflows/bump-license-year.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set Current Year run: | diff --git a/.github/workflows/bump-version-and-update-milestone.yml b/.github/workflows/bump-version-and-update-milestone.yml index c005686f6dd..570ff2ac68c 100644 --- a/.github/workflows/bump-version-and-update-milestone.yml +++ b/.github/workflows/bump-version-and-update-milestone.yml @@ -29,10 +29,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/check-performance-regression.yml b/.github/workflows/check-performance-regression.yml new file mode 100644 index 00000000000..8b051d7bf88 --- /dev/null +++ b/.github/workflows/check-performance-regression.yml @@ -0,0 +1,50 @@ +##################################################################################### +# GitHub Action to test performance regression. +# +# Workflow starts when: +# 1) push to master +# 2) PR created or pushed +# +##################################################################################### +name: Check-Performance-Regression + +on: + push: + branches: + - master + pull_request: + branches: '*' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + test: + if: github.repository == 'checkstyle/checkstyle' + runs-on: ubuntu-latest + steps: + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: 'temurin' + + - name: Checkout Pull Request Code + uses: actions/checkout@v4 + + - name: Clone JDK 17 Repo + uses: actions/checkout@v4 + with: + repository: openjdk/jdk17 + path: ./.ci-temp/jdk17 + + - name: Setup local maven cache + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} + + - name: Run performance test + run: | + ./.ci/check-performance-regression.sh diff --git a/.github/workflows/check-pr-description.yml b/.github/workflows/check-pr-description.yml index f27e42bfc06..f280fd05c9f 100644 --- a/.github/workflows/check-pr-description.yml +++ b/.github/workflows/check-pr-description.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Do action env: diff --git a/.github/workflows/checker-framework.yml b/.github/workflows/checker-framework.yml index d00bf0d4558..1af86d8c375 100644 --- a/.github/workflows/checker-framework.yml +++ b/.github/workflows/checker-framework.yml @@ -31,18 +31,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 11 + distribution: 'temurin' - name: Install groovy run: sudo apt install groovy - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} @@ -58,7 +59,7 @@ jobs: - name: Share patch as artifact to apply on local if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: checker-${{ matrix.profile }}-patch path: target/checker-${{ matrix.profile }}.patch diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index fa56110640e..408dd81bf6b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -31,17 +31,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -52,7 +52,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v3 # If the Autobuild fails above, remove it and uncomment the following three lines # and modify them (or add more) to build your code if your project @@ -63,4 +63,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/diff-report.yml b/.github/workflows/diff-report.yml index 5cd0581ac11..3efada24df7 100644 --- a/.github/workflows/diff-report.yml +++ b/.github/workflows/diff-report.yml @@ -27,15 +27,9 @@ permissions: contents: read pull-requests: write -# Current behavior for concurrency in GitHub Actions: -# 1) If a Diff-Report workflow is NOT running for this PR, start a new one. -# 2) If a Diff-Report workflow is running for this PR, queue this workflow. -# 3) If a Diff-Report workflow is queued for this PR, cancel it and queue this workflow. -# -# It would be best to always queue a new workflow, but we are limited by -# https://github.com/orgs/community/discussions/12835. concurrency: - group: ${{ github.workflow }}-${{ github.event.issue.number }} + # run_id is guaranteed to be unique and present + group: ${{ github.run_id }} cancel-in-progress: false jobs: @@ -53,7 +47,7 @@ jobs: commit_sha: ${{ steps.branch.outputs.commit_sha }} steps: - - uses: khan/pull-request-comment-trigger@master + - uses: shanegenschaw/pull-request-comment-trigger@v2.1.0 name: React with rocket on run with: trigger: ',' @@ -65,7 +59,7 @@ jobs: if: 'true' - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Getting PR description env: @@ -113,7 +107,7 @@ jobs: steps: - name: Download checkstyle - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download files env: @@ -138,13 +132,13 @@ jobs: git fetch forked - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} - name: Download contribution - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: checkstyle/contribution path: .ci-temp/contribution @@ -156,7 +150,7 @@ jobs: sudo apt install groovy - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -213,7 +207,7 @@ jobs: if: failure() || success() steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get message env: diff --git a/.github/workflows/error-prone.yml b/.github/workflows/error-prone.yml index 0791a7f15d8..952e6387361 100644 --- a/.github/workflows/error-prone.yml +++ b/.github/workflows/error-prone.yml @@ -17,18 +17,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 11 + distribution: 'temurin' - name: Install groovy run: sudo apt install groovy - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/no-exception-workflow.yml b/.github/workflows/no-exception-workflow.yml index acea9b0ffa0..07ff2c6107b 100644 --- a/.github/workflows/no-exception-workflow.yml +++ b/.github/workflows/no-exception-workflow.yml @@ -18,15 +18,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 11 + distribution: 'temurin' - name: Install dependencies run: sudo apt install groovy - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - run: .ci/no-exception-test.sh openjdk17-with-checks-nonjavadoc-error # this execution should stay on GitHub actions due to time/ memory limits in other CI @@ -35,15 +36,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 11 + distribution: 'temurin' - name: Install dependencies run: sudo apt install groovy - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - run: .ci/no-exception-test.sh openjdk19-with-checks-nonjavadoc-error # this execution should stay on GitHub actions due to time/ memory limits in other CI @@ -52,14 +54,33 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 11 + distribution: 'temurin' - name: Install dependencies run: sudo apt install groovy - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - run: .ci/no-exception-test.sh openjdk20-with-checks-nonjavadoc-error + # this execution should stay on GitHub actions due to time/ memory limits in other CI + no-exception-openjdk21: + if: github.repository == 'checkstyle/checkstyle' + runs-on: ubuntu-latest + steps: + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: 'temurin' + + - name: Install dependencies + run: sudo apt install groovy + + - name: Checkout repository + uses: actions/checkout@v4 + + - run: .ci/no-exception-test.sh openjdk21-with-checks-nonjavadoc-error diff --git a/.github/workflows/no-old-refs.yml b/.github/workflows/no-old-refs.yml index 011b45610a7..f8c33b18bb1 100644 --- a/.github/workflows/no-old-refs.yml +++ b/.github/workflows/no-old-refs.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Download checkstyle - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: PR linked issues id: links diff --git a/.github/workflows/pitest.yml b/.github/workflows/pitest.yml index d0553b2a9f1..ddc5f4fb8ec 100644 --- a/.github/workflows/pitest.yml +++ b/.github/workflows/pitest.yml @@ -51,9 +51,10 @@ jobs: continue-on-error: true steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 11 + distribution: 'temurin' - name: Install groovy run: | @@ -61,13 +62,13 @@ jobs: sudo apt install groovy - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Generate pitest-${{ matrix.profile }} report run: | @@ -89,7 +90,7 @@ jobs: - name: Archive code coverage results if: failure() || github.ref == 'refs/heads/master' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pitest-${{ matrix.profile }}-coverage-report path: | diff --git a/.github/workflows/release-copy-github-io-to-sourceforge.yml b/.github/workflows/release-copy-github-io-to-sourceforge.yml index 793ead0d853..5674fb3c823 100644 --- a/.github/workflows/release-copy-github-io-to-sourceforge.yml +++ b/.github/workflows/release-copy-github-io-to-sourceforge.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Configure SSH env: diff --git a/.github/workflows/release-maven-perform.yml b/.github/workflows/release-maven-perform.yml index 2822e781bd7..0e20975f195 100644 --- a/.github/workflows/release-maven-perform.yml +++ b/.github/workflows/release-maven-perform.yml @@ -26,13 +26,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: master - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release-maven-prepare.yml b/.github/workflows/release-maven-prepare.yml index 6b7d4b836b8..74ed97b1af2 100644 --- a/.github/workflows/release-maven-prepare.yml +++ b/.github/workflows/release-maven-prepare.yml @@ -29,13 +29,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: master - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release-new-milestone-and-issues-in-other-repos.yml b/.github/workflows/release-new-milestone-and-issues-in-other-repos.yml index bebcac8602c..268808b1dab 100644 --- a/.github/workflows/release-new-milestone-and-issues-in-other-repos.yml +++ b/.github/workflows/release-new-milestone-and-issues-in-other-repos.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: master @@ -41,7 +41,7 @@ jobs: sudo apt-get install ncal - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release-publish-releasenotes-twitter.yml b/.github/workflows/release-publish-releasenotes-twitter.yml index 6406c504965..9858e6f0531 100644 --- a/.github/workflows/release-publish-releasenotes-twitter.yml +++ b/.github/workflows/release-publish-releasenotes-twitter.yml @@ -27,12 +27,12 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release-update-github-io.yml b/.github/workflows/release-update-github-io.yml index b641bc59199..6ac03f7da07 100644 --- a/.github/workflows/release-update-github-io.yml +++ b/.github/workflows/release-update-github-io.yml @@ -27,13 +27,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ github.repository_owner }}/checkstyle fetch-depth: 0 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} @@ -43,7 +43,7 @@ jobs: ./.ci/generate-website.sh ${{ inputs.version }} - name: Checkout checkstyle.github.io repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ github.repository_owner }}/checkstyle.github.io token: ${{ secrets.PAT }} diff --git a/.github/workflows/release-update-github-page.yml b/.github/workflows/release-update-github-page.yml index b8c03f2026d..a47e8b60110 100644 --- a/.github/workflows/release-update-github-page.yml +++ b/.github/workflows/release-update-github-page.yml @@ -29,10 +29,10 @@ jobs: contents: write steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release-update-xdoc-with-releasenotes.yml b/.github/workflows/release-update-xdoc-with-releasenotes.yml index 1f1a85afa0d..d488548af3e 100644 --- a/.github/workflows/release-update-xdoc-with-releasenotes.yml +++ b/.github/workflows/release-update-xdoc-with-releasenotes.yml @@ -28,10 +28,10 @@ jobs: contents: write steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release-upload-all-jar.yml b/.github/workflows/release-upload-all-jar.yml index 57815a5d247..f3263b0bc96 100644 --- a/.github/workflows/release-upload-all-jar.yml +++ b/.github/workflows/release-upload-all-jar.yml @@ -30,13 +30,13 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: master - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/releasenotes-gen.yml b/.github/workflows/releasenotes-gen.yml index 0b568b441e0..702aa57ca77 100644 --- a/.github/workflows/releasenotes-gen.yml +++ b/.github/workflows/releasenotes-gen.yml @@ -16,10 +16,10 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Download checkstyle - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/run-link-check.yml b/.github/workflows/run-link-check.yml index 4cd9eda02e5..d82b0f1998b 100644 --- a/.github/workflows/run-link-check.yml +++ b/.github/workflows/run-link-check.yml @@ -21,10 +21,10 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Download checkstyle - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/set-milestone-on-referenced-issue.yml b/.github/workflows/set-milestone-on-referenced-issue.yml index 8ab8e3aefd8..ba6964c7cc4 100644 --- a/.github/workflows/set-milestone-on-referenced-issue.yml +++ b/.github/workflows/set-milestone-on-referenced-issue.yml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set milestone on issue env: diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 9e2f2390536..ba1bd185455 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -21,7 +21,7 @@ jobs: run: sudo apt install shellcheck - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Execute shellcheck run: shellcheck ./.ci/*.sh diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index 85aaa6602b6..548fde740df 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -27,7 +27,7 @@ permissions: concurrency: group: ${{ github.workflow }}-${{ github.event.issue.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: false jobs: parse_pr_info: @@ -40,7 +40,7 @@ jobs: commit_sha: ${{ steps.branch.outputs.commit_sha }} steps: - - uses: khan/pull-request-comment-trigger@master + - uses: shanegenschaw/pull-request-comment-trigger@v2.1.0 name: React with rocket on run with: trigger: ',' @@ -77,14 +77,14 @@ jobs: message: ${{ steps.out.outputs.message}} steps: - name: Checkout repository from origin - uses: actions/checkout@v3 + uses: actions/checkout@v4 # fetch-depth - number of commits to fetch. # 0 indicates all history for all branches and tags. # 0, because we need access to all branches to create a report. # ref - branch to checkout. - name: Download checkstyle for PR - uses: actions/checkout@v3 + uses: actions/checkout@v4 env: USER_LOGIN: ${{ github.event.issue.user.login }} with: @@ -94,14 +94,14 @@ jobs: fetch-depth: 0 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ env.AWS_REGION }} - name: Setup local maven cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }} @@ -138,7 +138,7 @@ jobs: if: failure() || success() steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get message env: diff --git a/.gitignore b/.gitignore index 47172199b52..20f6ee4a7ec 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,9 @@ checkstyle.ipr checkstyle.iws .idea +# Vscode project files +.vscode + # Temp files *~ diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 0381599ecdb..733d323fd27 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -47,11 +47,13 @@ blocks: values: - .ci/validation.sh all-sevntu-checks - .ci/validation.sh check-missing-pitests - - .ci/validation.sh eclipse-static-analysis + # until https://github.com/checkstyle/checkstyle/issues/13209 + # - .ci/validation.sh eclipse-static-analysis - .ci/validation.sh verify-regexp-id - .ci/no-exception-test.sh guava-with-google-checks - .ci/no-exception-test.sh guava-with-sun-checks - - .ci/no-exception-test.sh no-exception-samples-ant + # until https://github.com/checkstyle/checkstyle/issues/14086 + # - .ci/no-exception-test.sh no-exception-samples-ant - .ci/validation.sh nondex # until https://github.com/checkstyle/checkstyle/issues/9807 # - mvn -e --no-transfer-progress clean package -Passembly,no-validations diff --git a/README.md b/README.md index cba86025761..3677cf9268c 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,7 @@ or set of validation rules (best practices). [![][milestone img]][milestone] -Members chat: [![][gitter_mem img]][gitter_mem] -Contributors chat: [![][gitter_con img]][gitter_con] +Contributors chat: [![][matrix_con img]][matrix_con] The latest release version can be found at [GitHub releases](https://github.com/checkstyle/checkstyle/releases/) @@ -73,8 +72,6 @@ Bugs and Feature requests (not the questions): https://github.com/checkstyle/che If you want to speed up fixing of issue and want to encourage somebody in internet to resolve any issue: -[![][bountysource img]][bountysource] -[![][salt.bountysource img]][salt.bountysource] [![][flattr img]][flattr] [![][liberapay img]][liberapay] [![][backers.opencollective img]][backers.opencollective] @@ -128,11 +125,8 @@ are in the file named "LICENSE.apache20" in this directory. [mavenbadge]:https://search.maven.org/search?q=g:%22com.puppycrawl.tools%22%20AND%20a:%22checkstyle%22 [mavenbadge img]:https://img.shields.io/maven-central/v/com.puppycrawl.tools/checkstyle.svg?label=Maven%20Central -[gitter_mem]:https://gitter.im/checkstyle -[gitter_mem img]:https://img.shields.io/badge/gitter-JOIN%20CHAT-blue.svg - -[gitter_con]:https://gitter.im/checkstyle/checkstyle -[gitter_con img]:https://badges.gitter.im/Join%20Chat.svg +[matrix_con]:https://app.element.io/#/room/#checkstyle_checkstyle:gitter.im +[matrix_con img]:https://matrix.to/img/matrix-badge.svg [stackoverflow]:https://stackoverflow.com/questions/tagged/checkstyle [stackoverflow img]:https://img.shields.io/badge/stackoverflow-CHECKSTYLE-blue.svg @@ -161,12 +155,6 @@ are in the file named "LICENSE.apache20" in this directory. [liberapay]:https://liberapay.com/checkstyle/ [liberapay img]:https://liberapay.com/assets/widgets/donate.svg -[bountysource]:https://www.bountysource.com/teams/checkstyle/issues -[bountysource img]:https://api.bountysource.com/badge/team?team_id=3568&style=bounties_posted - -[salt.bountysource]:https://salt.bountysource.com/teams/checkstyle -[salt.bountysource img]:https://img.shields.io/bountysource/team/checkstyle/activity.svg?label=salt.bountysource - [backers.opencollective]:https://opencollective.com/checkstyle/ [backers.opencollective img]:https://opencollective.com/checkstyle/backers/badge.svg diff --git a/appveyor.yml b/appveyor.yml index ef00cdd8c29..2083d0a9bed 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,21 +11,21 @@ branches: install: - ps: | Add-Type -AssemblyName System.IO.Compression.FileSystem - if (!(Test-Path -Path "C:\maven\apache-maven-3.8.6" )) { + if (!(Test-Path -Path "C:\maven\apache-maven-3.8.8" )) { (new-object System.Net.WebClient).DownloadFile( - 'https://downloads.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.zip', + 'https://downloads.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.zip', 'C:\maven-bin.zip' ) [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven") } - - cmd: SET M2_HOME=C:\maven\apache-maven-3.8.6 + - cmd: SET M2_HOME=C:\maven\apache-maven-3.8.8 - cmd: SET PATH=%M2_HOME%\bin;%JAVA_HOME%\bin;%PATH% - cmd: git config core.autocrlf - cmd: mvn --version - cmd: java -version cache: - - C:\maven\apache-maven-3.8.6 + - C:\maven\apache-maven-3.8.8 - C:\Users\appveyor\.m2 matrix: @@ -70,6 +70,7 @@ build_script: } else { Write-Host "build is skipped ..." } + - ps: ./.ci/validation.cmd git_diff - ps: echo "Size of caches (bytes):" - - ps: Get-ChildItem -Recurse 'C:\maven\apache-maven-3.8.6' | Measure-Object -Property Length -Sum + - ps: Get-ChildItem -Recurse 'C:\maven\apache-maven-3.8.8' | Measure-Object -Property Length -Sum - ps: Get-ChildItem -Recurse 'C:\Users\appveyor\.m2' | Measure-Object -Property Length -Sum diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f7ed1fce390..25e9aa10d6b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -80,6 +80,11 @@ strategy: image: 'ubuntu-20.04' cmd: "./.ci/validation.sh test-ru" + # unit tests in Albanian locale (openjdk11) + 'test-al': + image: 'ubuntu-20.04' + cmd: "./.ci/validation.sh test-al" + # OpenJDK11 verify 'OpenJDK11 verify': image: 'ubuntu-20.04' @@ -160,6 +165,7 @@ steps: - bash: | set -e + mvn --version echo "ON_CRON_ONLY:"$ON_CRON_ONLY echo "BUILD_REASON:"$BUILD_REASON echo "cmd: "$(cmd) diff --git a/config/archunit-store/slices-should-be-free-of-cycles-suppressions b/config/archunit-store/slices-should-be-free-of-cycles-suppressions deleted file mode 100644 index ba3cc3e48a9..00000000000 --- a/config/archunit-store/slices-should-be-free-of-cycles-suppressions +++ /dev/null @@ -1,1494 +0,0 @@ -Cycle detected: Slice api -> \ - Slice utils -> \ - Slice api\ - 1. Dependencies of Slice api\ - - Method calls method in (AbstractFileSetCheck.java:97)\ - - Constructor (java.io.File, java.util.List)> gets field in (FileText.java:133)\ - - Method calls method in (AbstractFileSetCheck.java:177)\ - - Constructor (java.io.File, java.lang.String)> gets field in (FileText.java:180)\ - - Method calls method in (AbstractFileSetCheck.java:230)\ - - Method calls method in (FileContents.java:234)\ - - Method calls method in (AbstractCheck.java:245)\ - - Method calls method in (AbstractCheck.java:275)\ - 2. Dependencies of Slice utils\ - - Method has parameter of type in (AnnotationUtil.java:0)\ - - Method has parameter of type in (AnnotationUtil.java:0)\ - - Method has parameter of type in (AnnotationUtil.java:0)\ - - Method has generic parameter type > with type argument depending on in (AnnotationUtil.java:0)\ - - Method has parameter of type in (AnnotationUtil.java:0)\ - - Method has return type in (AnnotationUtil.java:0)\ - - Method has parameter of type in (AnnotationUtil.java:0)\ - - Method has return type in (AnnotationUtil.java:0)\ - - Method has parameter of type in (AnnotationUtil.java:0)\ - - Method has parameter of type in (AnnotationUtil.java:0)\ - - Method has return type in (AnnotationUtil.java:0)\ - - Method has parameter of type in (AnnotationUtil.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has return type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has return type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method has parameter of type in (BlockCommentPosition.java:0)\ - - Method throws type in (ChainedPropertyUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has return type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has generic return type > with type argument depending on in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method has parameter of type in (CheckUtil.java:0)\ - - Method throws type in (CommonUtil.java:0)\ - - Method throws type in (CommonUtil.java:0)\ - - Method throws type in (CommonUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has return type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has return type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has return type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has return type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has return type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has parameter of type in (JavadocUtil.java:0)\ - - Method has return type in (ParserUtil.java:0)\ - - Method has return type in (ParserUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has return type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has return type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has return type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has return type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has return type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (ScopeUtil.java:0)\ - - Method has parameter of type in (TokenUtil.java:0)\ - - Method has generic parameter type > with type argument depending on in (TokenUtil.java:0)\ - - Method has generic return type > with type argument depending on in (TokenUtil.java:0)\ - - Method has parameter of type in (TokenUtil.java:0)\ - - Method has generic parameter type > with type argument depending on in (TokenUtil.java:0)\ - - Method has parameter of type in (TokenUtil.java:0)\ - - Method has parameter of type in (TokenUtil.java:0)\ - - Method has parameter of type in (TokenUtil.java:0)\ - - Method has parameter of type in (XpathUtil.java:0)\ - - Method has parameter of type in (XpathUtil.java:0)\ - - Method throws type in (XpathUtil.java:0)\ - - Method has parameter of type in (XpathUtil.java:0)\ - - Method calls method in (ScopeUtil.java:47)\ - - Method calls method in (ScopeUtil.java:48)\ - - Method calls method in (ScopeUtil.java:49)\ - - Method gets field in (ScopeUtil.java:51)\ - - Method gets field in (ScopeUtil.java:54)\ - - Method gets field in (ScopeUtil.java:57)\ - - Static Initializer ()> references class object in (TokenUtil.java:60)\ - - Method calls method in (ScopeUtil.java:73)\ - - Static Initializer ()> references class object in (JavadocUtil.java:79)\ - - Method calls method in (BlockCommentPosition.java:85)\ - - Method calls method in (BlockCommentPosition.java:88)\ - - Method calls method in (ScopeUtil.java:88)\ - - Method calls method in (BlockCommentPosition.java:89)\ - - Method calls method in (AnnotationUtil.java:92)\ - - Method calls method in (BlockCommentPosition.java:92)\ - - Method calls method in (CheckUtil.java:95)\ - - Method calls method in (CheckUtil.java:96)\ - - Method calls constructor (java.lang.String)> in (ChainedPropertyUtil.java:98)\ - - Method calls method in (CheckUtil.java:98)\ - - Method calls method in (CheckUtil.java:99)\ - - Method calls method in (CheckUtil.java:102)\ - - Method calls method in (JavadocUtil.java:102)\ - - Method calls method in (CheckUtil.java:103)\ - - Method calls method in (CheckUtil.java:107)\ - - Method calls method in (JavadocUtil.java:107)\ - - Method calls method in (ScopeUtil.java:107)\ - - Method calls method in (CheckUtil.java:108)\ - - Method references class object in (ModuleReflectionUtil.java:108)\ - - Method gets field in (ScopeUtil.java:108)\ - - Method calls method in (ScopeUtil.java:110)\ - - Method gets field in (ScopeUtil.java:111)\ - - Method calls method in (JavadocUtil.java:114)\ - - Method gets field in (ScopeUtil.java:114)\ - - Method gets field in (ScopeUtil.java:118)\ - - Method calls method in (JavadocUtil.java:119)\ - - Method calls method in (JavadocUtil.java:119)\ - - Method references class object in (ModuleReflectionUtil.java:119)\ - - Method gets field in (ScopeUtil.java:121)\ - - Method references class object in (ModuleReflectionUtil.java:130)\ - - Method calls method in (AnnotationUtil.java:132)\ - - Method calls method in (ScopeUtil.java:134)\ - - Method calls method in (ScopeUtil.java:136)\ - - Method calls method in (AnnotationUtil.java:137)\ - - Method calls method in (ScopeUtil.java:137)\ - - Method calls method in (AnnotationUtil.java:138)\ - - Method calls method in (AnnotationUtil.java:138)\ - - Method calls method in (ScopeUtil.java:140)\ - - Method calls method in (AnnotationUtil.java:141)\ - - Method references class object in (ModuleReflectionUtil.java:141)\ - - Method gets field in (ScopeUtil.java:145)\ - - Method calls method in (XpathUtil.java:145)\ - - Method references class object in (ModuleReflectionUtil.java:152)\ - - Method calls method in (XpathUtil.java:157)\ - - Method references class object in (ModuleReflectionUtil.java:163)\ - - Method calls method in (XpathUtil.java:167)\ - - Method calls method in (XpathUtil.java:168)\ - - Method calls method in (BlockCommentPosition.java:171)\ - - Method calls method in (BlockCommentPosition.java:172)\ - - Method calls method in (JavadocUtil.java:173)\ - - Method calls method in (BlockCommentPosition.java:174)\ - - Method calls method in (JavadocUtil.java:174)\ - - Method calls method in (AnnotationUtil.java:175)\ - - Method calls method in (BlockCommentPosition.java:175)\ - - Method calls method in (BlockCommentPosition.java:175)\ - - Method calls method in (AnnotationUtil.java:176)\ - - Method calls method in (AnnotationUtil.java:177)\ - - Method calls method in (AnnotationUtil.java:180)\ - - Method calls method in (JavadocUtil.java:185)\ - - Method calls method in (JavadocUtil.java:186)\ - - Method calls constructor (java.lang.String, java.lang.Throwable)> in (XpathUtil.java:198)\ - - Method calls method in (JavadocUtil.java:202)\ - - Method calls method in (ScopeUtil.java:205)\ - - Method calls method in (CheckUtil.java:207)\ - - Method calls method in (ScopeUtil.java:207)\ - - Method calls method in (ScopeUtil.java:208)\ - - Method calls method in (BlockCommentPosition.java:210)\ - - Method calls method in (ScopeUtil.java:211)\ - - Method calls method in (BlockCommentPosition.java:212)\ - - Method calls method in (ScopeUtil.java:212)\ - - Method calls method in (CheckUtil.java:213)\ - - Method calls method in (BlockCommentPosition.java:214)\ - - Method calls method in (BlockCommentPosition.java:214)\ - - Method calls method in (BlockCommentPosition.java:218)\ - - Method calls method in (BlockCommentPosition.java:219)\ - - Method calls method in (BlockCommentPosition.java:219)\ - - Method calls method in (JavadocUtil.java:220)\ - - Method calls method in (JavadocUtil.java:221)\ - - Method calls method in (AnnotationUtil.java:224)\ - - Method calls method in (TokenUtil.java:224)\ - - Method calls method in (TokenUtil.java:224)\ - - Method calls method in (AnnotationUtil.java:226)\ - - Method calls method in (AnnotationUtil.java:226)\ - - Method calls method in (AnnotationUtil.java:226)\ - - Method calls method in (CheckUtil.java:227)\ - - Method calls method in (CheckUtil.java:229)\ - - Method calls method in (JavadocUtil.java:234)\ - - Method calls method in (JavadocUtil.java:236)\ - - Method calls method in (JavadocUtil.java:237)\ - - Method calls method in (CheckUtil.java:240)\ - - Method calls method in (ScopeUtil.java:242)\ - - Method calls method in (TokenUtil.java:242)\ - - Method calls method in (TokenUtil.java:242)\ - - Method calls method in (ScopeUtil.java:243)\ - - Method calls method in (TokenUtil.java:243)\ - - Method calls method in (CheckUtil.java:245)\ - - Method calls method in (CheckUtil.java:247)\ - - Method calls method in (CheckUtil.java:247)\ - - Method calls method in (ScopeUtil.java:247)\ - - Method calls method in (BlockCommentPosition.java:248)\ - - Method calls method in (BlockCommentPosition.java:248)\ - - Method calls method in (AnnotationUtil.java:249)\ - - Method calls method in (BlockCommentPosition.java:249)\ - - Method calls method in (CheckUtil.java:249)\ - - Method calls method in (AnnotationUtil.java:250)\ - - Method calls method in (BlockCommentPosition.java:250)\ - - Method calls method in (AnnotationUtil.java:251)\ - - Method calls method in (CheckUtil.java:251)\ - - Method calls method in (CheckUtil.java:253)\ - - Method calls method in (CheckUtil.java:253)\ - - Method calls method in (JavadocUtil.java:254)\ - - Method calls method in (CheckUtil.java:255)\ - - Method calls method in (TokenUtil.java:258)\ - - Method calls method in (BlockCommentPosition.java:261)\ - - Method calls method in (BlockCommentPosition.java:261)\ - - Method calls method in (BlockCommentPosition.java:262)\ - - Method calls method in (BlockCommentPosition.java:262)\ - - Method calls method in (JavadocUtil.java:268)\ - - Method calls method in (CheckUtil.java:270)\ - - Method calls method in (JavadocUtil.java:270)\ - - Method calls method in (JavadocUtil.java:271)\ - - Method calls method in (BlockCommentPosition.java:274)\ - - Method calls method in (BlockCommentPosition.java:274)\ - - Method calls method in (ScopeUtil.java:274)\ - - Method calls method in (BlockCommentPosition.java:275)\ - - Method calls method in (CheckUtil.java:275)\ - - Method calls method in (BlockCommentPosition.java:276)\ - - Method calls method in (BlockCommentPosition.java:276)\ - - Method calls method in (ScopeUtil.java:276)\ - - Method calls method in (CheckUtil.java:278)\ - - Method calls method in (CheckUtil.java:280)\ - - Method calls method in (CheckUtil.java:283)\ - - Method calls method in (BlockCommentPosition.java:288)\ - - Method calls method in (BlockCommentPosition.java:290)\ - - Method calls method in (BlockCommentPosition.java:291)\ - - Method calls method in (BlockCommentPosition.java:293)\ - - Method calls method in (BlockCommentPosition.java:294)\ - - Method calls method in (ScopeUtil.java:294)\ - - Method calls method in (BlockCommentPosition.java:295)\ - - Method calls method in (BlockCommentPosition.java:295)\ - - Method calls method in (ScopeUtil.java:296)\ - - Method calls method in (BlockCommentPosition.java:297)\ - - Method calls method in (BlockCommentPosition.java:297)\ - - Method calls method in (ScopeUtil.java:297)\ - - Method calls method in (BlockCommentPosition.java:298)\ - - Method calls method in (BlockCommentPosition.java:298)\ - - Method calls method in (CheckUtil.java:302)\ - - Method calls method in (CheckUtil.java:303)\ - - Method calls method in (CheckUtil.java:304)\ - - Method calls method in (CheckUtil.java:305)\ - - Method calls method in (CheckUtil.java:305)\ - - Method calls method in (TokenUtil.java:305)\ - - Method calls method in (CheckUtil.java:308)\ - - Method calls method in (BlockCommentPosition.java:309)\ - - Method calls method in (CheckUtil.java:309)\ - - Method calls method in (BlockCommentPosition.java:310)\ - - Method calls method in (BlockCommentPosition.java:311)\ - - Method calls method in (CheckUtil.java:316)\ - - Method calls method in (TokenUtil.java:316)\ - - Method calls method in (JavadocUtil.java:317)\ - - Method calls method in (ScopeUtil.java:317)\ - - Method calls method in (CheckUtil.java:318)\ - - Method calls method in (ScopeUtil.java:318)\ - - Method calls method in (CheckUtil.java:319)\ - - Method calls method in (JavadocUtil.java:319)\ - - Method calls method in (CheckUtil.java:320)\ - - Method calls method in (CheckUtil.java:320)\ - - Method calls method in (JavadocUtil.java:322)\ - - Method calls method in (BlockCommentPosition.java:323)\ - - Method calls method in (ScopeUtil.java:323)\ - - Method calls method in (ScopeUtil.java:324)\ - - Method calls method in (BlockCommentPosition.java:325)\ - - Method calls method in (BlockCommentPosition.java:326)\ - - Method calls method in (BlockCommentPosition.java:327)\ - - Method calls method in (ScopeUtil.java:328)\ - - Method calls method in (ScopeUtil.java:329)\ - - Method calls method in (ScopeUtil.java:330)\ - - Method calls method in (CheckUtil.java:339)\ - - Method calls method in (CheckUtil.java:340)\ - - Method calls method in (CheckUtil.java:341)\ - - Method calls method in (CheckUtil.java:342)\ - - Method calls method in (CheckUtil.java:342)\ - - Method calls method in (CheckUtil.java:345)\ - - Method calls method in (CheckUtil.java:346)\ - - Method calls method in (ScopeUtil.java:349)\ - - Method calls method in (CheckUtil.java:352)\ - - Method calls method in (CheckUtil.java:354)\ - - Method calls method in (CheckUtil.java:355)\ - - Method calls method in (CheckUtil.java:356)\ - - Method calls method in (JavadocUtil.java:356)\ - - Method calls method in (JavadocUtil.java:358)\ - - Method calls method in (JavadocUtil.java:363)\ - - Method calls method in (JavadocUtil.java:365)\ - - Method calls method in (JavadocUtil.java:366)\ - - Method calls method in (CheckUtil.java:371)\ - - Method calls method in (CheckUtil.java:372)\ - - Method calls method in (CheckUtil.java:373)\ - - Method calls method in (CheckUtil.java:387)\ - - Method calls method in (CheckUtil.java:388)\ - - Method calls method in (CheckUtil.java:400)\ - - Method calls method in (CheckUtil.java:405)\ - - Method calls method in (CheckUtil.java:431)\ - - Method calls method in (CheckUtil.java:432)\ - - Method calls method in (CheckUtil.java:433)\ - - Method calls method in (CheckUtil.java:457)\ - - Method calls method in (CheckUtil.java:458)\ - - Method calls constructor (java.lang.String)> in (CommonUtil.java:462)\ - - Method calls constructor (java.lang.String, java.lang.Throwable)> in (CommonUtil.java:470)\ - - Method calls method in (CheckUtil.java:619)\ - - Method calls method in (CheckUtil.java:619)\ - - Method calls method in (CheckUtil.java:636)\ - - Method calls method in (CheckUtil.java:638) -Cycle detected: Slice api -> \ - Slice utils -> \ - Slice checks.javadoc -> \ - Slice api\ - 1. Dependencies of Slice api\ - - Method calls method in (AbstractFileSetCheck.java:97)\ - - Constructor (java.io.File, java.util.List)> gets field in (FileText.java:133)\ - - Method calls method in (AbstractFileSetCheck.java:177)\ - - Constructor (java.io.File, java.lang.String)> gets field in (FileText.java:180)\ - - Method calls method in (AbstractFileSetCheck.java:230)\ - - Method calls method in (FileContents.java:234)\ - - Method calls method in (AbstractCheck.java:245)\ - - Method calls method in (AbstractCheck.java:275)\ - 2. Dependencies of Slice utils\ - - Method has return type in (JavadocUtil.java:0)\ - - Method calls method in (JavadocUtil.java:121)\ - - Method calls constructor (int, int, java.lang.String, java.lang.String)> in (JavadocUtil.java:123)\ - - Method calls constructor (int, int, java.lang.String)> in (JavadocUtil.java:126)\ - - Method calls constructor (java.util.Collection, java.util.Collection)> in (JavadocUtil.java:130)\ - 3. Dependencies of Slice checks.javadoc\ - - Class extends class in (AbstractJavadocCheck.java:0)\ - - Class extends class in (InvalidJavadocPositionCheck.java:0)\ - - Class extends class in (JavadocContentLocationCheck.java:0)\ - - Class extends class in (JavadocMethodCheck.java:0)\ - - Class implements interface in (JavadocNodeImpl.java:0)\ - - Class extends class in (JavadocPackageCheck.java:0)\ - - Class extends class in (JavadocStyleCheck.java:0)\ - - Class extends class in (JavadocTypeCheck.java:0)\ - - Class extends class in (JavadocVariableCheck.java:0)\ - - Class extends class in (MissingJavadocMethodCheck.java:0)\ - - Class extends class in (MissingJavadocPackageCheck.java:0)\ - - Class extends class in (MissingJavadocTypeCheck.java:0)\ - - Class extends class in (WriteTagCheck.java:0)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.DetailAST, com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck$ClassInfo)> has parameter of type in (JavadocMethodCheck.java:0)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.FullIdent)> has parameter of type in (JavadocMethodCheck.java:0)\ - - Field has type in (AbstractJavadocCheck.java:0)\ - - Field has generic type >> with type argument depending on in (AbstractJavadocCheck.java:0)\ - - Field has type in (JavadocMethodCheck.java:0)\ - - Field depends on component type in (JavadocNodeImpl.java:0)\ - - Field has type in (JavadocNodeImpl.java:0)\ - - Field has type in (JavadocStyleCheck.java:0)\ - - Field has type in (JavadocStyleCheck.java:0)\ - - Field has type in (JavadocTypeCheck.java:0)\ - - Field has type in (JavadocTypeCheck.java:0)\ - - Field has type in (JavadocVariableCheck.java:0)\ - - Field has type in (JavadocVariableCheck.java:0)\ - - Field has type in (MissingJavadocMethodCheck.java:0)\ - - Field has type in (MissingJavadocMethodCheck.java:0)\ - - Field has type in (MissingJavadocTypeCheck.java:0)\ - - Field has type in (MissingJavadocTypeCheck.java:0)\ - - Field has type in (WriteTagCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has return type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AbstractJavadocCheck.java:0)\ - - Method has parameter of type in (AtclauseOrderCheck.java:0)\ - - Method has parameter of type in (AtclauseOrderCheck.java:0)\ - - Method has parameter of type in (AtclauseOrderCheck.java:0)\ - - Method has parameter of type in (InvalidJavadocPositionCheck.java:0)\ - - Method has parameter of type in (JavadocBlockTagLocationCheck.java:0)\ - - Method has parameter of type in (JavadocBlockTagLocationCheck.java:0)\ - - Method has parameter of type in (JavadocContentLocationCheck.java:0)\ - - Method has parameter of type in (JavadocContentLocationCheck.java:0)\ - - Method has return type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has generic return type > with type argument depending on in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has return type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has generic return type > with type argument depending on in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has generic parameter type > with type argument depending on in (JavadocMethodCheck.java:0)\ - - Method has generic parameter type > with type argument depending on in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMethodCheck.java:0)\ - - Method has parameter of type in (JavadocMissingLeadingAsteriskCheck.java:0)\ - - Method has return type in (JavadocMissingLeadingAsteriskCheck.java:0)\ - - Method has parameter of type in (JavadocMissingLeadingAsteriskCheck.java:0)\ - - Method has parameter of type in (JavadocMissingLeadingAsteriskCheck.java:0)\ - - Method has parameter of type in (JavadocMissingLeadingAsteriskCheck.java:0)\ - - Method has parameter of type in (JavadocMissingWhitespaceAfterAsteriskCheck.java:0)\ - - Method depends on component type in (JavadocNodeImpl.java:0)\ - - Method has return type in (JavadocNodeImpl.java:0)\ - - Method depends on component type in (JavadocNodeImpl.java:0)\ - - Method has parameter of type in (JavadocNodeImpl.java:0)\ - - Method has parameter of type in (JavadocPackageCheck.java:0)\ - - Method throws type in (JavadocPackageCheck.java:0)\ - - Method has parameter of type in (JavadocParagraphCheck.java:0)\ - - Method has parameter of type in (JavadocParagraphCheck.java:0)\ - - Method has parameter of type in (JavadocParagraphCheck.java:0)\ - - Method has return type in (JavadocParagraphCheck.java:0)\ - - Method has parameter of type in (JavadocParagraphCheck.java:0)\ - - Method has return type in (JavadocParagraphCheck.java:0)\ - - Method has parameter of type in (JavadocParagraphCheck.java:0)\ - - Method has parameter of type in (JavadocParagraphCheck.java:0)\ - - Method has parameter of type in (JavadocParagraphCheck.java:0)\ - - Method has parameter of type in (JavadocParagraphCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has parameter of type in (JavadocStyleCheck.java:0)\ - - Method has generic return type > with type argument depending on in (JavadocTagContinuationIndentationCheck.java:0)\ - - Method has parameter of type in (JavadocTagContinuationIndentationCheck.java:0)\ - - Method has parameter of type in (JavadocTagContinuationIndentationCheck.java:0)\ - - Method has parameter of type in (JavadocTagContinuationIndentationCheck.java:0)\ - - Method has parameter of type in (JavadocTagContinuationIndentationCheck.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTagInfo.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocTypeCheck.java:0)\ - - Method has parameter of type in (JavadocVariableCheck.java:0)\ - - Method has parameter of type in (JavadocVariableCheck.java:0)\ - - Method has parameter of type in (JavadocVariableCheck.java:0)\ - - Method has parameter of type in (JavadocVariableCheck.java:0)\ - - Method has parameter of type in (JavadocVariableCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocMethodCheck.java:0)\ - - Method has parameter of type in (MissingJavadocPackageCheck.java:0)\ - - Method has parameter of type in (MissingJavadocPackageCheck.java:0)\ - - Method has parameter of type in (MissingJavadocPackageCheck.java:0)\ - - Method has parameter of type in (MissingJavadocPackageCheck.java:0)\ - - Method has parameter of type in (MissingJavadocTypeCheck.java:0)\ - - Method has parameter of type in (MissingJavadocTypeCheck.java:0)\ - - Method has parameter of type in (MissingJavadocTypeCheck.java:0)\ - - Method has parameter of type in (MissingJavadocTypeCheck.java:0)\ - - Method has parameter of type in (NonEmptyAtclauseDescriptionCheck.java:0)\ - - Method has parameter of type in (NonEmptyAtclauseDescriptionCheck.java:0)\ - - Method has parameter of type in (NonEmptyAtclauseDescriptionCheck.java:0)\ - - Method has parameter of type in (RequireEmptyLineBeforeBlockTagGroupCheck.java:0)\ - - Method has parameter of type in (RequireEmptyLineBeforeBlockTagGroupCheck.java:0)\ - - Method has parameter of type in (RequireEmptyLineBeforeBlockTagGroupCheck.java:0)\ - - Method has parameter of type in (RequireEmptyLineBeforeBlockTagGroupCheck.java:0)\ - - Method has parameter of type in (SingleLineJavadocCheck.java:0)\ - - Method has parameter of type in (SingleLineJavadocCheck.java:0)\ - - Method has parameter of type in (SingleLineJavadocCheck.java:0)\ - - Method has parameter of type in (SingleLineJavadocCheck.java:0)\ - - Method has parameter of type in (SingleLineJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has generic return type > with type argument depending on in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has return type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (SummaryJavadocCheck.java:0)\ - - Method has parameter of type in (WriteTagCheck.java:0)\ - - Method has parameter of type in (WriteTagCheck.java:0)\ - - Constructor ()> calls constructor ()> in (AbstractJavadocCheck.java:50)\ - - Constructor ()> calls constructor ()> in (InvalidJavadocPositionCheck.java:72)\ - - Method calls method in (JavadocTagInfo.java:76)\ - - Constructor ()> calls constructor ()> in (MissingJavadocPackageCheck.java:78)\ - - Method calls method in (JavadocTagInfo.java:90)\ - - Method calls method in (JavadocTagInfo.java:104)\ - - Constructor ()> calls constructor ()> in (JavadocPackageCheck.java:109)\ - - Method calls method in (JavadocTagInfo.java:118)\ - - Method calls method in (JavadocMissingWhitespaceAfterAsteriskCheck.java:120)\ - - Method calls constructor (java.lang.String, java.lang.Throwable)> in (JavadocPackageCheck.java:124)\ - - Method calls method in (MissingJavadocPackageCheck.java:124)\ - - Method calls method in (MissingJavadocPackageCheck.java:125)\ - - Method calls method in (JavadocMissingWhitespaceAfterAsteriskCheck.java:127)\ - - Method calls method in (JavadocMissingWhitespaceAfterAsteriskCheck.java:128)\ - - Method calls method in (JavadocTagInfo.java:132)\ - - Method calls method in (JavadocMissingWhitespaceAfterAsteriskCheck.java:133)\ - - Method calls method in (JavadocMissingWhitespaceAfterAsteriskCheck.java:133)\ - - Method calls method in (MissingJavadocPackageCheck.java:136)\ - - Method references method in (MissingJavadocPackageCheck.java:136)\ - - Method references method in (MissingJavadocPackageCheck.java:137)\ - - Method calls method in (MissingJavadocPackageCheck.java:142)\ - - Method calls method in (JavadocTagInfo.java:145)\ - - Method calls method in (JavadocTagInfo.java:148)\ - - Method calls method in (JavadocTagInfo.java:149)\ - - Method gets field in (JavadocTagInfo.java:150)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:151)\ - - Constructor ()> calls constructor ()> in (JavadocContentLocationCheck.java:155)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:157)\ - - Method calls method in (NonEmptyAtclauseDescriptionCheck.java:157)\ - - Method calls method in (NonEmptyAtclauseDescriptionCheck.java:158)\ - - Method calls method in (NonEmptyAtclauseDescriptionCheck.java:158)\ - - Method calls method in (MissingJavadocPackageCheck.java:159)\ - - Method calls method in (JavadocTagInfo.java:162)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:163)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:165)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:165)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:174)\ - - Method calls method in (JavadocTagInfo.java:176)\ - - Constructor ()> calls constructor ()> in (JavadocVariableCheck.java:177)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:179)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:179)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:180)\ - - Method calls method in (NonEmptyAtclauseDescriptionCheck.java:183)\ - - Method calls method in (NonEmptyAtclauseDescriptionCheck.java:184)\ - - Constructor ()> calls constructor ()> in (MissingJavadocTypeCheck.java:185)\ - - Method calls method in (NonEmptyAtclauseDescriptionCheck.java:185)\ - - Constructor ()> calls constructor ()> in (WriteTagCheck.java:186)\ - - Constructor ()> gets field in (JavadocVariableCheck.java:187)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:189)\ - - Method calls method in (JavadocTagInfo.java:190)\ - - Constructor ()> gets field in (MissingJavadocTypeCheck.java:194)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:198)\ - - Method calls method in (JavadocParagraphCheck.java:200)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:201)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:202)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:202)\ - - Method calls method in (JavadocParagraphCheck.java:203)\ - - Method calls method in (JavadocParagraphCheck.java:204)\ - - Method calls method in (JavadocTagInfo.java:204)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:208)\ - - Constructor ()> gets field in (WriteTagCheck.java:215)\ - - Method calls method in (JavadocParagraphCheck.java:216)\ - - Method calls method in (JavadocParagraphCheck.java:217)\ - - Method calls method in (JavadocParagraphCheck.java:218)\ - - Method calls method in (JavadocTagInfo.java:220)\ - - Method calls method in (JavadocTagInfo.java:221)\ - - Method calls method in (JavadocTagInfo.java:224)\ - - Method calls method in (JavadocTagInfo.java:224)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:225)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:229)\ - - Method calls method in (JavadocParagraphCheck.java:230)\ - - Method calls method in (JavadocContentLocationCheck.java:232)\ - - Method calls method in (JavadocParagraphCheck.java:232)\ - - Method calls method in (JavadocBlockTagLocationCheck.java:233)\ - - Method calls method in (JavadocParagraphCheck.java:233)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:233)\ - - Method calls method in (JavadocBlockTagLocationCheck.java:234)\ - - Method calls method in (JavadocParagraphCheck.java:236)\ - - Method calls method in (JavadocTagInfo.java:236)\ - - Method calls method in (JavadocBlockTagLocationCheck.java:238)\ - - Method calls method in (AtclauseOrderCheck.java:241)\ - - Method calls method in (AtclauseOrderCheck.java:242)\ - - Method calls method in (AtclauseOrderCheck.java:243)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:247)\ - - Method calls method in (AtclauseOrderCheck.java:248)\ - - Method calls method in (JavadocParagraphCheck.java:248)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:248)\ - - Method calls method in (JavadocParagraphCheck.java:249)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:249)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:249)\ - - Method calls method in (JavadocTagInfo.java:250)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:250)\ - - Method calls method in (JavadocBlockTagLocationCheck.java:251)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:251)\ - - Method calls method in (JavadocBlockTagLocationCheck.java:252)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:255)\ - - Method calls method in (JavadocVariableCheck.java:256)\ - - Method calls method in (JavadocVariableCheck.java:256)\ - - Constructor ()> calls constructor ()> in (MissingJavadocMethodCheck.java:264)\ - - Method calls method in (MissingJavadocTypeCheck.java:264)\ - - Method calls method in (AtclauseOrderCheck.java:265)\ - - Method calls method in (JavadocParagraphCheck.java:265)\ - - Method calls method in (JavadocParagraphCheck.java:265)\ - - Method calls method in (JavadocTagInfo.java:265)\ - - Method calls method in (MissingJavadocTypeCheck.java:265)\ - - Method calls method in (AtclauseOrderCheck.java:266)\ - - Method calls method in (JavadocParagraphCheck.java:266)\ - - Method calls method in (JavadocTagInfo.java:266)\ - - Method calls method in (JavadocParagraphCheck.java:267)\ - - Method calls method in (JavadocTagInfo.java:267)\ - - Method calls method in (AtclauseOrderCheck.java:268)\ - - Method calls method in (AtclauseOrderCheck.java:268)\ - - Method calls method in (AtclauseOrderCheck.java:270)\ - - Method calls method in (AtclauseOrderCheck.java:271)\ - - Method calls method in (AtclauseOrderCheck.java:271)\ - - Method calls method in (JavadocParagraphCheck.java:271)\ - - Method calls method in (JavadocVariableCheck.java:271)\ - - Method calls method in (JavadocVariableCheck.java:271)\ - - Method calls method in (AtclauseOrderCheck.java:272)\ - - Method calls method in (AtclauseOrderCheck.java:272)\ - - Constructor ()> gets field in (MissingJavadocMethodCheck.java:276)\ - - Method calls method in (MissingJavadocTypeCheck.java:282)\ - - Method calls method in (MissingJavadocTypeCheck.java:283)\ - - Method calls method in (MissingJavadocTypeCheck.java:285)\ - - Method calls method in (JavadocParagraphCheck.java:286)\ - - Method calls method in (WriteTagCheck.java:286)\ - - Method calls method in (JavadocParagraphCheck.java:287)\ - - Method calls method in (JavadocTagInfo.java:287)\ - - Method calls method in (JavadocVariableCheck.java:287)\ - - Method calls method in (MissingJavadocTypeCheck.java:287)\ - - Method calls method in (JavadocParagraphCheck.java:288)\ - - Method calls method in (JavadocTagInfo.java:288)\ - - Method calls method in (WriteTagCheck.java:288)\ - - Method calls method in (JavadocParagraphCheck.java:289)\ - - Method calls method in (JavadocVariableCheck.java:289)\ - - Method calls method in (JavadocParagraphCheck.java:290)\ - - Method calls method in (JavadocVariableCheck.java:290)\ - - Method calls method in (JavadocTagInfo.java:291)\ - - Method calls method in (JavadocTagInfo.java:291)\ - - Method calls method in (JavadocTagInfo.java:292)\ - - Method calls method in (JavadocTagInfo.java:292)\ - - Method calls method in (WriteTagCheck.java:293)\ - - Constructor ()> calls constructor ()> in (JavadocStyleCheck.java:300)\ - - Method calls method in (JavadocTagInfo.java:304)\ - - Method calls method in (SingleLineJavadocCheck.java:307)\ - - Method calls method in (AbstractJavadocCheck.java:308)\ - - Method calls constructor (int, int)> in (AbstractJavadocCheck.java:309)\ - - Method calls method in (AbstractJavadocCheck.java:309)\ - - Method calls method in (JavadocParagraphCheck.java:309)\ - - Method calls method in (JavadocTagInfo.java:318)\ - - Method calls method in (SingleLineJavadocCheck.java:318)\ - - Method calls method in (JavadocParagraphCheck.java:325)\ - - Method calls method in (JavadocParagraphCheck.java:326)\ - - Method calls method in (JavadocParagraphCheck.java:327)\ - - Method calls method in (JavadocTagInfo.java:332)\ - - Method calls method in (SummaryJavadocCheck.java:337)\ - - Method calls method in (WriteTagCheck.java:338)\ - - Constructor ()> gets field in (JavadocStyleCheck.java:340)\ - - Method calls method in (SummaryJavadocCheck.java:343)\ - - Method calls method in (JavadocTagInfo.java:346)\ - - Method calls method in (SummaryJavadocCheck.java:347)\ - - Method calls method in (SummaryJavadocCheck.java:359)\ - - Method calls method in (SummaryJavadocCheck.java:375)\ - - Method calls method in (SummaryJavadocCheck.java:377)\ - - Method calls method in (AbstractJavadocCheck.java:378)\ - - Method calls method in (MissingJavadocMethodCheck.java:384)\ - - Method calls method in (MissingJavadocMethodCheck.java:384)\ - - Method calls method in (AbstractJavadocCheck.java:395)\ - - Method calls method in (SummaryJavadocCheck.java:399)\ - - Method calls method in (AbstractJavadocCheck.java:400)\ - - Method calls method in (MissingJavadocMethodCheck.java:400)\ - - Method calls method in (JavadocStyleCheck.java:401)\ - - Method calls method in (JavadocStyleCheck.java:401)\ - - Method calls method in (JavadocStyleCheck.java:401)\ - - Method calls method in (MissingJavadocMethodCheck.java:401)\ - - Method calls method in (MissingJavadocMethodCheck.java:403)\ - - Method calls method in (SummaryJavadocCheck.java:404)\ - - Method calls method in (SummaryJavadocCheck.java:406)\ - - Method calls method in (MissingJavadocMethodCheck.java:407)\ - - Method calls method in (JavadocStyleCheck.java:416)\ - - Method calls method in (JavadocStyleCheck.java:423)\ - - Method calls method in (JavadocStyleCheck.java:424)\ - - Method calls method in (JavadocStyleCheck.java:426)\ - - Method calls method in (JavadocStyleCheck.java:428)\ - - Method calls method in (MissingJavadocMethodCheck.java:433)\ - - Method calls method in (MissingJavadocMethodCheck.java:434)\ - - Constructor ()> calls constructor ()> in (JavadocTypeCheck.java:435)\ - - Method calls method in (MissingJavadocMethodCheck.java:435)\ - - Method calls method in (SummaryJavadocCheck.java:440)\ - - Method calls method in (SummaryJavadocCheck.java:443)\ - - Method calls method in (SummaryJavadocCheck.java:445)\ - - Method calls method in (SummaryJavadocCheck.java:448)\ - - Method calls method in (MissingJavadocMethodCheck.java:450)\ - - Method calls method in (SummaryJavadocCheck.java:450)\ - - Method calls method in (MissingJavadocMethodCheck.java:451)\ - - Method calls method in (SummaryJavadocCheck.java:452)\ - - Method calls method in (JavadocStyleCheck.java:469)\ - - Method calls method in (MissingJavadocMethodCheck.java:474)\ - - Method calls method in (JavadocStyleCheck.java:475)\ - - Method calls method in (MissingJavadocMethodCheck.java:475)\ - - Method calls method in (JavadocStyleCheck.java:485)\ - - Constructor ()> gets field in (JavadocTypeCheck.java:486)\ - - Method calls method in (SummaryJavadocCheck.java:487)\ - - Method calls method in (JavadocStyleCheck.java:488)\ - - Method calls method in (SummaryJavadocCheck.java:492)\ - - Method calls method in (SummaryJavadocCheck.java:504)\ - - Method calls method in (SummaryJavadocCheck.java:510)\ - - Constructor ()> calls constructor ()> in (JavadocMethodCheck.java:513)\ - - Method calls method in (SummaryJavadocCheck.java:513)\ - - Method calls method in (SummaryJavadocCheck.java:527)\ - - Method calls method in (SummaryJavadocCheck.java:530)\ - - Method calls method in (SummaryJavadocCheck.java:541)\ - - Method calls method in (SummaryJavadocCheck.java:546)\ - - Method calls method in (SummaryJavadocCheck.java:562)\ - - Method calls method in (SummaryJavadocCheck.java:564)\ - - Method calls method in (SummaryJavadocCheck.java:568)\ - - Method calls method in (JavadocStyleCheck.java:589)\ - - Method calls method in (JavadocStyleCheck.java:591)\ - - Method calls method in (JavadocTypeCheck.java:606)\ - - Method calls method in (JavadocTypeCheck.java:607)\ - - Method calls method in (SummaryJavadocCheck.java:637)\ - - Method calls method in (SummaryJavadocCheck.java:641)\ - - Method calls method in (SummaryJavadocCheck.java:642)\ - - Method calls method in (SummaryJavadocCheck.java:642)\ - - Method calls method in (SummaryJavadocCheck.java:645)\ - - Method calls method in (SummaryJavadocCheck.java:646)\ - - Method calls method in (JavadocTypeCheck.java:649)\ - - Method calls method in (JavadocTypeCheck.java:650)\ - - Method calls method in (JavadocTypeCheck.java:652)\ - - Method calls method in (JavadocTypeCheck.java:654)\ - - Method calls method in (SummaryJavadocCheck.java:662)\ - - Method calls method in (SummaryJavadocCheck.java:663)\ - - Method calls method in (SummaryJavadocCheck.java:664)\ - - Method calls method in (SummaryJavadocCheck.java:665)\ - - Method calls method in (SummaryJavadocCheck.java:669)\ - - Method calls method in (SummaryJavadocCheck.java:672)\ - - Method calls method in (SummaryJavadocCheck.java:690)\ - - Method calls method in (SummaryJavadocCheck.java:691)\ - - Method calls method in (JavadocMethodCheck.java:696)\ - - Method calls method in (JavadocMethodCheck.java:697)\ - - Method calls method in (JavadocMethodCheck.java:698)\ - - Method calls method in (JavadocMethodCheck.java:699)\ - - Method calls method in (SummaryJavadocCheck.java:707)\ - - Method calls method in (SummaryJavadocCheck.java:709)\ - - Method calls method in (SummaryJavadocCheck.java:710)\ - - Method calls method in (JavadocMethodCheck.java:715)\ - - Method calls method in (JavadocMethodCheck.java:715)\ - - Method calls method in (JavadocMethodCheck.java:750)\ - - Method calls method in (JavadocMethodCheck.java:751)\ - - Method calls method in (JavadocMethodCheck.java:764)\ - - Method calls method in (JavadocMethodCheck.java:771)\ - - Method calls method in (JavadocTypeCheck.java:807)\ - - Method calls method in (JavadocTypeCheck.java:813)\ - - Method calls method in (JavadocMethodCheck.java:814)\ - - Method calls method in (JavadocTypeCheck.java:814)\ - - Method calls method in (JavadocMethodCheck.java:816)\ - - Method calls method in (JavadocMethodCheck.java:817)\ - - Method calls method in (JavadocMethodCheck.java:915)\ - - Method calls method in (JavadocMethodCheck.java:918)\ - - Method calls method in (JavadocMethodCheck.java:920)\ - - Method calls method in (JavadocMethodCheck.java:921)\ - - Method calls method in (JavadocMethodCheck.java:926)\ - - Method calls method in (JavadocMethodCheck.java:940)\ - - Method calls method in (JavadocMethodCheck.java:942)\ - - Method calls method in (JavadocMethodCheck.java:944)\ - - Method calls method in (JavadocMethodCheck.java:945)\ - - Method calls method in (JavadocMethodCheck.java:948)\ - - Method calls method in (JavadocMethodCheck.java:962)\ - - Method calls method in (JavadocMethodCheck.java:968)\ - - Method calls method in (JavadocMethodCheck.java:969)\ - - Method calls method in (JavadocMethodCheck.java:970)\ - - Method calls method in (JavadocMethodCheck.java:986)\ - - Method calls method in (JavadocMethodCheck.java:1000)\ - - Method calls method in (JavadocMethodCheck.java:1001)\ - - Method calls method in (JavadocMethodCheck.java:1016)\ - - Method calls method in (JavadocMethodCheck.java:1018)\ - - Method calls method in (JavadocMethodCheck.java:1019)\ - - Method calls method in (JavadocMethodCheck.java:1020)\ - - Method calls method in (JavadocMethodCheck.java:1021)\ - - Method calls method in (JavadocMethodCheck.java:1026)\ - - Method calls method in (JavadocMethodCheck.java:1027)\ - - Method calls method in (JavadocMethodCheck.java:1030)\ - - Method calls method in (JavadocMethodCheck.java:1032)\ - - Method calls method in (JavadocMethodCheck.java:1069)\ - - Method calls method in (JavadocMethodCheck.java:1073)\ - - Method calls method in (JavadocMethodCheck.java:1074)\ - - Method calls method in (JavadocMethodCheck.java:1078)\ - - Method calls method in (JavadocMethodCheck.java:1079)\ - - Method calls method in (JavadocMethodCheck.java:1083)\ - - Method calls method in (JavadocMethodCheck.java:1134)\ - - Method calls method in (JavadocMethodCheck.java:1140)\ - - Method calls method in (JavadocMethodCheck.java:1140)\ - - Method calls method in (JavadocMethodCheck.java:1162)\ - - Method calls method in (JavadocMethodCheck.java:1162)\ - - Method calls method in (JavadocMethodCheck.java:1184)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.FullIdent)> calls method in (JavadocMethodCheck.java:1393)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.FullIdent)> calls method in (JavadocMethodCheck.java:1394)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.FullIdent)> calls method in (JavadocMethodCheck.java:1395) -Cycle detected: Slice api -> \ - Slice utils -> \ - Slice checks.javadoc -> \ - Slice checks.naming -> \ - Slice api\ - 1. Dependencies of Slice api\ - - Method calls method in (AbstractFileSetCheck.java:97)\ - - Constructor (java.io.File, java.util.List)> gets field in (FileText.java:133)\ - - Method calls method in (AbstractFileSetCheck.java:177)\ - - Constructor (java.io.File, java.lang.String)> gets field in (FileText.java:180)\ - - Method calls method in (AbstractFileSetCheck.java:230)\ - - Method calls method in (FileContents.java:234)\ - - Method calls method in (AbstractCheck.java:245)\ - - Method calls method in (AbstractCheck.java:275)\ - 2. Dependencies of Slice utils\ - - Method has return type in (JavadocUtil.java:0)\ - - Method calls method in (JavadocUtil.java:121)\ - - Method calls constructor (int, int, java.lang.String, java.lang.String)> in (JavadocUtil.java:123)\ - - Method calls constructor (int, int, java.lang.String)> in (JavadocUtil.java:126)\ - - Method calls constructor (java.util.Collection, java.util.Collection)> in (JavadocUtil.java:130)\ - 3. Dependencies of Slice checks.javadoc\ - - Field depends on component type in (JavadocMethodCheck.java:0)\ - - Method depends on component type in (JavadocMethodCheck.java:0)\ - - Constructor ()> gets field in (JavadocMethodCheck.java:585)\ - - Constructor ()> gets field in (JavadocMethodCheck.java:585)\ - - Constructor ()> gets field in (JavadocMethodCheck.java:585)\ - - Constructor ()> gets field in (JavadocMethodCheck.java:585)\ - 4. Dependencies of Slice checks.naming\ - - Class extends class in (AbbreviationAsWordInNameCheck.java:0)\ - - Class extends class in (AbstractClassNameCheck.java:0)\ - - Class extends class in (AbstractNameCheck.java:0)\ - - Class extends class in (PackageNameCheck.java:0)\ - - Method has generic return type > with type argument depending on in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbstractAccessControlNameCheck.java:0)\ - - Method has parameter of type in (AbstractAccessControlNameCheck.java:0)\ - - Method has parameter of type in (AbstractAccessControlNameCheck.java:0)\ - - Method has parameter of type in (AbstractClassNameCheck.java:0)\ - - Method has parameter of type in (AbstractClassNameCheck.java:0)\ - - Method has parameter of type in (AbstractClassNameCheck.java:0)\ - - Method has parameter of type in (AbstractNameCheck.java:0)\ - - Method has parameter of type in (AbstractNameCheck.java:0)\ - - Method has parameter of type in (CatchParameterNameCheck.java:0)\ - - Method has parameter of type in (ClassTypeParameterNameCheck.java:0)\ - - Method has parameter of type in (ConstantNameCheck.java:0)\ - - Method has parameter of type in (IllegalIdentifierNameCheck.java:0)\ - - Method has parameter of type in (InterfaceTypeParameterNameCheck.java:0)\ - - Method has parameter of type in (LambdaParameterNameCheck.java:0)\ - - Method has parameter of type in (LambdaParameterNameCheck.java:0)\ - - Method has parameter of type in (LocalFinalVariableNameCheck.java:0)\ - - Method has parameter of type in (LocalVariableNameCheck.java:0)\ - - Method has parameter of type in (LocalVariableNameCheck.java:0)\ - - Method has parameter of type in (MemberNameCheck.java:0)\ - - Method has parameter of type in (MethodNameCheck.java:0)\ - - Method has parameter of type in (MethodTypeParameterNameCheck.java:0)\ - - Method has parameter of type in (PackageNameCheck.java:0)\ - - Method has parameter of type in (ParameterNameCheck.java:0)\ - - Method has parameter of type in (ParameterNameCheck.java:0)\ - - Method has parameter of type in (PatternVariableNameCheck.java:0)\ - - Method has parameter of type in (RecordComponentNameCheck.java:0)\ - - Method has parameter of type in (RecordTypeParameterNameCheck.java:0)\ - - Method has parameter of type in (StaticVariableNameCheck.java:0)\ - - Constructor (java.lang.String)> calls constructor ()> in (AbstractNameCheck.java:51)\ - - Method calls method in (AbstractAccessControlNameCheck.java:74)\ - - Method calls method in (AbstractNameCheck.java:77)\ - - Method calls method in (AbstractNameCheck.java:78)\ - - Method calls method in (AbstractNameCheck.java:81)\ - - Method calls method in (AbstractAccessControlNameCheck.java:86)\ - - Method calls method in (AbstractAccessControlNameCheck.java:88)\ - - Method calls method in (RecordTypeParameterNameCheck.java:100)\ - - Method calls method in (RecordTypeParameterNameCheck.java:101)\ - - Constructor ()> calls constructor ()> in (PackageNameCheck.java:104)\ - - Method calls method in (InterfaceTypeParameterNameCheck.java:105)\ - - Method calls method in (InterfaceTypeParameterNameCheck.java:106)\ - - Method calls method in (AbstractAccessControlNameCheck.java:108)\ - - Method calls method in (MethodTypeParameterNameCheck.java:110)\ - - Method calls method in (MethodTypeParameterNameCheck.java:111)\ - - Method calls method in (AbstractAccessControlNameCheck.java:112)\ - - Method calls method in (LambdaParameterNameCheck.java:118)\ - - Method calls method in (LambdaParameterNameCheck.java:118)\ - - Method calls method in (LambdaParameterNameCheck.java:120)\ - - Method calls method in (LambdaParameterNameCheck.java:121)\ - - Method calls method in (ClassTypeParameterNameCheck.java:126)\ - - Method calls method in (ClassTypeParameterNameCheck.java:127)\ - - Method calls method in (PackageNameCheck.java:146)\ - - Method calls method in (PackageNameCheck.java:146)\ - - Method calls method in (PackageNameCheck.java:147)\ - - Method calls method in (PackageNameCheck.java:148)\ - - Method calls method in (PackageNameCheck.java:149)\ - - Method calls method in (LocalFinalVariableNameCheck.java:151)\ - - Method calls method in (PackageNameCheck.java:151)\ - - Constructor ()> calls constructor ()> in (AbstractClassNameCheck.java:152)\ - - Method calls method in (LocalFinalVariableNameCheck.java:152)\ - - Method calls method in (StaticVariableNameCheck.java:152)\ - - Method calls method in (LocalFinalVariableNameCheck.java:153)\ - - Method calls method in (StaticVariableNameCheck.java:153)\ - - Method calls method in (StaticVariableNameCheck.java:154)\ - - Method calls method in (CatchParameterNameCheck.java:156)\ - - Method calls method in (CatchParameterNameCheck.java:156)\ - - Method calls method in (MemberNameCheck.java:170)\ - - Method calls method in (ConstantNameCheck.java:171)\ - - Method calls method in (MemberNameCheck.java:171)\ - - Method calls method in (ConstantNameCheck.java:173)\ - - Method calls method in (ConstantNameCheck.java:174)\ - - Method calls method in (ConstantNameCheck.java:181)\ - - Method calls method in (ConstantNameCheck.java:182)\ - - Method calls method in (ConstantNameCheck.java:183)\ - - Method calls method in (IllegalIdentifierNameCheck.java:183)\ - - Method calls method in (LocalVariableNameCheck.java:215)\ - - Method calls method in (LocalVariableNameCheck.java:215)\ - - Method calls method in (LocalVariableNameCheck.java:219)\ - - Method calls method in (LocalVariableNameCheck.java:220)\ - - Method calls method in (LocalVariableNameCheck.java:233)\ - - Method calls method in (LocalVariableNameCheck.java:233)\ - - Method calls method in (ParameterNameCheck.java:236)\ - - Method calls method in (ParameterNameCheck.java:238)\ - - Method calls method in (MethodNameCheck.java:239)\ - - Method calls method in (ParameterNameCheck.java:239)\ - - Method calls method in (ParameterNameCheck.java:239)\ - - Method calls method in (AbstractClassNameCheck.java:241)\ - - Method calls method in (AbstractClassNameCheck.java:241)\ - - Method calls method in (MethodNameCheck.java:242)\ - - Method calls method in (ParameterNameCheck.java:242)\ - - Method calls method in (MethodNameCheck.java:244)\ - - Method calls method in (MethodNameCheck.java:252)\ - - Method calls method in (MethodNameCheck.java:253)\ - - Method calls method in (AbstractClassNameCheck.java:260)\ - - Method calls method in (AbstractClassNameCheck.java:261)\ - - Method calls method in (ParameterNameCheck.java:268)\ - - Method calls method in (ParameterNameCheck.java:270)\ - - Method calls method in (ParameterNameCheck.java:274)\ - - Method calls method in (ParameterNameCheck.java:275)\ - - Constructor ()> calls constructor ()> in (AbbreviationAsWordInNameCheck.java:336)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:491)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:492)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:509)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:512)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:521)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:537)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:538)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:558)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:559)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:561)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:562)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:579)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:581)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:702)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:705) -Cycle detected: Slice api -> \ - Slice utils -> \ - Slice checks.javadoc.utils -> \ - Slice api\ - 1. Dependencies of Slice api\ - - Method calls method in (AbstractFileSetCheck.java:97)\ - - Constructor (java.io.File, java.util.List)> gets field in (FileText.java:133)\ - - Method calls method in (AbstractFileSetCheck.java:177)\ - - Constructor (java.io.File, java.lang.String)> gets field in (FileText.java:180)\ - - Method calls method in (AbstractFileSetCheck.java:230)\ - - Method calls method in (FileContents.java:234)\ - - Method calls method in (AbstractCheck.java:245)\ - - Method calls method in (AbstractCheck.java:275)\ - 2. Dependencies of Slice utils\ - - Method calls method in (JavadocUtil.java:102)\ - - Method calls method in (JavadocUtil.java:107)\ - - Method calls method in (JavadocUtil.java:114)\ - - Method calls method in (JavadocUtil.java:119)\ - - Method calls method in (JavadocUtil.java:121)\ - - Method calls method in (JavadocUtil.java:123)\ - - Method calls method in (JavadocUtil.java:123)\ - - Method calls method in (JavadocUtil.java:126)\ - 3. Dependencies of Slice checks.javadoc.utils\ - - Constructor (java.lang.String, java.lang.String, com.puppycrawl.tools.checkstyle.api.LineColumn)> has parameter of type in (TagInfo.java:0)\ - - Field has type in (TagInfo.java:0)\ - - Method has return type in (InlineTagUtil.java:0)\ - - Method has return type in (TagInfo.java:0)\ - - Method calls constructor (int, int)> in (BlockTagUtil.java:89)\ - - Method calls constructor (int, int)> in (InlineTagUtil.java:128) -Cycle detected: Slice api -> \ - Slice utils -> \ - Slice checks.naming -> \ - Slice api\ - 1. Dependencies of Slice api\ - - Method calls method in (AbstractFileSetCheck.java:97)\ - - Constructor (java.io.File, java.util.List)> gets field in (FileText.java:133)\ - - Method calls method in (AbstractFileSetCheck.java:177)\ - - Constructor (java.io.File, java.lang.String)> gets field in (FileText.java:180)\ - - Method calls method in (AbstractFileSetCheck.java:230)\ - - Method calls method in (FileContents.java:234)\ - - Method calls method in (AbstractCheck.java:245)\ - - Method calls method in (AbstractCheck.java:275)\ - 2. Dependencies of Slice utils\ - - Method has return type in (CheckUtil.java:0)\ - - Method has return type in (CheckUtil.java:0)\ - - Method has return type in (CheckUtil.java:0)\ - - Method gets field in (CheckUtil.java:404)\ - - Method gets field in (CheckUtil.java:406)\ - - Method gets field in (CheckUtil.java:409)\ - - Method gets field in (CheckUtil.java:430)\ - - Method gets field in (CheckUtil.java:435)\ - - Method gets field in (CheckUtil.java:438)\ - - Method gets field in (CheckUtil.java:441)\ - 3. Dependencies of Slice checks.naming\ - - Class extends class in (AbbreviationAsWordInNameCheck.java:0)\ - - Class extends class in (AbstractClassNameCheck.java:0)\ - - Class extends class in (AbstractNameCheck.java:0)\ - - Class extends class in (PackageNameCheck.java:0)\ - - Method has generic return type > with type argument depending on in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbbreviationAsWordInNameCheck.java:0)\ - - Method has parameter of type in (AbstractAccessControlNameCheck.java:0)\ - - Method has parameter of type in (AbstractAccessControlNameCheck.java:0)\ - - Method has parameter of type in (AbstractAccessControlNameCheck.java:0)\ - - Method has parameter of type in (AbstractClassNameCheck.java:0)\ - - Method has parameter of type in (AbstractClassNameCheck.java:0)\ - - Method has parameter of type in (AbstractClassNameCheck.java:0)\ - - Method has parameter of type in (AbstractNameCheck.java:0)\ - - Method has parameter of type in (AbstractNameCheck.java:0)\ - - Method has parameter of type in (CatchParameterNameCheck.java:0)\ - - Method has parameter of type in (ClassTypeParameterNameCheck.java:0)\ - - Method has parameter of type in (ConstantNameCheck.java:0)\ - - Method has parameter of type in (IllegalIdentifierNameCheck.java:0)\ - - Method has parameter of type in (InterfaceTypeParameterNameCheck.java:0)\ - - Method has parameter of type in (LambdaParameterNameCheck.java:0)\ - - Method has parameter of type in (LambdaParameterNameCheck.java:0)\ - - Method has parameter of type in (LocalFinalVariableNameCheck.java:0)\ - - Method has parameter of type in (LocalVariableNameCheck.java:0)\ - - Method has parameter of type in (LocalVariableNameCheck.java:0)\ - - Method has parameter of type in (MemberNameCheck.java:0)\ - - Method has parameter of type in (MethodNameCheck.java:0)\ - - Method has parameter of type in (MethodTypeParameterNameCheck.java:0)\ - - Method has parameter of type in (PackageNameCheck.java:0)\ - - Method has parameter of type in (ParameterNameCheck.java:0)\ - - Method has parameter of type in (ParameterNameCheck.java:0)\ - - Method has parameter of type in (PatternVariableNameCheck.java:0)\ - - Method has parameter of type in (RecordComponentNameCheck.java:0)\ - - Method has parameter of type in (RecordTypeParameterNameCheck.java:0)\ - - Method has parameter of type in (StaticVariableNameCheck.java:0)\ - - Constructor (java.lang.String)> calls constructor ()> in (AbstractNameCheck.java:51)\ - - Method calls method in (AbstractAccessControlNameCheck.java:74)\ - - Method calls method in (AbstractNameCheck.java:77)\ - - Method calls method in (AbstractNameCheck.java:78)\ - - Method calls method in (AbstractNameCheck.java:81)\ - - Method calls method in (AbstractAccessControlNameCheck.java:86)\ - - Method calls method in (AbstractAccessControlNameCheck.java:88)\ - - Method calls method in (RecordTypeParameterNameCheck.java:100)\ - - Method calls method in (RecordTypeParameterNameCheck.java:101)\ - - Constructor ()> calls constructor ()> in (PackageNameCheck.java:104)\ - - Method calls method in (InterfaceTypeParameterNameCheck.java:105)\ - - Method calls method in (InterfaceTypeParameterNameCheck.java:106)\ - - Method calls method in (AbstractAccessControlNameCheck.java:108)\ - - Method calls method in (MethodTypeParameterNameCheck.java:110)\ - - Method calls method in (MethodTypeParameterNameCheck.java:111)\ - - Method calls method in (AbstractAccessControlNameCheck.java:112)\ - - Method calls method in (LambdaParameterNameCheck.java:118)\ - - Method calls method in (LambdaParameterNameCheck.java:118)\ - - Method calls method in (LambdaParameterNameCheck.java:120)\ - - Method calls method in (LambdaParameterNameCheck.java:121)\ - - Method calls method in (ClassTypeParameterNameCheck.java:126)\ - - Method calls method in (ClassTypeParameterNameCheck.java:127)\ - - Method calls method in (PackageNameCheck.java:146)\ - - Method calls method in (PackageNameCheck.java:146)\ - - Method calls method in (PackageNameCheck.java:147)\ - - Method calls method in (PackageNameCheck.java:148)\ - - Method calls method in (PackageNameCheck.java:149)\ - - Method calls method in (LocalFinalVariableNameCheck.java:151)\ - - Method calls method in (PackageNameCheck.java:151)\ - - Constructor ()> calls constructor ()> in (AbstractClassNameCheck.java:152)\ - - Method calls method in (LocalFinalVariableNameCheck.java:152)\ - - Method calls method in (StaticVariableNameCheck.java:152)\ - - Method calls method in (LocalFinalVariableNameCheck.java:153)\ - - Method calls method in (StaticVariableNameCheck.java:153)\ - - Method calls method in (StaticVariableNameCheck.java:154)\ - - Method calls method in (CatchParameterNameCheck.java:156)\ - - Method calls method in (CatchParameterNameCheck.java:156)\ - - Method calls method in (MemberNameCheck.java:170)\ - - Method calls method in (ConstantNameCheck.java:171)\ - - Method calls method in (MemberNameCheck.java:171)\ - - Method calls method in (ConstantNameCheck.java:173)\ - - Method calls method in (ConstantNameCheck.java:174)\ - - Method calls method in (ConstantNameCheck.java:181)\ - - Method calls method in (ConstantNameCheck.java:182)\ - - Method calls method in (ConstantNameCheck.java:183)\ - - Method calls method in (IllegalIdentifierNameCheck.java:183)\ - - Method calls method in (LocalVariableNameCheck.java:215)\ - - Method calls method in (LocalVariableNameCheck.java:215)\ - - Method calls method in (LocalVariableNameCheck.java:219)\ - - Method calls method in (LocalVariableNameCheck.java:220)\ - - Method calls method in (LocalVariableNameCheck.java:233)\ - - Method calls method in (LocalVariableNameCheck.java:233)\ - - Method calls method in (ParameterNameCheck.java:236)\ - - Method calls method in (ParameterNameCheck.java:238)\ - - Method calls method in (MethodNameCheck.java:239)\ - - Method calls method in (ParameterNameCheck.java:239)\ - - Method calls method in (ParameterNameCheck.java:239)\ - - Method calls method in (AbstractClassNameCheck.java:241)\ - - Method calls method in (AbstractClassNameCheck.java:241)\ - - Method calls method in (MethodNameCheck.java:242)\ - - Method calls method in (ParameterNameCheck.java:242)\ - - Method calls method in (MethodNameCheck.java:244)\ - - Method calls method in (MethodNameCheck.java:252)\ - - Method calls method in (MethodNameCheck.java:253)\ - - Method calls method in (AbstractClassNameCheck.java:260)\ - - Method calls method in (AbstractClassNameCheck.java:261)\ - - Method calls method in (ParameterNameCheck.java:268)\ - - Method calls method in (ParameterNameCheck.java:270)\ - - Method calls method in (ParameterNameCheck.java:274)\ - - Method calls method in (ParameterNameCheck.java:275)\ - - Constructor ()> calls constructor ()> in (AbbreviationAsWordInNameCheck.java:336)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:491)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:492)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:509)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:512)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:521)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:537)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:538)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:558)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:559)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:561)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:562)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:579)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:581)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:702)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:705) -Cycle detected: Slice api -> \ - Slice utils -> \ - Slice xpath -> \ - Slice api\ - 1. Dependencies of Slice api\ - - Method calls method in (AbstractFileSetCheck.java:97)\ - - Constructor (java.io.File, java.util.List)> gets field in (FileText.java:133)\ - - Method calls method in (AbstractFileSetCheck.java:177)\ - - Constructor (java.io.File, java.lang.String)> gets field in (FileText.java:180)\ - - Method calls method in (AbstractFileSetCheck.java:230)\ - - Method calls method in (FileContents.java:234)\ - - Method calls method in (AbstractCheck.java:245)\ - - Method calls method in (AbstractCheck.java:275)\ - 2. Dependencies of Slice utils\ - - Method has generic return type > with type argument depending on in (XpathUtil.java:0)\ - - Method has parameter of type in (XpathUtil.java:0)\ - - Method has parameter of type in (XpathUtil.java:0)\ - - Method calls method in (XpathUtil.java:139)\ - - Method calls constructor (com.puppycrawl.tools.checkstyle.xpath.AbstractNode, com.puppycrawl.tools.checkstyle.xpath.AbstractNode, com.puppycrawl.tools.checkstyle.api.DetailAST, int, int)> in (XpathUtil.java:143)\ - - Method calls constructor (com.puppycrawl.tools.checkstyle.api.DetailAST)> in (XpathUtil.java:187)\ - - Method calls method in (XpathUtil.java:191)\ - 3. Dependencies of Slice xpath\ - - Constructor (com.puppycrawl.tools.checkstyle.xpath.AbstractNode, com.puppycrawl.tools.checkstyle.xpath.AbstractNode, com.puppycrawl.tools.checkstyle.api.DetailAST, int, int)> has parameter of type in (ElementNode.java:0)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.DetailAST)> has parameter of type in (RootNode.java:0)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.DetailAST, int, int, com.puppycrawl.tools.checkstyle.api.FileText, int)> has parameter of type in (XpathQueryGenerator.java:0)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.DetailAST, int, int, com.puppycrawl.tools.checkstyle.api.FileText, int)> has parameter of type in (XpathQueryGenerator.java:0)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.DetailAST, int, int, int, com.puppycrawl.tools.checkstyle.api.FileText, int)> has parameter of type in (XpathQueryGenerator.java:0)\ - - Constructor (com.puppycrawl.tools.checkstyle.api.DetailAST, int, int, int, com.puppycrawl.tools.checkstyle.api.FileText, int)> has parameter of type in (XpathQueryGenerator.java:0)\ - - Field has type in (ElementNode.java:0)\ - - Field has type in (RootNode.java:0)\ - - Field has type in (XpathQueryGenerator.java:0)\ - - Field has type in (XpathQueryGenerator.java:0)\ - - Method has return type in (ElementNode.java:0)\ - - Method has return type in (RootNode.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method has return type in (XpathQueryGenerator.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method has return type in (XpathQueryGenerator.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method has generic return type > with type argument depending on in (XpathQueryGenerator.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method has parameter of type in (XpathQueryGenerator.java:0)\ - - Method calls method in (ElementNode.java:59)\ - - Method calls method in (ElementNode.java:69)\ - - Method calls method in (RootNode.java:73)\ - - Method calls method in (ElementNode.java:79)\ - - Method calls method in (RootNode.java:83)\ - - Method calls method in (ElementNode.java:89)\ - - Constructor (com.puppycrawl.tools.checkstyle.TreeWalkerAuditEvent, int)> calls method in (XpathQueryGenerator.java:99)\ - - Method calls method in (ElementNode.java:99)\ - - Method calls method in (ElementNode.java:109)\ - - Method calls method in (XpathQueryGenerator.java:169)\ - - Method calls method in (XpathQueryGenerator.java:170)\ - - Method calls method in (XpathQueryGenerator.java:208)\ - - Method calls method in (XpathQueryGenerator.java:211)\ - - Method calls method in (XpathQueryGenerator.java:240)\ - - Method calls method in (XpathQueryGenerator.java:242)\ - - Method calls method in (XpathQueryGenerator.java:243)\ - - Method calls method in (XpathQueryGenerator.java:264)\ - - Method calls method in (XpathQueryGenerator.java:280)\ - - Method calls method in (XpathQueryGenerator.java:293)\ - - Method calls method in (XpathQueryGenerator.java:295)\ - - Method calls method in (XpathQueryGenerator.java:299)\ - - Method calls method in (XpathQueryGenerator.java:301)\ - - Method calls method in (XpathQueryGenerator.java:303)\ - - Method calls method in (XpathQueryGenerator.java:307)\ - - Method calls method in (XpathQueryGenerator.java:319)\ - - Method calls method in (XpathQueryGenerator.java:320)\ - - Method calls method in (XpathQueryGenerator.java:331)\ - - Method calls method in (XpathQueryGenerator.java:333) -Cycle detected: Slice checks.javadoc -> \ - Slice checks.naming -> \ - Slice utils -> \ - Slice checks.javadoc\ - 1. Dependencies of Slice checks.javadoc\ - - Field depends on component type in (JavadocMethodCheck.java:0)\ - - Method depends on component type in (JavadocMethodCheck.java:0)\ - - Constructor ()> gets field in (JavadocMethodCheck.java:585)\ - - Constructor ()> gets field in (JavadocMethodCheck.java:585)\ - - Constructor ()> gets field in (JavadocMethodCheck.java:585)\ - - Constructor ()> gets field in (JavadocMethodCheck.java:585)\ - 2. Dependencies of Slice checks.naming\ - - Constructor (java.lang.String)> calls method in (AbstractNameCheck.java:52)\ - - Method calls method in (AbstractAccessControlNameCheck.java:109)\ - - Method calls method in (AbstractAccessControlNameCheck.java:110)\ - - Method calls method in (LambdaParameterNameCheck.java:122)\ - - Method gets field in (LocalFinalVariableNameCheck.java:145)\ - - Method calls method in (LocalFinalVariableNameCheck.java:154)\ - - Method calls method in (StaticVariableNameCheck.java:159)\ - - Method gets field in (TypeNameCheck.java:171)\ - - Method calls method in (MemberNameCheck.java:173)\ - - Method calls method in (MemberNameCheck.java:174)\ - - Method calls method in (ConstantNameCheck.java:175)\ - - Method calls method in (ConstantNameCheck.java:176)\ - - Method calls method in (ConstantNameCheck.java:178)\ - - Method gets field in (IllegalIdentifierNameCheck.java:178)\ - - Method calls method in (LocalVariableNameCheck.java:221)\ - - Method calls method in (MethodNameCheck.java:232)\ - - Method calls method in (ParameterNameCheck.java:240)\ - - Method calls method in (ParameterNameCheck.java:242)\ - - Method gets field in (AbbreviationAsWordInNameCheck.java:485)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:525)\ - 3. Dependencies of Slice utils\ - - Method has return type in (JavadocUtil.java:0)\ - - Method calls method in (JavadocUtil.java:121)\ - - Method calls constructor (int, int, java.lang.String, java.lang.String)> in (JavadocUtil.java:123)\ - - Method calls constructor (int, int, java.lang.String)> in (JavadocUtil.java:126)\ - - Method calls constructor (java.util.Collection, java.util.Collection)> in (JavadocUtil.java:130) -Cycle detected: Slice checks.javadoc -> \ - Slice utils -> \ - Slice checks.javadoc\ - 1. Dependencies of Slice checks.javadoc\ - - Method calls method in (JavadocTagInfo.java:78)\ - - Method calls method in (JavadocTagInfo.java:92)\ - - Method calls method in (InvalidJavadocPositionCheck.java:104)\ - - Method calls method in (InvalidJavadocPositionCheck.java:106)\ - - Method calls method in (JavadocTagInfo.java:106)\ - - Method calls method in (InvalidJavadocPositionCheck.java:107)\ - - Method calls method in (MissingJavadocPackageCheck.java:108)\ - - Method calls method in (JavadocTagInfo.java:120)\ - - Method calls method in (JavadocMissingWhitespaceAfterAsteriskCheck.java:121)\ - - Method calls method in (JavadocMissingWhitespaceAfterAsteriskCheck.java:124)\ - - Method gets field in (AbstractJavadocCheck.java:144)\ - - Method calls method in (JavadocTagInfo.java:150)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:151)\ - - Method calls method in (MissingJavadocPackageCheck.java:159)\ - - Method calls method in (JavadocTagInfo.java:164)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:168)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:170)\ - - Method calls method in (NonEmptyAtclauseDescriptionCheck.java:170)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:175)\ - - Constructor ()> calls method in (AtclauseOrderCheck.java:176)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:177)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:178)\ - - Method calls method in (JavadocTagInfo.java:178)\ - - Method calls method in (JavadocNodeImpl.java:179)\ - - Method calls method in (AbstractJavadocCheck.java:181)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:183)\ - - Method calls method in (NonEmptyAtclauseDescriptionCheck.java:185)\ - - Method calls method in (JavadocTagInfo.java:192)\ - - Method calls method in (AbstractJavadocCheck.java:199)\ - - Method calls method in (AtclauseOrderCheck.java:199)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:200)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:201)\ - - Method calls method in (JavadocMissingLeadingAsteriskCheck.java:202)\ - - Method calls method in (JavadocParagraphCheck.java:204)\ - - Method calls method in (JavadocContentLocationCheck.java:207)\ - - Method calls method in (JavadocContentLocationCheck.java:208)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:212)\ - - Method calls method in (JavadocParagraphCheck.java:217)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:223)\ - - Method calls method in (WriteTagCheck.java:225)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:226)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:227)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:228)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:230)\ - - Method calls method in (JavadocContentLocationCheck.java:232)\ - - Method calls method in (JavadocTagContinuationIndentationCheck.java:236)\ - - Method calls method in (JavadocTagInfo.java:238)\ - - Method calls method in (AtclauseOrderCheck.java:243)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:244)\ - - Method calls method in (JavadocParagraphCheck.java:247)\ - - Method calls method in (JavadocParagraphCheck.java:250)\ - - Method calls method in (JavadocTagInfo.java:253)\ - - Method calls method in (RequireEmptyLineBeforeBlockTagGroupCheck.java:253)\ - - Method gets field in (MissingJavadocTypeCheck.java:255)\ - - Method calls method in (JavadocParagraphCheck.java:263)\ - - Static Initializer ()> calls method in (SummaryJavadocCheck.java:265)\ - - Method calls method in (JavadocParagraphCheck.java:267)\ - - Method calls method in (JavadocParagraphCheck.java:268)\ - - Constructor ()> calls method in (SummaryJavadocCheck.java:273)\ - - Method gets field in (WriteTagCheck.java:278)\ - - Method calls method in (MissingJavadocTypeCheck.java:279)\ - - Method calls method in (MissingJavadocTypeCheck.java:280)\ - - Method calls method in (JavadocParagraphCheck.java:284)\ - - Method calls method in (JavadocVariableCheck.java:284)\ - - Method calls method in (JavadocVariableCheck.java:285)\ - - Method calls method in (JavadocVariableCheck.java:286)\ - - Method calls method in (JavadocParagraphCheck.java:287)\ - - Method calls method in (MissingJavadocTypeCheck.java:288)\ - - Method calls method in (JavadocParagraphCheck.java:294)\ - - Method calls method in (AbstractJavadocCheck.java:304)\ - - Method calls method in (JavadocParagraphCheck.java:306)\ - - Method calls method in (JavadocTagInfo.java:306)\ - - Method calls method in (JavadocParagraphCheck.java:308)\ - - Method calls method in (SingleLineJavadocCheck.java:319)\ - - Method calls method in (JavadocParagraphCheck.java:324)\ - - Method calls method in (JavadocParagraphCheck.java:327)\ - - Method calls method in (JavadocTagInfo.java:334)\ - - Method calls method in (SingleLineJavadocCheck.java:335)\ - - Method calls method in (JavadocTagInfo.java:348)\ - - Method calls method in (SingleLineJavadocCheck.java:350)\ - - Static Initializer ()> calls method in (JavadocTagInfo.java:354)\ - - Method calls method in (SingleLineJavadocCheck.java:357)\ - - Method gets field in (MissingJavadocMethodCheck.java:359)\ - - Static Initializer ()> calls method in (JavadocTagInfo.java:367)\ - - Method calls method in (AbstractJavadocCheck.java:370)\ - - Method calls method in (SingleLineJavadocCheck.java:370)\ - - Method calls method in (AbstractJavadocCheck.java:376)\ - - Method calls method in (MissingJavadocMethodCheck.java:381)\ - - Method calls method in (SummaryJavadocCheck.java:385)\ - - Method gets field in (JavadocStyleCheck.java:388)\ - - Method calls method in (SummaryJavadocCheck.java:398)\ - - Method calls method in (SummaryJavadocCheck.java:400)\ - - Method calls method in (SummaryJavadocCheck.java:415)\ - - Method calls method in (JavadocStyleCheck.java:417)\ - - Method calls method in (JavadocStyleCheck.java:419)\ - - Method calls method in (JavadocStyleCheck.java:420)\ - - Method calls method in (MissingJavadocMethodCheck.java:420)\ - - Method calls method in (MissingJavadocMethodCheck.java:420)\ - - Method calls method in (JavadocStyleCheck.java:421)\ - - Method calls method in (MissingJavadocMethodCheck.java:437)\ - - Method calls method in (MissingJavadocMethodCheck.java:469)\ - - Method calls method in (SummaryJavadocCheck.java:548)\ - - Static Initializer ()> calls method in (JavadocMethodCheck.java:558)\ - - Static Initializer ()> calls method in (JavadocMethodCheck.java:562)\ - - Static Initializer ()> calls method in (JavadocMethodCheck.java:567)\ - - Static Initializer ()> calls method in (JavadocMethodCheck.java:576)\ - - Static Initializer ()> calls method in (JavadocMethodCheck.java:579)\ - - Static Initializer ()> calls method in (JavadocMethodCheck.java:582)\ - - Method gets field in (JavadocTypeCheck.java:597)\ - - Method calls method in (JavadocTypeCheck.java:610)\ - - Method calls method in (JavadocTypeCheck.java:619)\ - - Method calls method in (JavadocStyleCheck.java:633)\ - - Method calls method in (JavadocTypeCheck.java:646)\ - - Method calls method in (SummaryJavadocCheck.java:646)\ - - Method calls method in (JavadocTypeCheck.java:647)\ - - Method calls method in (JavadocTypeCheck.java:655)\ - - Method calls method in (JavadocTypeCheck.java:665)\ - - Method gets field in (JavadocTypeCheck.java:665)\ - - Method calls method in (SummaryJavadocCheck.java:670)\ - - Method calls method in (SummaryJavadocCheck.java:693)\ - - Method calls method in (JavadocMethodCheck.java:731)\ - - Method calls method in (JavadocMethodCheck.java:733)\ - - Method calls method in (JavadocMethodCheck.java:761)\ - - Method calls method in (JavadocMethodCheck.java:770)\ - - Method calls method in (JavadocTypeCheck.java:811)\ - - Method calls method in (JavadocMethodCheck.java:1101)\ - - Method calls method in (JavadocMethodCheck.java:1117)\ - - Method calls method in (JavadocMethodCheck.java:1117)\ - 2. Dependencies of Slice utils\ - - Method has return type in (JavadocUtil.java:0)\ - - Method calls method in (JavadocUtil.java:121)\ - - Method calls constructor (int, int, java.lang.String, java.lang.String)> in (JavadocUtil.java:123)\ - - Method calls constructor (int, int, java.lang.String)> in (JavadocUtil.java:126)\ - - Method calls constructor (java.util.Collection, java.util.Collection)> in (JavadocUtil.java:130) -Cycle detected: Slice checks.naming -> \ - Slice utils -> \ - Slice checks.naming\ - 1. Dependencies of Slice checks.naming\ - - Constructor (java.lang.String)> calls method in (AbstractNameCheck.java:52)\ - - Method calls method in (AbstractAccessControlNameCheck.java:109)\ - - Method calls method in (AbstractAccessControlNameCheck.java:110)\ - - Method calls method in (LambdaParameterNameCheck.java:122)\ - - Method gets field in (LocalFinalVariableNameCheck.java:145)\ - - Method calls method in (LocalFinalVariableNameCheck.java:154)\ - - Method calls method in (StaticVariableNameCheck.java:159)\ - - Method gets field in (TypeNameCheck.java:171)\ - - Method calls method in (MemberNameCheck.java:173)\ - - Method calls method in (MemberNameCheck.java:174)\ - - Method calls method in (ConstantNameCheck.java:175)\ - - Method calls method in (ConstantNameCheck.java:176)\ - - Method calls method in (ConstantNameCheck.java:178)\ - - Method gets field in (IllegalIdentifierNameCheck.java:178)\ - - Method calls method in (LocalVariableNameCheck.java:221)\ - - Method calls method in (MethodNameCheck.java:232)\ - - Method calls method in (ParameterNameCheck.java:240)\ - - Method calls method in (ParameterNameCheck.java:242)\ - - Method gets field in (AbbreviationAsWordInNameCheck.java:485)\ - - Method calls method in (AbbreviationAsWordInNameCheck.java:525)\ - 2. Dependencies of Slice utils\ - - Method has return type in (CheckUtil.java:0)\ - - Method has return type in (CheckUtil.java:0)\ - - Method has return type in (CheckUtil.java:0)\ - - Method gets field in (CheckUtil.java:404)\ - - Method gets field in (CheckUtil.java:406)\ - - Method gets field in (CheckUtil.java:409)\ - - Method gets field in (CheckUtil.java:430)\ - - Method gets field in (CheckUtil.java:435)\ - - Method gets field in (CheckUtil.java:438)\ - - Method gets field in (CheckUtil.java:441) -Cycle detected: Slice utils -> \ - Slice xpath -> \ - Slice utils\ - 1. Dependencies of Slice utils\ - - Method has generic return type > with type argument depending on in (XpathUtil.java:0)\ - - Method has parameter of type in (XpathUtil.java:0)\ - - Method has parameter of type in (XpathUtil.java:0)\ - - Method calls method in (XpathUtil.java:139)\ - - Method calls constructor (com.puppycrawl.tools.checkstyle.xpath.AbstractNode, com.puppycrawl.tools.checkstyle.xpath.AbstractNode, com.puppycrawl.tools.checkstyle.api.DetailAST, int, int)> in (XpathUtil.java:143)\ - - Method calls constructor (com.puppycrawl.tools.checkstyle.api.DetailAST)> in (XpathUtil.java:187)\ - - Method calls method in (XpathUtil.java:191)\ - 2. Dependencies of Slice xpath\ - - Method calls method in (RootNode.java:53)\ - - Method calls method in (ElementNode.java:59)\ - - Method calls method in (ElementNode.java:79)\ - - Method calls method in (ElementNode.java:126)\ - - Method calls method in (ElementNode.java:128)\ - - Method calls method in (XpathQueryGenerator.java:156)\ - - Method references method in (XpathQueryGenerator.java:156)\ - - Method calls method in (XpathQueryGenerator.java:224)\ - - Method calls method in (XpathQueryGenerator.java:264)\ - - Method calls method in (XpathQueryGenerator.java:265)\ - - Method calls method in (XpathQueryGenerator.java:267)\ - - Method calls method in (XpathQueryGenerator.java:319) \ No newline at end of file diff --git a/config/archunit-store/stored.rules b/config/archunit-store/stored.rules deleted file mode 100644 index 02437d1a854..00000000000 --- a/config/archunit-store/stored.rules +++ /dev/null @@ -1 +0,0 @@ -slices\ matching\ 'com.puppycrawl.tools.checkstyle.(**)'\ should\ be\ free\ of\ cycles=slices-should-be-free-of-cycles-suppressions diff --git a/config/benchmark-config.xml b/config/benchmark-config.xml new file mode 100644 index 00000000000..eaf42a71e7e --- /dev/null +++ b/config/benchmark-config.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/config/checker-framework-suppressions/checker-index-suppressions.xml b/config/checker-framework-suppressions/checker-index-suppressions.xml index c4130019ade..78c29ff7e83 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 @@ -12,10 +12,10 @@ - src/main/java/com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter.java + src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java argument - incompatible argument for parameter capacity of StringBuilder. - final StringBuilder sb = new StringBuilder(bufLen); + incompatible argument for parameter bitIndex of BitSet.get. + return getBranchTokenTypes().get(tokenType);
found : int required: @NonNegative int @@ -25,8 +25,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java argument - incompatible argument for parameter bitIndex of get. - return getBranchTokenTypes().get(tokenType); + incompatible argument for parameter bitIndex of BitSet.set. + branchTokenTypes.set(type);
found : int required: @NonNegative int @@ -34,12 +34,23 @@ - src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java + src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java argument - incompatible argument for parameter bitIndex of set. - branchTokenTypes.set(type); + incompatible argument for parameter beginIndex of String.substring. + .substring(quoteLength, tokenTextLength - quoteLength);
- found : int + found : @LTEqLengthOf("com.puppycrawl.tools.checkstyle.JavaAstVisitor.QUOTE") int + required: @LTEqLengthOf("ctx.getText()") int +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java + argument + incompatible argument for parameter endIndex of String.substring. + .substring(quoteLength, tokenTextLength - quoteLength); +
+ found : @GTENegativeOne int required: @NonNegative int
@@ -47,7 +58,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 @@ -59,22 +70,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
@@ -114,7 +124,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 @@ -125,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(0) == '&' && ent.endsWith(";")) {
found : @UpperBoundLiteral(0) int @@ -136,7 +146,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 @@ -147,7 +157,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 @@ -202,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. final String[] txt = {line.substring(startColNo)};
found : int @@ -213,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. returnValue[0] = line(startLineNo - 1).substring(startColNo);
found : int @@ -224,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 @@ -235,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. final String[] txt = {line.substring(startColNo)};
found : int @@ -246,7 +256,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 +267,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 @@ -268,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 @@ -279,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 @@ -290,7 +300,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 @@ -301,7 +311,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 @@ -375,6 +385,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 @@ -397,18 +418,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 @@ -445,7 +454,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 @@ -456,7 +465,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 @@ -522,7 +531,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 @@ -533,7 +542,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 @@ -555,7 +564,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 @@ -566,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. expr = quotedText.substring(1, quotedText.length() - 1);
found : @GTENegativeOne int @@ -577,7 +586,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 @@ -588,7 +597,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 @@ -599,7 +608,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 +619,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 @@ -621,7 +630,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 @@ -632,7 +641,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 @@ -643,7 +652,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 @@ -665,7 +674,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 @@ -676,7 +685,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 @@ -687,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 @@ -698,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 @@ -709,7 +718,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 @@ -720,7 +729,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 @@ -731,7 +740,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 +751,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 @@ -753,7 +762,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 @@ -764,7 +773,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 @@ -775,7 +784,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 @@ -786,7 +795,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 @@ -797,7 +806,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 @@ -808,7 +817,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 @@ -819,7 +828,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 +839,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 @@ -841,7 +850,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 @@ -852,7 +861,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 @@ -863,7 +872,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 @@ -874,7 +883,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 @@ -885,7 +894,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 @@ -896,7 +905,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 @@ -907,7 +916,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 @@ -918,7 +927,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 @@ -929,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 ASSIGN_TOKENS.get(tokenType);
found : int @@ -940,7 +949,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 @@ -951,7 +960,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 @@ -962,7 +971,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 @@ -973,7 +982,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 @@ -984,7 +993,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 @@ -995,7 +1004,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 @@ -1006,7 +1015,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 @@ -1029,22 +1038,21 @@ 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 - if (CommonUtil.isBlank(lines[i - 1])) { + final String import2Token = import2Tokens[i];
found : int - required: @IndexFor("lines") or @LTLengthOf("lines") -- an integer less than lines's length + required: @IndexFor("import2Tokens") or @LTLengthOf("import2Tokens") -- an integer less than import2Tokens's length
src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java - array.access.unsafe.high.range + array.access.unsafe.high Potentially unsafe array access: the index could be larger than the array's bound - final String import2Token = import2Tokens[i]; + if (CommonUtil.isBlank(lines[i - 1])) {
- 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) + found : int + required: @IndexFor("lines") or @LTLengthOf("lines") -- an integer less than lines's length
@@ -1062,7 +1070,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 @@ -1073,7 +1081,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 @@ -1084,7 +1092,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 @@ -1095,7 +1103,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 @@ -1106,7 +1114,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 @@ -1139,7 +1147,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 @@ -1227,20 +1235,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 @@ -1251,7 +1258,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 @@ -1262,7 +1269,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 @@ -1273,7 +1280,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 @@ -1284,7 +1291,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 @@ -1295,7 +1302,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 @@ -1306,7 +1313,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 @@ -1317,7 +1324,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 +1335,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 @@ -1339,7 +1346,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 @@ -1350,7 +1357,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 @@ -1361,7 +1368,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 @@ -1394,7 +1401,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 +1412,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 @@ -1416,7 +1423,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,7 +1434,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 @@ -1438,19 +1445,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 @@ -1460,19 +1467,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 @@ -1482,7 +1489,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 @@ -1493,7 +1500,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 @@ -1526,7 +1533,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 @@ -1537,7 +1544,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 @@ -1548,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 @@ -1559,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 @@ -1570,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 @@ -1581,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 @@ -1592,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 @@ -1603,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.get(astType)
found : int @@ -1614,7 +1621,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 +1632,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 @@ -1636,7 +1643,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 @@ -1658,7 +1665,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 @@ -1666,28 +1673,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 - Potentially unsafe array access: the index could be larger than the array's bound - final DetailNode child = children[i]; -
- found : int - required: @IndexFor("children") or @LTLengthOf("children") -- an integer less than children's length -
-
- src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java array.access.unsafe.high.constant @@ -1790,8 +1775,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java argument - incompatible argument for parameter beginIndex of substring. - text = text.substring(column).trim(); + incompatible argument for parameter beginIndex of String.substring. + text = text.substring(column);
found : int required: @NonNegative int @@ -1801,7 +1786,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 @@ -1812,7 +1797,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 @@ -1823,7 +1808,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 @@ -1834,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. && text[curr.getLineNo()].charAt(curr.getColumnNo()) != character) {
found : int @@ -1845,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. .charAt(endTag.getColumnNo() - 1) == '/';
found : int @@ -1856,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. && text[curr.getLineNo()].charAt(curr.getColumnNo()) != character) {
found : int @@ -1867,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. .charAt(endTag.getColumnNo() - 1) == '/';
found : int @@ -1878,7 +1863,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 @@ -1889,7 +1874,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 @@ -1900,7 +1885,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 @@ -2076,7 +2061,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 @@ -2087,7 +2072,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 @@ -2098,7 +2083,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 @@ -2109,7 +2094,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 @@ -2120,7 +2105,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 @@ -2131,7 +2116,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 @@ -2142,7 +2127,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 @@ -2153,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);
found : int @@ -2164,7 +2149,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 +2160,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 @@ -2186,7 +2171,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 @@ -2197,7 +2182,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 @@ -2208,7 +2193,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 @@ -2219,7 +2204,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 @@ -2230,7 +2215,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 @@ -2241,7 +2226,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 @@ -2252,7 +2237,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 @@ -2362,7 +2347,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 @@ -2373,7 +2358,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 @@ -2384,7 +2369,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 @@ -2557,7 +2542,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 @@ -2568,7 +2553,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 @@ -2579,7 +2564,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 @@ -2590,7 +2575,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 @@ -2601,10 +2586,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
@@ -2612,18 +2597,84 @@ 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
+ + src/main/java/com/puppycrawl/tools/checkstyle/site/ClassAndPropertiesSettersJavadocScraper.java + argument + incompatible argument for parameter beginIndex of String.substring. + return Introspector.decapitalize(setterName.substring("set".length())); +
+ found : @LTEqLengthOf(""set"") int + required: @LTEqLengthOf("setterName") int +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + argument + incompatible argument for parameter beginIndex of String.substring. + description = firstLetterCapitalized + descriptionString.substring(1); +
+ found : @UpperBoundLiteral(1) int + required: @LTEqLengthOf("descriptionString") int +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + argument + incompatible argument for parameter beginIndex of String.substring. + href = href.substring(1, href.length() - 1); +
+ found : @UpperBoundLiteral(1) int + required: @LTEqLengthOf("href") int +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + argument + incompatible argument for parameter endIndex of String.substring. + href = href.substring(1, href.length() - 1); +
+ found : @GTENegativeOne int + required: @NonNegative int +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + argument + incompatible argument for parameter endIndex of String.substring. + final String firstLetterCapitalized = descriptionString.substring(0, 1) +
+ found : @UpperBoundLiteral(1) int + required: @LTEqLengthOf("descriptionString") int +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + array.access.unsafe.high.constant + Potentially unsafe array access: the constant index 0 could be larger than the array's bound + final Class<?> parameterClass = (Class<?>) type.getActualTypeArguments()[0]; +
+ found : Type [] + required: @MinLen(1) -- an array guaranteed to have at least 1 elements +
+
+ 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 @@ -2634,7 +2685,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 @@ -2645,7 +2696,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 @@ -2656,7 +2707,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 @@ -2667,7 +2718,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 @@ -2678,7 +2729,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 @@ -2689,7 +2740,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 @@ -2700,8 +2751,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 @@ -2711,8 +2762,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 @@ -2722,8 +2773,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 @@ -2733,8 +2784,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 @@ -2744,7 +2795,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 @@ -2755,7 +2806,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 @@ -2763,21 +2814,10 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/utils/CodePointUtil.java - argument - incompatible argument for parameter from of copyOfRange. - return Arrays.copyOfRange(codePoints, startIndex, codePoints.length); -
- found : int - required: @LTEqLengthOf("codePoints") int -
-
- 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 @@ -2788,7 +2828,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 @@ -2799,7 +2839,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 @@ -2810,7 +2850,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 @@ -2821,7 +2861,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 @@ -2865,7 +2905,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 @@ -2966,10 +3006,21 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.java + argument + incompatible argument for parameter newLength of Arrays.copyOf. + return Arrays.copyOf(array, length); +
+ found : int + required: @NonNegative int +
+
+ 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 @@ -2980,7 +3031,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 @@ -2991,7 +3042,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-lock-tainting-suppressions.xml b/config/checker-framework-suppressions/checker-lock-tainting-suppressions.xml index 25509e2971a..e732b8b1223 100644 --- a/config/checker-framework-suppressions/checker-lock-tainting-suppressions.xml +++ b/config/checker-framework-suppressions/checker-lock-tainting-suppressions.xml @@ -89,7 +89,7 @@
found : @GuardSatisfied Entry<@GuardedBy String, @GuardedBy String> required: @GuardedBy Entry<@GuardedBy String, @GuardedBy String> - Consequence: method in @GuardedBy Entry<@GuardedBy String, @GuardedBy String> + Consequence: method in @GuardedBy Entry<K extends @GuardedBy Object, V extends @GuardedBy Object> @GuardedBy String getKey(@GuardSatisfied Entry<@GuardedBy String, @GuardedBy String> this) is not a valid method reference for method in @GuardedBy Function<@GuardedBy Entry<@GuardedBy String, @GuardedBy String>, @GuardedBy String> @GuardedBy String apply(@GuardedBy Function<@GuardedBy Entry<@GuardedBy String, @GuardedBy String>, @GuardedBy String> this, @GuardedBy Entry<@GuardedBy String, @GuardedBy String> p0) @@ -100,7 +100,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertiesExpander.java methodref.receiver.bound Incompatible receiver type - .collect(Collectors.toMap(Function.identity(), properties::getProperty)); + Collectors.toUnmodifiableMap(Function.identity(), properties::getProperty));
found : @GuardedBy Properties required: @GuardSatisfied Properties @@ -115,14 +115,14 @@ src/main/java/com/puppycrawl/tools/checkstyle/TreeWalker.java methodref.receiver Incompatible receiver type - .thenComparing(AbstractCheck::hashCode)); + .thenComparingInt(AbstractCheck::hashCode));
found : @GuardSatisfied Object required: @GuardedBy AbstractCheck Consequence: method in @GuardedBy AbstractCheck @GuardedBy int hashCode(@GuardSatisfied Object this) - is not a valid method reference for method in @GuardedBy Function<@GuardedBy AbstractCheck, @GuardedBy Integer> - @GuardedBy Integer apply(@GuardedBy Function<@GuardedBy AbstractCheck, @GuardedBy Integer> this, @GuardedBy AbstractCheck p0) + is not a valid method reference for method in @GuardedBy ToIntFunction<@GuardedBy AbstractCheck> + @GuardedBy int applyAsInt(@GuardedBy ToIntFunction<@GuardedBy AbstractCheck> this, @GuardedBy AbstractCheck p0)
@@ -145,14 +145,14 @@ src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java method.guarantee.violated @Pure method resolveEntity calls method getClassLoader with a weaker @ReleasesNoLocks side effect guarantee - getClass().getClassLoader(); + final ClassLoader loader = getClass().getClassLoader(); src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java method.guarantee.violated @Pure method resolveEntity calls method getResourceAsStream with a weaker @ReleasesNoLocks side effect guarantee - loader.getResourceAsStream(dtdResourceName); + final InputStream dtdIs = loader.getResourceAsStream(dtdResourceName); @@ -439,16 +439,21 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/annotation/MissingOverrideCheck.java - methodref.param - Incompatible parameter type for obj + type.arguments.not.inferred + Could not infer type arguments for Stream.iterate Stream.iterate(startNode.getLastChild(), Objects::nonNull,
- found : @GuardSatisfied Object - required: @GuardedBy DetailAST - Consequence: method in @GuardedBy Objects - @GuardedBy boolean nonNull(@GuardSatisfied Object p0) - is not a valid method reference for method in @GuardedBy Predicate<@GuardedBy DetailAST> - @GuardedBy boolean test(@GuardedBy Predicate<@GuardedBy DetailAST> this, @GuardedBy DetailAST p0) + unsatisfiable constraint: @GuardedBy DetailAST <: @GuardSatisfied Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/ConstructorsDeclarationGroupingCheck.java + type.arguments.not.inferred + Could not infer type arguments for Optional.map + .map(children::indexOf); +
+ unsatisfiable constraint: @GuardedBy DetailAST <: @GuardSatisfied Object
@@ -505,7 +510,7 @@
found : @GuardSatisfied Entry<@GuardedBy String, @GuardedBy ClassDesc> required: @GuardedBy Entry<@GuardedBy String, @GuardedBy ClassDesc> - Consequence: method in @GuardedBy Entry<@GuardedBy String, @GuardedBy ClassDesc> + Consequence: method in @GuardedBy Entry<K extends @GuardedBy Object, V extends @GuardedBy Object> @GuardedBy ClassDesc getValue(@GuardSatisfied Entry<@GuardedBy String, @GuardedBy ClassDesc> this) is not a valid method reference for method in @GuardedBy Function<@GuardedBy Entry<@GuardedBy String, @GuardedBy ClassDesc>, @GuardedBy ClassDesc> @GuardedBy ClassDesc apply(@GuardedBy Function<@GuardedBy Entry<@GuardedBy String, @GuardedBy ClassDesc>, @GuardedBy ClassDesc> this, @GuardedBy Entry<@GuardedBy String, @GuardedBy ClassDesc> p0) @@ -541,6 +546,16 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.java + type.arguments.not.inferred + Could not infer type arguments for Stream.collect + .collect(Collectors.joining(", ")), +
+ unsatisfiable constraint: @GuardedBy String <: @GuardSatisfied Object +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/HtmlTag.java override.receiver @@ -630,21 +645,6 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/checks/metrics/AbstractClassCouplingCheck.java - methodref.receiver.bound - Incompatible receiver type - .forEach(excludeClassesRegexps::add); -
- found : @GuardedBy List<@GuardedBy Pattern> - required: @GuardSatisfied List<@GuardedBy Pattern> - Consequence: method - @GuardedBy List<@GuardedBy Pattern> - is not a valid method reference for method in @GuardedBy List<@GuardedBy Pattern> - @GuardedBy boolean add(@GuardSatisfied List<@GuardedBy Pattern> this, @GuardedBy Pattern p0) -
-
- src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AccessModifierOption.java method.guarantee.violated @@ -669,16 +669,11 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/sizes/MethodLengthCheck.java - methodref.param - Incompatible parameter type for obj - node.getLastChild(), Objects::nonNull, DetailAST::getPreviousSibling + type.arguments.not.inferred + Could not infer type arguments for Stream.iterate + Stream.iterate(
- found : @GuardSatisfied Object - required: @GuardedBy DetailAST - Consequence: method in @GuardedBy Objects - @GuardedBy boolean nonNull(@GuardSatisfied Object p0) - is not a valid method reference for method in @GuardedBy Predicate<@GuardedBy DetailAST> - @GuardedBy boolean test(@GuardedBy Predicate<@GuardedBy DetailAST> this, @GuardedBy DetailAST p0) + unsatisfiable constraint: @GuardedBy DetailAST <: @GuardSatisfied Object
@@ -839,6 +834,69 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + && Objects.equals(getPatternSafely(checkRegexp), + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + && Objects.equals(getPatternSafely(messageRegexp), + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + getPatternSafely(suppressElement.checkRegexp)) + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + getPatternSafely(suppressElement.fileRegexp)) + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + getPatternSafely(suppressElement.messageRegexp)) + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + return Objects.equals(getPatternSafely(fileRegexp), + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method hashCode calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + getPatternSafely(messageRegexp), moduleId, linesCsv, columnsCsv); + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method hashCode calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + return Objects.hash(getPatternSafely(fileRegexp), getPatternSafely(checkRegexp), + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + method.guarantee.violated + @Pure method hashCode calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + return Objects.hash(getPatternSafely(fileRegexp), getPatternSafely(checkRegexp), + + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java override.param @@ -1109,6 +1167,69 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + && Objects.equals(getPatternSafely(checkRegexp), + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + && Objects.equals(getPatternSafely(messageRegexp), + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + getPatternSafely(xpathFilter.checkRegexp)) + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + getPatternSafely(xpathFilter.fileRegexp)) + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + getPatternSafely(xpathFilter.messageRegexp)) + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method equals calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + return Objects.equals(getPatternSafely(fileRegexp), + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method hashCode calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + getPatternSafely(messageRegexp), moduleId, xpathQuery); + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method hashCode calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + return Objects.hash(getPatternSafely(fileRegexp), getPatternSafely(checkRegexp), + + + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java + method.guarantee.violated + @Pure method hashCode calls method getPatternSafely with a weaker @ReleasesNoLocks side effect guarantee + return Objects.hash(getPatternSafely(fileRegexp), getPatternSafely(checkRegexp), + + src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java override.param @@ -1170,17 +1291,32 @@ - src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java - methodref.receiver + src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java + override.receiver Incompatible receiver type - .collect(BitSet::new, BitSet::set, BitSet::or); + public void println() { +
+ found : @GuardedBy CustomPrintWriter + required: @GuardSatisfied PrintWriter + Consequence: method in @GuardedBy CustomPrintWriter + void println(@GuardedBy CustomPrintWriter this) + cannot override method in @GuardedBy PrintWriter + void println(@GuardSatisfied PrintWriter this) +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java + override.receiver + Incompatible receiver type + public void write(String line, int offset, int length) {
- found : @GuardSatisfied BitSet - required: @GuardedBy BitSet - Consequence: method in @GuardedBy BitSet - void or(@GuardSatisfied BitSet this, @GuardedBy BitSet p0) - is not a valid method reference for method in @GuardedBy BiConsumer<@GuardedBy BitSet, @GuardedBy BitSet> - void accept(@GuardedBy BiConsumer<@GuardedBy BitSet, @GuardedBy BitSet> this, @GuardedBy BitSet p0, @GuardedBy BitSet p1) + found : @GuardedBy CustomPrintWriter + required: @GuardSatisfied PrintWriter + Consequence: method in @GuardedBy CustomPrintWriter + void write(@GuardedBy CustomPrintWriter this, @GuardedBy String p0, @GuardedBy int p1, @GuardedBy int p2) + cannot override method in @GuardedBy PrintWriter + void write(@GuardSatisfied PrintWriter this, @GuardedBy String p0, @GuardedBy int p1, @GuardedBy int p2)
@@ -1188,14 +1324,14 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java methodref.receiver Incompatible receiver type - .collect(BitSet::new, BitSet::set, BitSet::or); + .collect(Collectors.toUnmodifiableMap(Map.Entry::getValue, Map.Entry::getKey));
- found : @GuardSatisfied BitSet - required: @GuardedBy BitSet - Consequence: method in @GuardedBy BitSet - void or(@GuardSatisfied BitSet this, @GuardedBy BitSet p0) - is not a valid method reference for method in @GuardedBy BiConsumer<@GuardedBy BitSet, @GuardedBy BitSet> - void accept(@GuardedBy BiConsumer<@GuardedBy BitSet, @GuardedBy BitSet> this, @GuardedBy BitSet p0, @GuardedBy BitSet p1) + found : @GuardSatisfied Entry<@GuardedBy String, @GuardedBy Integer> + required: @GuardedBy Entry<@GuardedBy String, @GuardedBy Integer> + Consequence: method in @GuardedBy Entry<K extends @GuardedBy Object, V extends @GuardedBy Object> + @GuardedBy Integer getValue(@GuardSatisfied Entry<@GuardedBy String, @GuardedBy Integer> this) + is not a valid method reference for method in @GuardedBy Function<@GuardedBy Entry<@GuardedBy String, @GuardedBy Integer>, @GuardedBy Integer> + @GuardedBy Integer apply(@GuardedBy Function<@GuardedBy Entry<@GuardedBy String, @GuardedBy Integer>, @GuardedBy Integer> this, @GuardedBy Entry<@GuardedBy String, @GuardedBy Integer> p0)
@@ -1203,29 +1339,44 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java methodref.receiver Incompatible receiver type + .collect(Collectors.toUnmodifiableMap(Map.Entry::getValue, Map.Entry::getKey)); +
+ found : @GuardSatisfied Entry<@GuardedBy String, @GuardedBy Integer> + required: @GuardedBy Entry<@GuardedBy String, @GuardedBy Integer> + Consequence: method in @GuardedBy Entry<K extends @GuardedBy Object, V extends @GuardedBy Object> + @GuardedBy String getKey(@GuardSatisfied Entry<@GuardedBy String, @GuardedBy Integer> this) + is not a valid method reference for method in @GuardedBy Function<@GuardedBy Entry<@GuardedBy String, @GuardedBy Integer>, @GuardedBy String> + @GuardedBy String apply(@GuardedBy Function<@GuardedBy Entry<@GuardedBy String, @GuardedBy Integer>, @GuardedBy String> this, @GuardedBy Entry<@GuardedBy String, @GuardedBy Integer> p0) +
+ + + + src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java + type.arguments.not.inferred + Could not infer type arguments for IntStream.collect .collect(BitSet::new, BitSet::set, BitSet::or);
- found : @GuardSatisfied BitSet - required: @GuardedBy BitSet - Consequence: method in @GuardedBy BitSet - void set(@GuardSatisfied BitSet this, @GuardedBy int p0) - is not a valid method reference for method in @GuardedBy ObjIntConsumer<@GuardedBy BitSet> - void accept(@GuardedBy ObjIntConsumer<@GuardedBy BitSet> this, @GuardedBy BitSet p0, @GuardedBy int p1) + unsatisfiable constraint: @GuardedBy BitSet <: @GuardSatisfied BitSet
src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java - methodref.receiver - Incompatible receiver type + type.arguments.not.inferred + Could not infer type arguments for IntStream.collect .collect(BitSet::new, BitSet::set, BitSet::or);
- found : @GuardSatisfied BitSet - required: @GuardedBy BitSet - Consequence: method in @GuardedBy BitSet - void set(@GuardSatisfied BitSet this, @GuardedBy int p0) - is not a valid method reference for method in @GuardedBy ObjIntConsumer<@GuardedBy BitSet> - void accept(@GuardedBy ObjIntConsumer<@GuardedBy BitSet> this, @GuardedBy BitSet p0, @GuardedBy int p1) + unsatisfiable constraint: @GuardedBy BitSet <: @GuardSatisfied BitSet +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java + type.arguments.not.inferred + Could not infer type arguments for Stream.collect + .collect(Collectors.toUnmodifiableMap( +
+ unsatisfiable constraint: @GuardedBy Field <: @GuardSatisfied Field
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 72a758cbf19..ada00f50579 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
@@ -37,7 +37,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java required.method.not.called @MustCall method close may not have been invoked on dtdIs or any of its aliases. - final InputStream dtdIs = + final InputStream dtdIs = loader.getResourceAsStream(dtdResourceName);
The type of object is: java.io.InputStream. Reason for going out of scope: regular method exit @@ -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,14 +168,70 @@ 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: 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 +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + methodref.param + Incompatible parameter type for obj + .mapToInt(int.class::cast); +
+ found : @FenumUnqualified Object + required: capture extends @FenumTop Object + Consequence: method in @FenumUnqualified Class<@FenumUnqualified Integer> + @FenumUnqualified Integer cast(@FenumUnqualified Class<@FenumUnqualified Integer> this, @FenumUnqualified Object p0) + is not a valid method reference for method in @FenumUnqualified ToIntFunction<capture extends @FenumTop Object> + @FenumUnqualified int applyAsInt(@FenumUnqualified ToIntFunction<capture extends @FenumTop Object> this, capture extends @FenumTop Object p0) +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + type.arguments.not.inferred + Could not infer type arguments for Stream.map + .map(Pattern.class::cast) +
+ unsatisfiable constraint: capture extends @FenumTop Object <: @FenumUnqualified Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + type.arguments.not.inferred + Could not infer type arguments for Stream.map + .map(String.class::cast) +
+ unsatisfiable constraint: capture extends @FenumTop Object <: @FenumUnqualified Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java + required.method.not.called + @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. Reason for going out of scope: regular method exit
+ + src/main/java/com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.java + type.arguments.not.inferred + Could not infer type arguments for Stream.map + .map(elementType::cast) +
+ unsatisfiable constraint: S extends @FenumTop Object <: @FenumUnqualified Object +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractNode.java required.method.not.called @@ -201,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. @@ -212,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. @@ -223,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. @@ -234,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 @@ -245,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. @@ -256,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 @@ -267,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. @@ -278,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. @@ -289,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 @@ -300,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 @@ -311,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. @@ -322,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. @@ -333,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 d0fe1c5f16e..badd07a30ab 100644 --- a/config/checker-framework-suppressions/checker-nullness-optional-interning-suppressions.xml +++ b/config/checker-framework-suppressions/checker-nullness-optional-interning-suppressions.xml @@ -7,17 +7,6 @@ private Configuration configuration; - - src/main/java/com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.java - return - incompatible types in return. - return result; -
- type of expression: @Initialized @Nullable URI - method return type: @Initialized @NonNull Object -
-
- src/main/java/com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.java toarray.nullable.elements.not.newarray @@ -35,7 +24,18 @@ src/main/java/com/puppycrawl/tools/checkstyle/Checker.java argument - incompatible argument for parameter args of Violation. + incompatible argument for parameter args of Checker.getLocalizedMessage. + getLocalizedMessage("Checker.setupChildModule", name, ex.getMessage()), ex); +
+ found : @Initialized @Nullable String + required: @Initialized @NonNull Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/Checker.java + argument + 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) @@ -87,21 +87,10 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/Checker.java - assignment - incompatible types in assignment. - fileExtensions = null; -
- found : null (NullType) - required: @Initialized @NonNull String @Initialized @NonNull [] -
-
- src/main/java/com/puppycrawl/tools/checkstyle/Checker.java initialization.fields.uninitialized - the constructor does not initialize fields: basedir, moduleFactory, moduleClassLoader, childContext, cacheFile + the constructor does not initialize fields: basedir, moduleFactory, moduleClassLoader, childContext, fileExtensions, cacheFile public Checker() { @@ -119,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) @@ -323,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 @@ -348,42 +337,42 @@ src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. .orElseGet(() -> createImaginary(TokenTypes.ELIST)); src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. .orElseGet(() -> createImaginary(TokenTypes.ELIST)); src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. .orElseGet(() -> createImaginary(TokenTypes.ELIST)); src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. .orElseGet(() -> createImaginary(TokenTypes.ELIST)); src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. .orElseGet(() -> createImaginary(TokenTypes.ELIST)); src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. .orElseGet(() -> createImaginary(TokenTypes.PARAMETERS)); @@ -451,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) @@ -566,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 @@ -599,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 @@ -705,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) @@ -716,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 @@ -724,6 +713,17 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java + argument + incompatible argument for parameter other of Optional.orElse. + .orElse(fullName); +
+ found : String + required: @KeyFor("com.puppycrawl.tools.checkstyle.PackageObjectFactory.NAME_TO_FULL_MODULE_NAME") String +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java initialization.fields.uninitialized @@ -740,16 +740,12 @@ src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java - methodref.return - Incompatible return type - Class::getCanonicalName, + return + incompatible types in return. + return instance;
- 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) + type of expression: @Initialized @Nullable Object + method return type: @Initialized @NonNull Object
@@ -788,12 +784,11 @@ src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java - return - incompatible types in return. - return instance; + type.arguments.not.inferred + Could not infer type arguments for Stream.collect + .collect(Collectors.groupingBy(Class::getSimpleName,
- type of expression: @Initialized @Nullable Object - method return type: @Initialized @NonNull Object + unsatisfiable constraint: @Initialized @Nullable String <: @Initialized @NonNull String
@@ -801,14 +796,14 @@ src/main/java/com/puppycrawl/tools/checkstyle/PropertiesExpander.java methodref.return Incompatible return type - .collect(Collectors.toMap(Function.identity(), properties::getProperty)); + Collectors.toUnmodifiableMap(Function.identity(), properties::getProperty));
found : @Initialized @Nullable String required: @Initialized @NonNull String Consequence: method in @Initialized @NonNull Properties @Initialized @Nullable String getProperty(@Initialized @NonNull Properties this, @Initialized @NonNull String p0) - 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) + is not a valid method reference for method in @Initialized @NonNull Function<@Initialized @NonNull String, @Initialized @NonNull String> + @Initialized @NonNull String apply(@Initialized @NonNull Function<@Initialized @NonNull String, @Initialized @NonNull String> this, @Initialized @NonNull String p0)
@@ -858,7 +853,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 @@ -869,7 +864,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 @@ -909,7 +904,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 @@ -927,7 +922,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 @@ -938,7 +933,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 @@ -950,24 +945,35 @@ src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java dereference.of.nullable dereference of possibly-null reference loader - loader.getResourceAsStream(dtdResourceName); + final InputStream dtdIs = loader.getResourceAsStream(dtdResourceName); src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java override.param Incompatible parameter type for publicId. - public InputSource resolveEntity(String publicId, String systemId) + public InputSource resolveEntity(String publicId, String systemId) {
found : @Initialized @NonNull String required: @Initialized @Nullable String Consequence: method in @Initialized @NonNull XmlLoader - @Initialized @NonNull InputSource resolveEntity(@Initialized @NonNull XmlLoader this, @Initialized @NonNull String p0, @Initialized @NonNull String p1) throws @Initialized @NonNull SAXException@Initialized @NonNull IOException + @Initialized @NonNull InputSource resolveEntity(@Initialized @NonNull XmlLoader this, @Initialized @NonNull String p0, @Initialized @NonNull String p1) cannot override method in @Initialized @NonNull EntityResolver @Initialized @Nullable InputSource resolveEntity(@Initialized @NonNull EntityResolver this, @Initialized @Nullable String p0, @Initialized @NonNull String p1) throws @Initialized @NonNull SAXException@Initialized @NonNull IOException
+ + src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java + return + incompatible types in return. + return inputSource; +
+ type of expression: @Initialized @Nullable InputSource + method return type: @Initialized @NonNull InputSource +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAstFilter.java return @@ -982,7 +988,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 +999,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 +1010,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 +1091,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 +1102,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 +1113,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 +1142,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 +1153,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 +1203,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 +1214,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 +1380,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 +1482,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 +1493,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 +1504,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 +1537,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 +1562,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 @@ -1578,25 +1584,32 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/annotation/MissingOverrideCheck.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. .orElse(modifiers); - src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheck.java - return - incompatible types in return. - return brace; + src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/NeedBracesCheck.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElse(Boolean.TRUE); + + + + src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java + argument + incompatible argument for parameter lcurly of Details constructor. + return new Details(lcurly.orElse(null), rcurly, nextToken.orElse(null), true);
- type of expression: @Initialized @Nullable DetailAST - method return type: @Initialized @NonNull DetailAST + found : @Initialized @Nullable DetailAST + required: @Initialized @NonNull DetailAST
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 @@ -1607,7 +1620,18 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java argument - incompatible argument for parameter rcurly of Details. + incompatible argument for parameter nextToken of Details constructor. + return new Details(lcurly.orElse(null), rcurly, nextToken.orElse(null), true); +
+ found : @Initialized @Nullable DetailAST + required: @Initialized @NonNull DetailAST +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java + argument + incompatible argument for parameter rcurly of Details constructor. return new Details(lcurly, rcurly, getNextToken(ast), true);
found : @Initialized @Nullable DetailAST @@ -1618,7 +1642,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 @@ -1629,7 +1653,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 @@ -1640,7 +1664,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 @@ -1648,6 +1672,17 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java + argument + incompatible argument for parameter rcurly of Details constructor. + return new Details(lcurly.orElse(null), rcurly, nextToken.orElse(null), true); +
+ found : @Initialized @Nullable DetailAST + required: @Initialized @NonNull DetailAST +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.java return @@ -1662,7 +1697,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 @@ -1701,7 +1736,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) @@ -1746,25 +1781,17 @@ - src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java - argument - incompatible argument for parameter prevScopeUninitializedVariableData of updateAllUninitializedVariables. - updateAllUninitializedVariables(prevScopeUninitializedVariableData); -
- found : @Initialized @Nullable Deque<@Initialized @NonNull DetailAST> - required: @Initialized @NonNull Deque<@Initialized @NonNull DetailAST> -
+ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FallThroughCheck.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .isPresent();
- src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java - argument - incompatible argument for parameter prevScopeUninitializedVariableData of updateAllUninitializedVariables. - updateAllUninitializedVariables(prevScopeUninitializedVariableData); -
- found : @Initialized @Nullable Deque<@Initialized @NonNull DetailAST> - required: @Initialized @NonNull Deque<@Initialized @NonNull DetailAST> -
+ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FallThroughCheck.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElse(Boolean.FALSE);
@@ -1914,7 +1941,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 @@ -1925,7 +1952,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) @@ -1936,7 +1963,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) @@ -2087,7 +2114,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 @@ -2098,7 +2125,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 @@ -2109,7 +2136,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 @@ -2120,7 +2147,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 @@ -2131,7 +2158,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 @@ -2142,7 +2169,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 @@ -2153,7 +2180,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 @@ -2164,7 +2191,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 @@ -2175,7 +2202,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) @@ -2186,7 +2213,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 @@ -2197,7 +2224,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 @@ -2208,7 +2235,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 @@ -2219,7 +2246,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 @@ -2230,7 +2257,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 @@ -2241,7 +2268,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 @@ -2252,7 +2279,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 @@ -2402,7 +2429,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 @@ -2413,7 +2440,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 @@ -2424,7 +2451,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) @@ -2435,7 +2462,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) @@ -2446,7 +2473,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) @@ -2587,38 +2614,38 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.java - argument - incompatible argument for parameter key of SimpleEntry. - return new SimpleEntry<>(variableUsageAst, dist); -
- found : @Initialized @Nullable DetailAST - required: @Initialized @NonNull DetailAST -
+ not.interned + attempting to use a non-@Interned comparison operand + if (curNode == parent) {
src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.java - argument - incompatible argument for parameter key of SimpleEntry. - return new SimpleEntry<>(variableUsageAst, dist); -
- found : @Initialized @Nullable DetailAST - required: @Initialized @NonNull DetailAST -
+ not.interned + attempting to use a non-@Interned comparison operand + if (curNode == parent) {
src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.java - not.interned - attempting to use a non-@Interned comparison operand - if (curNode == parent) { + return + incompatible types in return. + return new SimpleEntry<>(variableUsageAst, dist); +
+ type of expression: @Initialized @NonNull SimpleEntry<@Initialized @Nullable DetailAST, @Initialized @NonNull Integer> + method return type: @Initialized @NonNull Entry<@Initialized @NonNull DetailAST, @Initialized @NonNull Integer> +
src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.java - not.interned - attempting to use a non-@Interned comparison operand - if (curNode == parent) { + return + incompatible types in return. + return new SimpleEntry<>(variableUsageAst, dist); +
+ type of expression: @Initialized @NonNull SimpleEntry<@Initialized @Nullable DetailAST, @Initialized @NonNull Integer> + method return type: @Initialized @NonNull Entry<@Initialized @NonNull DetailAST, @Initialized @NonNull Integer> +
@@ -2665,6 +2692,26 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.java + type.arguments.not.inferred + Could not infer type arguments for SimpleEntry constructor + return new SimpleEntry<>(variableUsageAst, dist); +
+ unsatisfiable constraint: @Initialized @Nullable DetailAST <: @Initialized @NonNull DetailAST +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.java + type.arguments.not.inferred + Could not infer type arguments for SimpleEntry constructor + return new SimpleEntry<>(variableUsageAst, dist); +
+ unsatisfiable constraint: @Initialized @Nullable DetailAST <: @Initialized @NonNull DetailAST +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/checks/design/DesignForExtensionCheck.java not.interned @@ -2696,7 +2743,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 @@ -2760,7 +2807,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 @@ -2793,9 +2840,6 @@
- src/main/java/com/puppycrawl/tools/checkstyle/checks/header/AbstractHeaderCheck.java initialization.field.uninitialized @@ -2813,7 +2857,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 @@ -2824,7 +2868,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 @@ -2835,7 +2879,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 @@ -2843,17 +2887,6 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/FileImportControl.java - assignment - incompatible types in assignment. - patternForExactMatch = null; -
- found : null (NullType) - required: @Initialized @NonNull Pattern -
-
- src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/FileImportControl.java return @@ -2932,7 +2965,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 @@ -2943,7 +2976,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 @@ -2993,7 +3026,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) @@ -3077,7 +3110,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) @@ -3088,7 +3121,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 @@ -3254,11 +3287,11 @@ 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> - required: @Initialized @NonNull Constructor<capture extends @Initialized @Nullable Object> + required: @Initialized @NonNull Constructor<@Initialized @Nullable Object>
@@ -3691,21 +3724,10 @@
- - src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java - type.argument - incompatible type argument for type parameter T extends Object of invokeConstructor. - resultHandler = (AbstractExpressionHandler) CommonUtil.invokeConstructor( -
- found : capture[ extends @UnknownKeyFor Object super @KeyForBottom Void] - required: [extends @UnknownKeyFor Object super @UnknownKeyFor NullType] -
-
- 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 @@ -3716,7 +3738,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 @@ -3756,6 +3778,13 @@ while (curNode != lastNode) { + + src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/MemberDefHandler.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElse(assign); + + src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/MethodDefHandler.java return @@ -3781,7 +3810,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) @@ -3792,7 +3821,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) @@ -3803,7 +3832,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) @@ -3876,7 +3905,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 @@ -3905,7 +3934,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 @@ -3916,7 +3945,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 @@ -3927,7 +3956,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 @@ -3938,8 +3967,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter tag of JavadocTag. - tags.add(new JavadocTag(currentLine, col, javadocArgMatcher.group(1), + incompatible argument for parameter tag of JavadocTag constructor. + tags.add(new JavadocTag(currentLine, 0, noargCurlyMatcher.group(1)));
found : @Initialized @Nullable String required: @Initialized @NonNull String @@ -3949,8 +3978,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter tag of JavadocTag. - tags.add(new JavadocTag(currentLine, col, javadocNoargMatcher.group(1))); + incompatible argument for parameter tag of JavadocTag constructor. + tags.add(new JavadocTag(currentLine, col, javadocArgMatcher.group(1),
found : @Initialized @Nullable String required: @Initialized @NonNull String @@ -3960,8 +3989,8 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java argument - incompatible argument for parameter tag of JavadocTag. - tags.add(new JavadocTag(currentLine, col, noargCurlyMatcher.group(1))); + incompatible argument for parameter tag of JavadocTag constructor. + tags.add(new JavadocTag(currentLine, col, javadocNoargMatcher.group(1)));
found : @Initialized @Nullable String required: @Initialized @NonNull String @@ -3971,7 +4000,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 @@ -4070,10 +4099,17 @@ private String text; + + src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocNodeImpl.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElse(EMPTY_DETAIL_NODE_ARRAY); + + 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 @@ -4102,7 +4138,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) @@ -4190,7 +4226,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 @@ -4201,7 +4237,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 @@ -4255,7 +4291,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 @@ -4266,7 +4302,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 @@ -4277,7 +4313,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 @@ -4288,7 +4324,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) @@ -4356,6 +4392,13 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/checks/modifier/RedundantModifierCheck.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .ifPresent(modifiers -> { + + src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.java return @@ -4399,14 +4442,21 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. message = Optional.ofNullable(message).orElse(""); src/main/java/com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. + It is bad style to create an Optional just to chain methods to get a non-optional value. + pattern = Optional.ofNullable(format).map(this::createPattern).orElse(null); + + + + src/main/java/com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. suppressor = Optional.ofNullable(suppressor).orElse(NeverSuppress.INSTANCE); @@ -4487,7 +4537,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 @@ -4505,7 +4555,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) @@ -4723,7 +4773,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java assignment incompatible types in assignment. - checkRegexp = null; + fileRegexp = null;
found : null (NullType) required: @Initialized @NonNull Pattern @@ -4734,7 +4784,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java assignment incompatible types in assignment. - fileRegexp = null; + messageRegexp = null;
found : null (NullType) required: @Initialized @NonNull Pattern @@ -4745,10 +4795,10 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java assignment incompatible types in assignment. - fileRegexp = null; + columnsCsv = null;
found : null (NullType) - required: @Initialized @NonNull Pattern + required: @Initialized @NonNull String
@@ -4756,132 +4806,77 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java assignment incompatible types in assignment. - messageRegexp = null; + linesCsv = null;
found : null (NullType) - required: @Initialized @NonNull Pattern + required: @Initialized @NonNull String
src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java - assignment - incompatible types in assignment. - messageRegexp = null; + override.param + Incompatible parameter type for other. + public boolean equals(Object other) {
- found : null (NullType) - required: @Initialized @NonNull Pattern + found : @Initialized @NonNull Object + required: @Initialized @Nullable Object + Consequence: method in @Initialized @NonNull SuppressFilterElement + @Initialized @NonNull boolean equals(@Initialized @NonNull SuppressFilterElement this, @Initialized @NonNull Object p0) + cannot override method in @Initialized @NonNull Object + @Initialized @NonNull boolean equals(@Initialized @NonNull Object this, @Initialized @Nullable Object p0)
src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java - assignment - incompatible types in assignment. - checkPattern = null; + return + incompatible types in return. + return result;
- found : null (NullType) - required: @Initialized @NonNull String + type of expression: @Initialized @Nullable String + method return type: @Initialized @NonNull String
- src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java - assignment - incompatible types in assignment. - columnsCsv = null; + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java + argument + incompatible argument for parameter text of SuppressWithNearbyCommentFilter.addTag. + addTag(matcher.group(0), line);
- found : null (NullType) + found : @Initialized @Nullable String required: @Initialized @NonNull String
- src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java assignment incompatible types in assignment. - filePattern = null; + tagIdRegexp = null;
found : null (NullType) - required: @Initialized @NonNull String + required: @Initialized @NonNull Pattern
- src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java assignment incompatible types in assignment. - linesCsv = null; + tagMessageRegexp = null;
found : null (NullType) - required: @Initialized @NonNull String + required: @Initialized @NonNull Pattern
- src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java - assignment - incompatible types in assignment. - messagePattern = null; -
- found : null (NullType) - required: @Initialized @NonNull String -
-
- - - src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.java - override.param - Incompatible parameter type for other. - public boolean equals(Object other) { -
- found : @Initialized @NonNull Object - required: @Initialized @Nullable Object - Consequence: method in @Initialized @NonNull SuppressFilterElement - @Initialized @NonNull boolean equals(@Initialized @NonNull SuppressFilterElement this, @Initialized @NonNull Object p0) - cannot override method in @Initialized @NonNull Object - @Initialized @NonNull boolean equals(@Initialized @NonNull Object this, @Initialized @Nullable Object p0) -
-
- - - src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java - argument - incompatible argument for parameter text of addTag. - addTag(matcher.group(0), line); -
- found : @Initialized @Nullable String - required: @Initialized @NonNull String -
-
- - - src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java - assignment - incompatible types in assignment. - tagIdRegexp = null; -
- found : null (NullType) - required: @Initialized @NonNull Pattern -
-
- - - src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java - assignment - incompatible types in assignment. - tagMessageRegexp = null; -
- found : null (NullType) - required: @Initialized @NonNull Pattern -
-
- - - src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java - initialization.field.uninitialized - the default constructor does not initialize field idFormat - private String idFormat; + src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java + initialization.field.uninitialized + the default constructor does not initialize field idFormat + private String idFormat; @@ -4934,7 +4929,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 @@ -4988,7 +4983,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 @@ -4999,7 +4994,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 @@ -5083,7 +5078,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 @@ -5094,7 +5089,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 @@ -5345,7 +5340,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 @@ -5356,7 +5351,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 @@ -5367,7 +5362,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 @@ -5378,7 +5373,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 @@ -5390,91 +5385,67 @@ src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java assignment incompatible types in assignment. - checkRegexp = null; -
- found : null (NullType) - required: @Initialized @NonNull Pattern -
- - - - src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java - assignment - incompatible types in assignment. - fileRegexp = null; + xpathExpression = null;
found : null (NullType) - required: @Initialized @NonNull Pattern + required: @Initialized @NonNull XPathExpression
src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java - assignment - incompatible types in assignment. - messageRegexp = null; -
- found : null (NullType) - required: @Initialized @NonNull Pattern -
+ introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + Optional.ofNullable(checks).map(CommonUtil::createPattern).orElse(null),
src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java - assignment - incompatible types in assignment. - checkPattern = null; -
- found : null (NullType) - required: @Initialized @NonNull String -
+ introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + Optional.ofNullable(message).map(Pattern::compile).orElse(null),
src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java - assignment - incompatible types in assignment. - filePattern = null; -
- found : null (NullType) - required: @Initialized @NonNull String -
+ introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + this(Optional.ofNullable(files).map(Pattern::compile).orElse(null),
src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java - assignment - incompatible types in assignment. - messagePattern = null; + override.param + Incompatible parameter type for other. + public boolean equals(Object other) {
- found : null (NullType) - required: @Initialized @NonNull String + found : @Initialized @NonNull Object + required: @Initialized @Nullable Object + Consequence: method in @Initialized @NonNull XpathFilterElement + @Initialized @NonNull boolean equals(@Initialized @NonNull XpathFilterElement this, @Initialized @NonNull Object p0) + cannot override method in @Initialized @NonNull Object + @Initialized @NonNull boolean equals(@Initialized @NonNull Object this, @Initialized @Nullable Object p0)
src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java - assignment - incompatible types in assignment. - xpathExpression = null; + return + incompatible types in return. + return result;
- found : null (NullType) - required: @Initialized @NonNull XPathExpression + type of expression: @Initialized @Nullable String + method return type: @Initialized @NonNull String
src/main/java/com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.java - override.param - Incompatible parameter type for other. - public boolean equals(Object other) { + type.arguments.not.inferred + Could not infer type arguments for Stream.collect + .collect(Collectors.toUnmodifiableList());
- found : @Initialized @NonNull Object - required: @Initialized @Nullable Object - Consequence: method in @Initialized @NonNull XpathFilterElement - @Initialized @NonNull boolean equals(@Initialized @NonNull XpathFilterElement this, @Initialized @NonNull Object p0) - cannot override method in @Initialized @NonNull Object - @Initialized @NonNull boolean equals(@Initialized @NonNull Object this, @Initialized @Nullable Object p0) + unsatisfiable constraint: @Initialized @PolyNull AbstractNode <: @Initialized @NonNull AbstractNode
@@ -5514,7 +5485,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 @@ -5525,7 +5496,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) @@ -5536,7 +5507,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 @@ -5565,7 +5536,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) @@ -5594,7 +5565,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) @@ -5605,7 +5576,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 [] @@ -5656,7 +5627,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 @@ -5667,7 +5638,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 @@ -5678,7 +5649,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 @@ -5689,7 +5660,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 @@ -5880,10 +5851,20 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/gui/TreeTable.java + type.arguments.not.inferred + Could not infer type arguments for Stream.map + .map(ElementNode::getUnderlyingNode) +
+ unsatisfiable constraint: @Initialized @PolyNull ElementNode <: @Initialized @NonNull ElementNode +
+
+ 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 @@ -5894,7 +5875,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 @@ -5918,24 +5899,9 @@ 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> -
+ introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + return Optional.ofNullable(nodeTag).map(JavadocMetadataScraper::getText).orElse("");
@@ -5952,7 +5918,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 @@ -6033,8 +5999,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 @@ -6044,8 +6010,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 @@ -6055,7 +6021,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 @@ -6066,7 +6032,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 @@ -6077,7 +6043,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 @@ -6161,20 +6127,42 @@ - src/main/java/com/puppycrawl/tools/checkstyle/site/ParentModuleMacro.java - return - incompatible types in return. - .orElse(null); + src/main/java/com/puppycrawl/tools/checkstyle/site/PropertiesMacro.java + argument + incompatible argument for parameter justification of XdocSink.tableRows. + sink.tableRows(null, false);
- type of expression: @Initialized @Nullable Path - method return type: @Initialized @NonNull Path + found : null (NullType) + required: @Initialized @NonNull int @Initialized @NonNull [] +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/PropertiesMacro.java + argument + incompatible argument for parameter moduleJavadoc of PropertiesMacro.writePropertyRow. + writePropertyRow(sink, property, propertyJavadoc, instance, currentModuleJavadoc); +
+ found : @Initialized @Nullable DetailNode + required: @Initialized @NonNull DetailNode +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/PropertiesMacro.java + argument + incompatible argument for parameter propertyJavadoc of PropertiesMacro.writePropertyRow. + writePropertyRow(sink, property, propertyJavadoc, instance, currentModuleJavadoc); +
+ found : @Initialized @Nullable DetailNode + required: @Initialized @NonNull DetailNode
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 @@ -6182,11 +6170,144 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + argument + incompatible argument for parameter message of MacroExecutionException constructor. + throw new MacroExecutionException(exc.getMessage(), exc); +
+ found : @Initialized @Nullable String + required: @Initialized @NonNull String +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + argument + incompatible argument for parameter moduleClassLoader of Checker.setModuleClassLoader. + checker.setModuleClassLoader(Checker.class.getClassLoader()); +
+ found : @Initialized @Nullable ClassLoader + required: @Initialized @NonNull ClassLoader +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java dereference.of.nullable - dereference of possibly-null reference field.get(instance) - return field.get(instance).toString(); + dereference of possibly-null reference currentClass + result = currentClass.getDeclaredField(propertyName); + + + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElse(null); + + + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElseGet(fieldClass::getSimpleName); + + + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + methodref.return + Incompatible return type + .mapToInt(int.class::cast); +
+ found : @Initialized @Nullable Integer + required: @Initialized @NonNull int + Consequence: method in @Initialized @NonNull Class<@Initialized @NonNull Integer> + @Initialized @Nullable Integer cast(@Initialized @NonNull Class<@Initialized @NonNull Integer> this, @Initialized @Nullable Object p0) + is not a valid method reference for method in @Initialized @NonNull ToIntFunction<capture extends @Initialized @Nullable Object> + @Initialized @NonNull int applyAsInt(@Initialized @NonNull ToIntFunction<capture extends @Initialized @Nullable Object> this, capture extends @Initialized @Nullable Object p0) +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + return + incompatible types in return. + return result; +
+ type of expression: @Initialized @Nullable Class<capture extends @Initialized @Nullable Object> + method return type: @Initialized @NonNull Class<? extends @Initialized @Nullable Object> +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + return + incompatible types in return. + return javadocTagWithSince; +
+ type of expression: @Initialized @Nullable DetailNode + method return type: @Initialized @NonNull DetailNode +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + return + incompatible types in return. + return result; +
+ type of expression: @Initialized @Nullable Field + method return type: @Initialized @NonNull Field +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + return + incompatible types in return. + return field.get(instance); +
+ type of expression: @Initialized @Nullable Object + method return type: @Initialized @NonNull Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + return + incompatible types in return. + .orElse(null); +
+ type of expression: @Initialized @Nullable Path + method return type: @Initialized @NonNull Path +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + type.arguments.not.inferred + Could not infer type arguments for Stream.map + .map(Pattern.class::cast) +
+ unsatisfiable constraint: capture extends @Initialized @Nullable Object <: @Initialized @PolyNull Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + type.arguments.not.inferred + Could not infer type arguments for Stream.map + .map(String.class::cast) +
+ unsatisfiable constraint: capture extends @Initialized @Nullable Object <: @Initialized @PolyNull Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/site/SiteUtil.java + unnecessary.equals + use of .equals can be safely replaced by ==/!= + while (!Object.class.equals(currentClass)) { @@ -6196,13 +6317,10 @@ + clss.getPackage().getName().replace(".", "%2F") - 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) @@ -6213,7 +6331,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) @@ -6224,7 +6342,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) @@ -6232,7 +6350,6 @@
- src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateParser.java assignment @@ -6244,7 +6361,6 @@
- src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateParser.java initialization.field.uninitialized @@ -6273,7 +6389,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 @@ -6295,7 +6411,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 @@ -6372,8 +6488,15 @@ src/main/java/com/puppycrawl/tools/checkstyle/utils/ScopeUtil.java introduce.eliminate - It is bad style to create an Optional just to chain methods to get a value. - .orElseGet(() -> getDefaultScope(aMods.getParent())); + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElseGet(() -> getDefaultScope(aMods)); + + + + src/main/java/com/puppycrawl/tools/checkstyle/utils/ScopeUtil.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElseGet(() -> getDefaultScope(ast)); @@ -6398,10 +6521,52 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/utils/TokenUtil.java + argument + incompatible argument for parameter object of TokenUtil.getIntFromField. + Field::getName, fld -> getIntFromField(fld, null)) +
+ found : null (NullType) + required: @Initialized @NonNull Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.java + return + incompatible types in return. + return Arrays.copyOf(array, length); +
+ type of expression: T[ extends @Initialized @Nullable Object super @Initialized @Nullable Void] @Initialized @NonNull [] + method return type: T[ extends @Initialized @Nullable Object super @Initialized @NonNull Void] @Initialized @NonNull [] +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.java + type.arguments.not.inferred + Could not infer type arguments for Map.copyOf + return Map.copyOf(map); +
+ unsatisfiable constraint: K extends @Initialized @Nullable Object <: @Initialized @NonNull Object V extends @Initialized @Nullable Object <: @Initialized @NonNull Object +
+
+ + + src/main/java/com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.java + type.arguments.not.inferred + Could not infer type arguments for Stream.collect + .collect(Collectors.toUnmodifiableList()); +
+ unsatisfiable constraint: T extends @Initialized @PolyNull Object <: T extends @Initialized @Nullable Object +
+
+ 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) @@ -6412,7 +6577,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 [] @@ -6423,7 +6588,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 [] @@ -6434,7 +6599,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) @@ -6442,6 +6607,13 @@
+ + src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractElementNode.java + introduce.eliminate + It is bad style to create an Optional just to chain methods to get a non-optional value. + .orElse(null); + + src/main/java/com/puppycrawl/tools/checkstyle/xpath/AbstractElementNode.java not.interned @@ -6505,7 +6677,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 [] @@ -6534,7 +6706,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) @@ -6556,7 +6728,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) @@ -6592,17 +6764,6 @@ while (cur != root) { - - src/main/java/com/puppycrawl/tools/checkstyle/xpath/XpathQueryGenerator.java - return - incompatible types in return. - XpathUtil::supportsTextAttribute).orElse(null); -
- type of expression: @Initialized @Nullable DetailAST - method return type: @Initialized @NonNull DetailAST -
-
- src/main/java/com/puppycrawl/tools/checkstyle/xpath/iterators/DescendantIterator.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 4e8fe29e475..17ef65c9950 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 @@ -12,20 +12,24 @@ - src/main/java/com/puppycrawl/tools/checkstyle/Main.java - argument - incompatible argument for parameter regex of compile. - .map(pattern -> Pattern.compile("^" + pattern + "$")) + src/main/java/com/puppycrawl/tools/checkstyle/PropertiesExpander.java + methodref.param + Incompatible parameter type for key + Collectors.toUnmodifiableMap(Function.identity(), properties::getProperty));
- found : String - required: @Regex String + found : @PropertyKey String + required: @UnknownPropertyKey String + Consequence: method in @UnknownPropertyKey Properties + @UnknownPropertyKey String getProperty(@UnknownPropertyKey Properties this, @PropertyKey String p0) + is not a valid method reference for method in @UnknownPropertyKey Function<@UnknownPropertyKey String, @UnknownPropertyKey String> + @UnknownPropertyKey String apply(@UnknownPropertyKey Function<@UnknownPropertyKey String, @UnknownPropertyKey String> this, @UnknownPropertyKey String p0)
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 +40,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 +51,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 +62,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 +73,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 +84,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 +95,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 +106,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 +117,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 +128,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 +139,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 +150,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 +161,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 +172,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 +183,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 +194,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 +205,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 +216,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 +227,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 +238,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 +249,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 +260,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 +271,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 +282,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 @@ -332,7 +336,7 @@ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java group.count invalid groups parameter 1. Only 0 groups are guaranteed to exist for noargCurlyMatcher. - tags.add(new JavadocTag(currentLine, col, noargCurlyMatcher.group(1))); + tags.add(new JavadocTag(currentLine, 0, noargCurlyMatcher.group(1))); @@ -363,6 +367,21 @@ javadocArgMissingDescriptionMatcher.group(2))); + + src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.java + methodref.receiver.bound + Incompatible receiver type + .map(INLINE_RETURN_TAG_PATTERN::matcher) +
+ found : @Regex Pattern + required: @PolyRegex Pattern + Consequence: method + @Regex Pattern + is not a valid method reference for method in @Regex Pattern + @PolyRegex Matcher matcher(@PolyRegex Pattern this, CharSequence p0) +
+
+ src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/WriteTagCheck.java group.count @@ -373,7 +392,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 +403,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 +414,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 +425,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 +436,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 +447,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 +458,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 +469,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 +480,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 +491,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 +502,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 +513,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 +524,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 +535,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 +546,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 +557,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 +568,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 +579,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 +590,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 +601,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 +612,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 +623,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 +634,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 +645,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 @@ -665,9 +684,24 @@ - src/main/java/com/puppycrawl/tools/checkstyle/site/ParentModuleMacro.java + src/main/java/com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.java + methodref.receiver.bound + Incompatible receiver type + .map(pattern::matcher) +
+ found : Pattern + required: @PolyRegex Pattern + Consequence: method + Pattern + is not a valid method reference for method in Pattern + @PolyRegex Matcher matcher(@PolyRegex Pattern this, CharSequence p0) +
+
+ + + 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 +712,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 +723,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 +734,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 +745,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 +756,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 +767,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 +785,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/config/checkstyle-checks.xml b/config/checkstyle-checks.xml index 8c6fceefe4a..042696f8e49 100644 --- a/config/checkstyle-checks.xml +++ b/config/checkstyle-checks.xml @@ -330,6 +330,7 @@ + @@ -367,6 +368,7 @@ + diff --git a/config/checkstyle-examples-checks.xml b/config/checkstyle-examples-checks.xml index 706cfda3aae..6c21c9259c2 100644 --- a/config/checkstyle-examples-checks.xml +++ b/config/checkstyle-examples-checks.xml @@ -80,6 +80,12 @@ + + + + + + @@ -99,6 +105,8 @@ + + diff --git a/config/checkstyle-examples-suppressions.xml b/config/checkstyle-examples-suppressions.xml index ab1070b94cb..41a7ce3276e 100644 --- a/config/checkstyle-examples-suppressions.xml +++ b/config/checkstyle-examples-suppressions.xml @@ -6,6 +6,12 @@ + + + + @@ -18,6 +24,10 @@ + + + + @@ -49,4 +59,12 @@ + + + + + + diff --git a/config/checkstyle-input-suppressions.xml b/config/checkstyle-input-suppressions.xml index 373c3ce1459..61e7952e3a9 100644 --- a/config/checkstyle-input-suppressions.xml +++ b/config/checkstyle-input-suppressions.xml @@ -5,114 +5,57 @@ "https://checkstyle.org/dtds/suppressions_1_1.dtd"> - - - - - - - - - - - - - - - - - + + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperAbstractSuperCheck.java"/> + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperAnnotationUseStyleCheck.java"/> + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperAtclauseOrderCheck.java"/> + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperBeforeExecutionExclusionFileFilter.java"/> + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperNoCodeInFileCheck.java"/> + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperRightCurlyCheck.java"/> + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperSummaryJavadocCheck.java"/> + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperSuppressWarningsFilter.java"/> + files="[\\/]meta[\\/]javadocmetadatascraper[\\/]InputJavadocMetadataScraperWriteTagCheck.java"/> + files="[\\/]checks[\\/]imports[\\/]redundantimport[\\/]InputRedundantImportWithoutPackage.java"/> + files="[\\/]checks[\\/]coding[\\/]illegaltype[\\/]InputIllegalTypeSameFileNameFalsePositive.java"/> + files="[\\/]checks[\\/]coding[\\/]illegaltype[\\/]InputIllegalTypeTestSameFileNameGeneral.java"/> + files="[\\/]checks[\\/]metrics[\\/]classfanoutcomplexity[\\/]InputClassFanOutComplexityExcludedPackagesAllIgnored.java"/> + files="[\\/]checks[\\/]metrics[\\/]classfanoutcomplexity[\\/]InputClassFanOutComplexityExcludedPackagesCommonPackage.java"/> + files="[\\/]checks[\\/]metrics[\\/]classfanoutcomplexity[\\/]InputClassFanOutComplexityExcludedPackagesDirectPackages.java"/> + files="[\\/]checks[\\/]imports[\\/]customimportorder[\\/]InputCustomImportOrderThirdPartyAndSpecial.java"/> + files="[\\/]checks[\\/]imports[\\/]customimportorder[\\/]InputCustomImportOrderThirdPartyAndSpecial2.java"/> + files="[\\/]checks[\\/]imports[\\/]customimportorder[\\/]InputCustomImportOrderDefault4.java"/> + files="[\\/]checks[\\/]imports[\\/]customimportorder[\\/]InputCustomImportOrderDefault6.java"/> + files="[\\/]checks[\\/]imports[\\/]customimportorder[\\/]InputCustomImportOrderSingleLine.java"/> + files="[\\/]checks[\\/]imports[\\/]customimportorder[\\/]InputCustomImportOrderSingleLineList.java"/> + files="[\\/]checks[\\/]imports[\\/]customimportorder[\\/]InputCustomImportOrderSpanMultipleLines.java"/> + files="[\\/]checks[\\/]imports[\\/]customimportorder[\\/]InputCustomImportOrder_OverlappingPatterns.java"/> + files="[\\/]checks[\\/]imports[\\/]unusedimports[\\/]InputUnusedImportsShadowed.java"/> - - - - - - - - - - - - - + files="[\\/]checks[\\/]imports[\\/]redundantimport[\\/]InputRedundantImportWithChecker.java"/> - - - + files="[\\/]packageobjectfactory[\\/]abc[\\/]FooCheck.java"/> - - - - + files="[\\/]packageobjectfactory[\\/]zoo[\\/]FooCheck.java"/> + + files="checks[\\/]coding[\\/]packagedeclaration[\\/]InputPackageDeclarationPlain.java"/> + files="checks[\\/]coding[\\/]packagedeclaration[\\/]InputPackageDeclarationWithCommentOnly.java"/> + files="checks[\\/]coding[\\/]unnecessarysemicolonaftertypememberdeclaration[\\/]InputUnnecessarySemicolonAfterTypeMemberDeclarationNullAst.java"/> + files="checks[\\/]coding[\\/]variabledeclarationusagedistance[\\/]InputVariableDeclarationUsageDistance3.java"/> + files="checks[\\/]coding[\\/]variabledeclarationusagedistance[\\/]InputVariableDeclarationUsageDistance3.java"/> + files="checks[\\/]coding[\\/]variabledeclarationusagedistance[\\/]InputVariableDeclarationUsageDistanceDefault2.java"/> + files="checks[\\/]coding[\\/]variabledeclarationusagedistance[\\/]InputVariableDeclarationUsageDistanceIfStatements.java"/> + files="checks[\\/]coding[\\/]variabledeclarationusagedistance[\\/]InputVariableDeclarationUsageDistanceLabels.java"/> + files="checks[\\/]indentation[\\/]commentsindentation[\\/]InputCommentsIndentationCommentsAfterMethodCall.java"/> + files="checks[\\/]indentation[\\/]commentsindentation[\\/]InputCommentsIndentationCommentsAfterMethodCall.java"/> + files="checks[\\/]indentation[\\/]commentsindentation[\\/]InputCommentsIndentationCommentsAfterMethodCall.java"/> + files="checks[\\/]indentation[\\/]commentsindentation[\\/]InputCommentsIndentationWithInMethodCallWithSameIndent.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocCustomTag.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocCustomTag.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocJavadocTagsWithoutArgs.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocNonTightHtmlTags2.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocNonTightHtmlTags2.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocNonTightHtmlTags2.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocNonTightHtmlTags2.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocNonTightHtmlTags2.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocNonTightHtmlTags2.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocPositionOnlyComments.java"/> + files="checks[\\/]javadoc[\\/]abstractjavadoc[\\/]InputAbstractJavadocTokensPass.java"/> + files="checks[\\/]javadoc[\\/]javadocblocktaglocation[\\/]InputJavadocBlockTagLocationCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocblocktaglocation[\\/]InputJavadocBlockTagLocationMultilineCodeBlock.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationDefault.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationDefault.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationDefault.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationDefault.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationDefault.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationDefault.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationDefault.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationFirstLine.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationFirstLine.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationFirstLine.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationFirstLine.java"/> + files="checks[\\/]javadoc[\\/]javadoccontentlocation[\\/]InputJavadocContentLocationTrimOptionProperty.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod3.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodConstructor.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodConstructor.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodConstructor.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodConstructor.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodConstructor.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodDefaultAccessModifier.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodDefaultAccessModifier.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodEnum.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodExtendAnnotation.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodExtendAnnotation.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodExtendAnnotation.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodExtendAnnotation.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodGenerics.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodGenerics.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodGenerics.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodGenerics.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodIgnoreThrows.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodIgnoreThrows.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodInheritDoc.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodInheritDoc.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodInheritDoc.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodJavadocInMethod.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodLoadErrors.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocNoMissingTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocNoMissingTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocNoMissingTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocNoMissingTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocNoMissingTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocNoMissingTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocNoMissingTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocTagsDefault.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodMissingJavadocTagsDefault.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodNoJavadocOnlyPrivateScope.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodNoJavadocProtectedScope.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodNoJavadocProtectedScope.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodPublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodReceiverParameter.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodReceiverParameter.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodSurroundingAccessModifier.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodSurroundingAccessModifier.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodSurroundingAccessModifier.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodSurroundingAccessModifier.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodThrowsDetection.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTypeParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTypeParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTypeParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodTypeParamsTags.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_03.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_03.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_03.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_03.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_03.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_03.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_03.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_03.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_1379666.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_1379666.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_1379666.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_1379666.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethod_1379666.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodsNotSkipWritten.java"/> + files="checks[\\/]javadoc[\\/]javadocmethod[\\/]InputJavadocMethodsNotSkipWritten.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/> + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentation.java"/> + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/> + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/> + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/> + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/> + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/> + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/> + files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationGuavaFalsePositive.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodAllowedAnnotations.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodEnumCtorScopeIsPrivate.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodIgnoreNameRegex.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodIgnoreNameRegex.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodIgnoreNameRegex.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodInterfacePrivateMethod.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodMissingJavadocTags.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodPublicOnly3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodReceiverParameter.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodScopeAnonInner2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodSetterGetter2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodSetterGetter2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodSetterGetter2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethod_01.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethod_02.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodsNotSkipWritten.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocpackage[\\/]InputMissingJavadocPackageNotPackageInfo-package-info.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocpackage[\\/]annotation[\\/]package-info.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocpackage[\\/]blank[\\/]package-info.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocpackage[\\/]header[\\/]package-info.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocpackage[\\/]package-info.java"/> + files="checks[\\/]javadoc[\\/]missingjavadocpackage[\\/]singleline[\\/]package-info.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeMultipleQualifiedAnnotation.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeMultipleQualifiedAnnotation.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeMultipleQualifiedAnnotation.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeNoJavadoc3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypePublicOnly1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypePublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypePublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypePublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypePublicOnly2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotation2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotation3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotation4.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotation5.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotation5.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotation5.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotationWithParameters.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotationWithParameters.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeQualifiedAnnotationWithParameters.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerClasses2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeScopeInnerInterfaces2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations1.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations2.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations3.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations4.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations4.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations4.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations4.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeSkipAnnotations4.java"/> + files="checks[\\/]javadoc[\\/]missingjavadoctype[\\/]InputMissingJavadocTypeUnusedParamInJavadocForClass.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocEmptyPeriod.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocHtmlFormat.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocHtmlFormat.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocHtmlFormat.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocHtmlFormat.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocHtmlFormat.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocHtmlFormat.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineCorrect.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineDefault.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineForbidden.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineForbidden.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineForbidden.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineForbidden.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineForbidden.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineForbidden.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineReturn.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineReturn.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineReturn.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineReturn.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocInlineReturn.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocNoPeriod.java"/> + files="checks[\\/]javadoc[\\/]summaryjavadoc[\\/]InputSummaryJavadocTestForbiddenFragments2.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagDefault.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagDefault.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagDefault.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagDoubleTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagDoubleTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagDoubleTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagEmptyTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagEmptyTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagEmptyTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagExpressionError.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagExpressionError.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagExpressionError.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagIgnore.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagIgnore.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagIgnore.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagIgnore.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagIncomplete.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagIncomplete.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagIncomplete.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagMethod.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagMissingFormat.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagMissingFormat.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagMissingFormat.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagMissingTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagMissingTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagMissingTag.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagRegularExpression.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagRegularExpression.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagRegularExpression.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagRegularExpression.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagSeverity.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagSeverity.java"/> + files="checks[\\/]javadoc[\\/]writetag[\\/]InputWriteTagSeverity.java"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + value="^(?!(.*value=.*|.*href=|.*http(s)?:|import |(.* )?package |.* files=|.*\.dtd| \* \{@code| \* com\.)).{101,}$"/> @@ -127,4 +127,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/checkstyle-non-main-files-suppressions.xml b/config/checkstyle-non-main-files-suppressions.xml index 315e719da7d..57063d40aa3 100644 --- a/config/checkstyle-non-main-files-suppressions.xml +++ b/config/checkstyle-non-main-files-suppressions.xml @@ -167,4 +167,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/checkstyle-resources-suppressions.xml b/config/checkstyle-resources-suppressions.xml index 445c2a18937..1ba9b02b25c 100644 --- a/config/checkstyle-resources-suppressions.xml +++ b/config/checkstyle-resources-suppressions.xml @@ -85,7 +85,7 @@ + files="src[\\/]it[\\/]resources[\\/].*[\\/]InputXpathOuterTypeFilename.*\.java"/> + - - - - - - - - - - - - - - - - - - - - - - + - - - - - - hashcode method on array does not hash array contents + ", children=" + Objects.hashCode(children) + + + PropertiesMacro.java + CollectorMutability + Avoid `Collectors.to{List,Map,Set}` in favor of collectors that emphasize (im)mutability + }).collect(Collectors.toSet())); + diff --git a/config/error-prone-suppressions/test-compile-phase-suppressions.xml b/config/error-prone-suppressions/test-compile-phase-suppressions.xml index 41bafdafad8..6e9af9e9c15 100644 --- a/config/error-prone-suppressions/test-compile-phase-suppressions.xml +++ b/config/error-prone-suppressions/test-compile-phase-suppressions.xml @@ -6,11 +6,4 @@ Return value of 'findFirst' must be used .findFirst(); - - - PropertyCacheFileTest.java - CheckReturnValue - The result of `toByteArray(...)` must be used - byteStream.when(() -> ByteStreams.toByteArray(any(BufferedInputStream.class))) - diff --git a/config/import-control-test.xml b/config/import-control-test.xml index 601cd9da58d..e4250df0dde 100644 --- a/config/import-control-test.xml +++ b/config/import-control-test.xml @@ -20,13 +20,16 @@ - + + + + @@ -40,6 +43,7 @@ + diff --git a/config/import-control.xml b/config/import-control.xml index 1c2d1093a1c..222543be061 100644 --- a/config/import-control.xml +++ b/config/import-control.xml @@ -19,6 +19,7 @@ + @@ -73,15 +74,31 @@ + + + + + + + + + + + + + + + + @@ -276,6 +293,7 @@ + @@ -289,6 +307,10 @@ + + + + diff --git a/config/intellij-idea-inspections.xml b/config/intellij-idea-inspections.xml index f7736bcb9ed..85a62454019 100644 --- a/config/intellij-idea-inspections.xml +++ b/config/intellij-idea-inspections.xml @@ -4106,6 +4106,9 @@ enabled_by_default="false"/> + + AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. -AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. -AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. -AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. -AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.PropertyResolver,boolean,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. -../ConfigurationLoader.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.PropertyResolver,boolean,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. -../ConfigurationLoader.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.PropertyResolver,boolean,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. -../DefaultConfiguration.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,com.puppycrawl.tools.checkstyle.AuditEventFormatter): doesn't exist. -../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,com.puppycrawl.tools.checkstyle.AuditEventFormatter): doesn't exist. -../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,com.puppycrawl.tools.checkstyle.AuditEventFormatter): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. -../../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(org.antlr.v4.runtime.CommonTokenStream): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(int,java.lang.String,java.lang.Object...): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#insertChildrenNodes(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl%5B%5D,org.antlr.v4.runtime.tree.ParseTree): doesn't exist. -../../../JavadocDetailNodeParser.html#insertChildrenNodes(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl%5B%5D,org.antlr.v4.runtime.tree.ParseTree): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.Class,java.lang.String,java.lang.Object...): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -../MetadataGeneratorLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.ClassLoader): doesn't exist. -#%3Cinit%3E(java.util.Set,java.lang.ClassLoader): doesn't exist. -#%3Cinit%3E(java.util.Set,java.lang.ClassLoader,com.puppycrawl.tools.checkstyle.PackageObjectFactory.ModuleLoadOption): doesn't exist. -../PackageObjectFactory.html#%3Cinit%3E(java.util.Set,java.lang.ClassLoader,com.puppycrawl.tools.checkstyle.PackageObjectFactory.ModuleLoadOption): doesn't exist. -#%3Cinit%3E(java.util.Properties): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.String): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.Configuration,java.lang.String): doesn't exist. -../../PropertyCacheFile.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.Configuration,java.lang.String): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -../SarifLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(int,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../TreeWalkerAuditEvent.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../TreeWalkerAuditEvent.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../TreeWalkerAuditEvent.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -../XMLLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. -../../XMLLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.util.Map): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -../XpathFileGeneratorAuditListener.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#beginTreecom.puppycrawl.tools.checkstyle.api.DetailAST: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#finishTreecom.puppycrawl.tools.checkstyle.api.DetailAST: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#getAcceptableTokens--: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#getDefaultTokens--: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#getRequiredTokens--: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#isCommentNodesRequired--: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#leaveTokencom.puppycrawl.tools.checkstyle.api.DetailAST: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#setTokens-java.lang.String...-: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#visitToken-com.puppycrawl.tools.checkstyle.api.DetailAST-: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#visitTokencom.puppycrawl.tools.checkstyle.api.DetailAST: doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.html#processFiltered-java.io.File-com.puppycrawl.tools.checkstyle.api.FileText-: doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.Object): doesn't exist. -#%3Cinit%3E(java.lang.Object,java.lang.String): doesn't exist. -#%3Cinit%3E(java.lang.Object,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation): doesn't exist. -../AuditEvent.html#%3Cinit%3E(java.lang.Object,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.Throwable): doesn't exist. -#%3Cinit%3E(java.lang.String%5B%5D,int,int,int): doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/api/ExternalResourceHolder.html#getExternalResourceLocations--: doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. -../FileContents.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. -../FileText.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. -#%3Cinit%3E(java.io.File,java.lang.String): doesn't exist. -#%3Cinit%3E(java.io.File,java.util.List): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(int,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.SeverityLevel): doesn't exist. -../SeverityLevelCounter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.SeverityLevel): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(int,int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -../Violation.html#%3Cinit%3E(int,int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -#%3Cinit%3E(int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -../Violation.html#%3Cinit%3E(int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -../Violation.html#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -../Violation.html#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,int,int,int,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,boolean): doesn't exist. -../../checks/blocks/RightCurlyCheck.Details.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,boolean): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/AbstractSuperCheck.MethodNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.EqualsAvoidNullCheck.FieldFrame): doesn't exist. -../EqualsAvoidNullCheck.FieldFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.EqualsAvoidNullCheck.FieldFrame): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/FinalLocalVariableCheck.FinalVariableCandidate.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck.FieldFrame,boolean,java.lang.String): doesn't exist. -../HiddenFieldCheck.FieldFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck.FieldFrame,boolean,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#isInContext(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D%5B%5D,java.util.BitSet): doesn't exist. -../../checks/coding/InnerAssignmentCheck.html#isInContext(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D%5B%5D,java.util.BitSet): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/RequireThisCheck.AbstractFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../RequireThisCheck.AbstractFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,java.lang.String): doesn't exist. -../RequireThisCheck.AnonymousClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,java.lang.String): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/RequireThisCheck.BlockFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../RequireThisCheck.BlockFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/RequireThisCheck.CatchFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../RequireThisCheck.CatchFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/RequireThisCheck.ClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../RequireThisCheck.ClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/RequireThisCheck.ConstructorFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../RequireThisCheck.ConstructorFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/RequireThisCheck.ForFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../RequireThisCheck.ForFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/RequireThisCheck.MethodFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../RequireThisCheck.MethodFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/RequireThisCheck.TryWithResourcesFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../RequireThisCheck.TryWithResourcesFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(boolean): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/UnusedLocalVariableCheck.TypeDeclDesc.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/design/FinalClassCheck.ClassDesc.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/design/FinalClassCheck.TypeDeclarationDescription.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/design/HideUtilityClassConstructorCheck.Details.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportControl,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -../AbstractImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportControl,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -../AbstractImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportControl,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -#%3Cinit%3E(boolean,boolean,boolean): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(boolean,boolean,java.lang.String,boolean): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/imports/CustomImportOrderCheck.ImportDetails.html#%3Cinit%3E(java.lang.String,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(java.lang.String,int,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean): doesn't exist. -../FileImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#getGroupNumber(java.util.regex.Pattern%5B%5D,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -../PkgImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -../PkgImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -#%3Cinit%3E(java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -../PkgImportControl.html#%3Cinit%3E(java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -#%3Cinit%3E(boolean,boolean,java.lang.String,boolean,boolean): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck.Frame): doesn't exist. -../UnusedImportsCheck.Frame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck.Frame): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/AbstractExpressionHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../AbstractExpressionHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../AbstractExpressionHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -../../checks/indentation/AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -../AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/AnnotationArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../AnnotationArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../AnnotationArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/ArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/BlockParentHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../BlockParentHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../BlockParentHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/CaseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../CaseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../CaseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/CatchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../CatchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../CatchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/ClassDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ClassDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ClassDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -../DetailAstSet.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/DoWhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../DoWhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../DoWhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/ElseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ElseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ElseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/FinallyHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../FinallyHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../FinallyHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/ForHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ForHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ForHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/IfHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../IfHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../IfHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/ImportHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ImportHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ImportHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,int...): doesn't exist. -../IndentLevel.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,int...): doesn't exist. -#%3Cinit%3E(int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/IndexHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../IndexHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../IndexHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/LabelHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../LabelHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../LabelHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/LambdaHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../LambdaHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../LambdaHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -../LineWrappingHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/MemberDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../MemberDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../MemberDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/MethodCallHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../MethodCallHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../MethodCallHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/MethodDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../MethodDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../MethodDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/NewHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../NewHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../NewHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/ObjectBlockHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ObjectBlockHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../ObjectBlockHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/PackageDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../PackageDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../PackageDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -../PrimordialHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/SlistHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../SlistHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../SlistHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/StaticInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../StaticInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../StaticInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/SwitchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../SwitchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../SwitchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/SwitchRuleHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../SwitchRuleHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../SwitchRuleHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/SynchronizedHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../SynchronizedHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../SynchronizedHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/TryHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../TryHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../TryHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/WhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../WhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../WhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../../checks/indentation/YieldHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../YieldHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -../YieldHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#getAcceptableJavadocTokens--: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#getBlockCommentAst--: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#getDefaultJavadocTokens--: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#getRequiredJavadocTokens--: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#setJavadocTokens-java.lang.String...-: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#visitJavadocToken-com.puppycrawl.tools.checkstyle.api.DetailNode-: doesn't exist. -apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#visitToken-com.puppycrawl.tools.checkstyle.api.DetailAST-: doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,int,int,boolean,boolean,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(int,int,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.Token): doesn't exist. -../JavadocMethodCheck.ClassInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.Token): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ClassInfo): doesn't exist. -../../checks/javadoc/JavadocMethodCheck.ExceptionInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ClassInfo): doesn't exist. -../JavadocMethodCheck.ExceptionInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ClassInfo): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FullIdent): doesn't exist. -../../checks/javadoc/JavadocMethodCheck.Token.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FullIdent): doesn't exist. -#%3Cinit%3E(java.lang.String,int,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#getMultilineNoArgTags(java.util.regex.Matcher,java.lang.String%5B%5D,int,int): doesn't exist. -../JavadocMethodCheck.html#getMultilineNoArgTags(java.util.regex.Matcher,java.lang.String%5B%5D,int,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(int,int,java.lang.String): doesn't exist. -#%3Cinit%3E(int,int,java.lang.String,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo.Type): doesn't exist. -../JavadocTagInfo.html#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo.Type): doesn't exist. -#%3Cinit%3E(java.util.Collection,java.util.Collection): doesn't exist. -../JavadocTags.html#%3Cinit%3E(java.util.Collection,java.util.Collection): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(int,int): doesn't exist. -#%3Cinit%3E(java.lang.String%5B%5D,int): doesn't exist. -#findChar(java.lang.String%5B%5D,char,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -../TagParser.html#findChar(java.lang.String%5B%5D,char,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -#getNextPoint(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -../TagParser.html#getNextPoint(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -#getTagId(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -../TagParser.html#getTagId(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -#isCommentTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -../TagParser.html#isCommentTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -#isTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -../TagParser.html#isTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -#parseTag(java.lang.String%5B%5D,int,int,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -../TagParser.html#parseTag(java.lang.String%5B%5D,int,int,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -#parseTags(java.lang.String%5B%5D,int): doesn't exist. -#skipHtmlComment(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -../TagParser.html#skipHtmlComment(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.api.LineColumn): doesn't exist. -../../checks/javadoc/utils/TagInfo.html#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.api.LineColumn): doesn't exist. -#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/metrics/AbstractClassCouplingCheck.ClassContext.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(int): doesn't exist. -#%3Cinit%3E(boolean): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.math.BigInteger,java.math.BigInteger): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents): doesn't exist. -../../checks/regexp/CommentSuppressor.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. -../MultilineDetector.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. -../SinglelineDetector.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/sizes/ExecutableStatementCountCheck.Context.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../checks/sizes/MethodCountCheck.MethodCounter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#processNestedGenerics(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. -../../checks/whitespace/GenericWhitespaceCheck.html#processNestedGenerics(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. -#processSingleGeneric(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. -../../checks/whitespace/GenericWhitespaceCheck.html#processSingleGeneric(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#isBlockCommentEnd(int%5B%5D,int): doesn't exist. -#isFirstInLine(int%5B%5D,int): doesn't exist. -#isSingleSpace(int%5B%5D,int): doesn't exist. -#isSpace(int%5B%5D,int): doesn't exist. -#isTextSeparatedCorrectlyFromPrevious(int%5B%5D,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(int): doesn't exist. -#%3Cinit%3E(int,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): doesn't exist. -#%3Cinit%3E(java.util.regex.Pattern,java.util.regex.Pattern,java.util.regex.Pattern,java.lang.String,java.lang.String,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyCommentFilter): doesn't exist. -../SuppressWithNearbyCommentFilter.Tag.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyCommentFilter): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyTextFilter): doesn't exist. -../SuppressWithNearbyTextFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyTextFilter): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,int,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter): doesn't exist. -../SuppressWithPlainTextCommentFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter): doesn't exist. -../SuppressWithPlainTextCommentFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(int,int,java.lang.String,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.TagType,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter): doesn't exist. -../SuppressionCommentFilter.Tag.html#%3Cinit%3E(int,int,java.lang.String,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.TagType,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter): doesn't exist. -../SuppressionCommentFilter.Tag.html#%3Cinit%3E(int,int,java.lang.String,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.TagType,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): doesn't exist. -#%3Cinit%3E(java.util.regex.Pattern,java.util.regex.Pattern,java.util.regex.Pattern,java.lang.String,java.lang.String): doesn't exist. -#%3Cinit%3E(org.antlr.v4.runtime.Lexer,org.antlr.v4.runtime.atn.ATN,org.antlr.v4.runtime.dfa.DFA%5B%5D,org.antlr.v4.runtime.atn.PredictionContextCache): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.Object,javax.swing.JTextArea,java.util.Collection): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,java.util.List): doesn't exist. -../../gui/CodeSelectorPresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,java.util.List): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailNode,java.util.List): doesn't exist. -../../gui/CodeSelectorPresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailNode,java.util.List): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable): doesn't exist. -../ListToTreeSelectionModelWrapper.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../gui/ParseTreeTableModel.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#fireTreeStructureChanged(java.lang.Object,java.lang.Object%5B%5D,int%5B%5D,java.lang.Object...): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../gui/ParseTreeTablePresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel): doesn't exist. -../TreeTable.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable,javax.swing.tree.TreeModel): doesn't exist. -../TreeTableCellRenderer.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable,javax.swing.tree.TreeModel): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel,javax.swing.JTree): doesn't exist. -../TreeTableModelAdapter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel,javax.swing.JTree): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.io.Writer,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#endsWith(int%5B%5D,java.lang.String): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#isCodePointWhitespace(int%5B%5D,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,int,int): doesn't exist. -../AbstractElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,int,int): doesn't exist. -#%3Cinit%3E(net.sf.saxon.om.TreeInfo): doesn't exist. -#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(java.lang.String,java.lang.String): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.api.DetailAST,int,int): doesn't exist. -../../xpath/ElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.api.DetailAST,int,int): doesn't exist. -../ElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.api.DetailAST,int,int): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -../../xpath/RootNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.TreeWalkerAuditEvent,int): doesn't exist. -../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.TreeWalkerAuditEvent,int): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. -../../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. -../../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. -#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. -../../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. -../../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. -#%3Cinit%3E(): doesn't exist. -#%3Cinit%3E(net.sf.saxon.om.NodeInfo,com.puppycrawl.tools.checkstyle.xpath.iterators.DescendantIterator.StartWith): doesn't exist. -../DescendantIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo,com.puppycrawl.tools.checkstyle.xpath.iterators.DescendantIterator.StartWith): doesn't exist. -#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. -#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. -#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. -#%3Cinit%3E(java.util.Collection): doesn't exist. -com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.OutputStreamOptions.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.PatternConverter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.RelaxedAccessModifierArrayConverter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.RelaxedStringArrayConverter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.ScopeConverter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.SeverityLevelConverter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.UriConverter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AstTreeStringPrinter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/Checker.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/CheckstyleParserErrorStrategy.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/ConfigurationLoader.IgnoredModulesOptions.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/ConfigurationLoader.InternalLoader.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/ConfigurationLoader.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.PropertyResolver,boolean,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. -com/puppycrawl/tools/checkstyle/DefaultConfiguration.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/DefaultConfiguration.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. -com/puppycrawl/tools/checkstyle/DefaultContext.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,com.puppycrawl.tools.checkstyle.AuditEventFormatter): doesn't exist. -com/puppycrawl/tools/checkstyle/DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/Definitions.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/DetailAstImpl.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/DetailNodeTreeStringPrinter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavaAstVisitor.DetailAstPair.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavaAstVisitor.html#%3Cinit%3E(org.antlr.v4.runtime.CommonTokenStream): doesn't exist. -com/puppycrawl/tools/checkstyle/JavaParser.CheckstyleErrorListener.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavaParser.Options.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavaParser.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.DescriptiveErrorListener.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.ParseErrorMessage.html#%3Cinit%3E(int,java.lang.String,java.lang.Object...): doesn't exist. -com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.ParseStatus.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.html#insertChildrenNodes(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl%5B%5D,org.antlr.v4.runtime.tree.ParseTree): doesn't exist. -com/puppycrawl/tools/checkstyle/JavadocPropertiesGenerator.CliOptions.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/JavadocPropertiesGenerator.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/LocalizedMessage.Utf8Control.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/LocalizedMessage.html#%3Cinit%3E(java.lang.String,java.lang.Class,java.lang.String,java.lang.Object...): doesn't exist. -com/puppycrawl/tools/checkstyle/Main.CliOptions.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/Main.OnlyCheckstyleLoggersFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/Main.OutputFormat.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/Main.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/MetadataGeneratorLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/PackageNamesLoader.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/PackageObjectFactory.ModuleLoadOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/PackageObjectFactory.html#%3Cinit%3E(java.lang.String,java.lang.ClassLoader): doesn't exist. -com/puppycrawl/tools/checkstyle/PackageObjectFactory.html#%3Cinit%3E(java.util.Set,java.lang.ClassLoader): doesn't exist. -com/puppycrawl/tools/checkstyle/PackageObjectFactory.html#%3Cinit%3E(java.util.Set,java.lang.ClassLoader,com.puppycrawl.tools.checkstyle.PackageObjectFactory.ModuleLoadOption): doesn't exist. -com/puppycrawl/tools/checkstyle/PropertiesExpander.html#%3Cinit%3E(java.util.Properties): doesn't exist. -com/puppycrawl/tools/checkstyle/PropertyCacheFile.ExternalResource.html#%3Cinit%3E(java.lang.String,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/PropertyCacheFile.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.Configuration,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/PropertyType.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/SarifLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/SuppressionsStringPrinter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/ThreadModeSettings.html#%3Cinit%3E(int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/TreeWalker.AstState.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/TreeWalker.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/TreeWalkerAuditEvent.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/XMLLogger.FileMessages.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/XMLLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/XMLLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/XmlLoader.LoadExternalDtdFeatureProvider.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/XmlLoader.html#%3Cinit%3E(java.util.Map): doesn't exist. -com/puppycrawl/tools/checkstyle/XpathFileGeneratorAstFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/XpathFileGeneratorAuditListener.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.Formatter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.FormatterType.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.Property.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AbstractCheck.FileContext.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.FileContext.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AbstractViolationReporter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AuditEvent.html#%3Cinit%3E(java.lang.Object): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AuditEvent.html#%3Cinit%3E(java.lang.Object,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AuditEvent.html#%3Cinit%3E(java.lang.Object,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AutomaticBean.OutputStreamOptions.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/AutomaticBean.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilterSet.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/CheckstyleException.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/api/CheckstyleException.html#%3Cinit%3E(java.lang.String,java.lang.Throwable): doesn't exist. -com/puppycrawl/tools/checkstyle/api/Comment.html#%3Cinit%3E(java.lang.String%5B%5D,int,int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/api/FileContents.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. -com/puppycrawl/tools/checkstyle/api/FileText.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. -com/puppycrawl/tools/checkstyle/api/FileText.html#%3Cinit%3E(java.io.File,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/api/FileText.html#%3Cinit%3E(java.io.File,java.util.List): doesn't exist. -com/puppycrawl/tools/checkstyle/api/FilterSet.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/FullIdent.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/LineColumn.html#%3Cinit%3E(int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/api/Scope.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/SeverityLevel.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/SeverityLevelCounter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.SeverityLevel): doesn't exist. -com/puppycrawl/tools/checkstyle/api/TokenTypes.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/ArrayTypeStyleCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/DescendantTokenCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/FinalParametersCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/LineSeparatorOption.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/NewlineAtEndOfFileCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/NoCodeInFileCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.SequencedProperties.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/OuterTypeFilenameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.Entry.html#%3Cinit%3E(java.lang.String,int,int,int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/TodoCommentCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/TranslationCheck.ResourceBundle.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/TranslationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/UncommentedMainCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/UniquePropertiesCheck.UniqueProperties.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/UniquePropertiesCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/UpperEllCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationLocationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationOnSameLineCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationUseStyleCheck.ClosingParensOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationUseStyleCheck.ElementStyleOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationUseStyleCheck.TrailingArrayCommaOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationUseStyleCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/MissingDeprecatedCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/MissingOverrideCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/PackageAnnotationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/annotation/SuppressWarningsCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/AvoidNestedBlocksCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/BlockOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/EmptyCatchBlockCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/NeedBracesCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.Details.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,boolean): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/AbstractSuperCheck.MethodNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/AbstractSuperCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/ArrayTrailingCommaCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/AvoidDoubleBraceInitializationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/AvoidInlineConditionalsCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/AvoidNoArgumentSuperConstructorCallCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/CovariantEqualsCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/DeclarationOrderCheck.ScopeState.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/DeclarationOrderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/DefaultComesLastCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/EmptyStatementCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/EqualsAvoidNullCheck.FieldFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.EqualsAvoidNullCheck.FieldFrame): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/EqualsAvoidNullCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/EqualsHashCodeCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/ExplicitInitializationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/FallThroughCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.FinalVariableCandidate.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.ScopeData.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.FieldFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck.FieldFrame,boolean,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/IllegalCatchCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/IllegalInstantiationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/IllegalThrowsCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/IllegalTokenCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/IllegalTokenTextCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/IllegalTypeCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/InnerAssignmentCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/InnerAssignmentCheck.html#isInContext(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D%5B%5D,java.util.BitSet): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/MagicNumberCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/MatchXpathCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/MissingCtorCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/MissingSwitchDefaultCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/ModifiedControlVariableCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/MultipleStringLiteralsCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/MultipleVariableDeclarationsCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/NestedForDepthCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/NestedIfDepthCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/NestedTryDepthCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/NoArrayTrailingCommaCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/NoCloneCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/NoEnumTrailingCommaCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/NoFinalizerCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/OneStatementPerLineCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/OverloadMethodsDeclarationOrderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/PackageDeclarationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/ParameterAssignmentCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.AbstractFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.AnonymousClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.BlockFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.CatchFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.ClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.ConstructorFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.ForFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.FrameType.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.MethodFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.TryWithResourcesFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/ReturnCountCheck.Context.html#%3Cinit%3E(boolean): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/ReturnCountCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/SimplifyBooleanExpressionCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/SimplifyBooleanReturnCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/StringLiteralEqualityCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/SuperCloneCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/SuperFinalizeCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnnecessaryParenthesesCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnnecessarySemicolonAfterOuterTypeDeclarationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnnecessarySemicolonAfterTypeMemberDeclarationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnnecessarySemicolonInEnumerationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnnecessarySemicolonInTryWithResourcesCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.TypeDeclDesc.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/DesignForExtensionCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/FinalClassCheck.ClassDesc.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/FinalClassCheck.TypeDeclarationDescription.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/FinalClassCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/HideUtilityClassConstructorCheck.Details.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/HideUtilityClassConstructorCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/InnerTypeLastCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/InterfaceIsTypeCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/MutableExceptionCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/OneTopLevelClassCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/ThrowsCountCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/design/VisibilityModifierCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/header/AbstractHeaderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/header/HeaderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/header/RegexpHeaderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/AbstractImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportControl,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/AbstractImportRule.html#%3Cinit%3E(boolean,boolean,boolean): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/AccessResult.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/AvoidStarImportCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/AvoidStaticImportCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/ClassImportRule.html#%3Cinit%3E(boolean,boolean,java.lang.String,boolean): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.ImportDetails.html#%3Cinit%3E(java.lang.String,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.RuleMatchForImport.html#%3Cinit%3E(java.lang.String,int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/FileImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/IllegalImportCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/ImportControlCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/ImportControlLoader.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderCheck.html#getGroupNumber(java.util.regex.Pattern%5B%5D,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/MismatchStrategy.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/PkgImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/PkgImportControl.html#%3Cinit%3E(java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/PkgImportRule.html#%3Cinit%3E(boolean,boolean,java.lang.String,boolean,boolean): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/RedundantImportCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/UnusedImportsCheck.Frame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck.Frame): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/imports/UnusedImportsCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/AbstractExpressionHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/AnnotationArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/ArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/BlockParentHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/CaseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/CatchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/ClassDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/CommentsIndentationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/DetailAstSet.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/DoWhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/ElseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/FinallyHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/ForHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/IfHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/ImportHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,int...): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.html#%3Cinit%3E(int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/IndentationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/IndexHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/LabelHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/LambdaHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/LineWrappingHandler.LineWrappingOptions.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/LineWrappingHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/MemberDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/MethodCallHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/MethodDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/NewHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/ObjectBlockHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/PackageDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/PrimordialHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/SlistHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/StaticInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/SwitchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/SwitchRuleHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/SynchronizedHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/TryHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/WhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/indentation/YieldHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.FileContext.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/AtclauseOrderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/HtmlTag.html#%3Cinit%3E(java.lang.String,int,int,boolean,boolean,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/InvalidJavadocPositionCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/InvalidJavadocTag.html#%3Cinit%3E(int,int,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocBlockTagLocationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocContentLocationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocContentLocationOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.ClassInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.Token): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.ExceptionInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ClassInfo): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.Token.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FullIdent): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.Token.html#%3Cinit%3E(java.lang.String,int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.html#getMultilineNoArgTags(java.util.regex.Matcher,java.lang.String%5B%5D,int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMissingLeadingAsteriskCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMissingWhitespaceAfterAsteriskCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocNodeImpl.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocPackageCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocParagraphCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTag.html#%3Cinit%3E(int,int,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTag.html#%3Cinit%3E(int,int,java.lang.String,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagContinuationIndentationCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.Type.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.html#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo.Type): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTags.html#%3Cinit%3E(java.util.Collection,java.util.Collection): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTypeCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocVariableCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/MissingJavadocMethodCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/MissingJavadocPackageCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/MissingJavadocTypeCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/NonEmptyAtclauseDescriptionCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/RequireEmptyLineBeforeBlockTagGroupCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/SingleLineJavadocCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.Point.html#%3Cinit%3E(int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#%3Cinit%3E(java.lang.String%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#findChar(java.lang.String%5B%5D,char,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#getNextPoint(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#getTagId(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#isCommentTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#isTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#parseTag(java.lang.String%5B%5D,int,int,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#parseTags(java.lang.String%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#skipHtmlComment(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/WriteTagCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/utils/BlockTagUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/utils/InlineTagUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/javadoc/utils/TagInfo.html#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.api.LineColumn): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/AbstractClassCouplingCheck.ClassContext.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/AbstractClassCouplingCheck.html#%3Cinit%3E(int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/BooleanExpressionComplexityCheck.Context.html#%3Cinit%3E(boolean): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/BooleanExpressionComplexityCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/ClassDataAbstractionCouplingCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/ClassFanOutComplexityCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/CyclomaticComplexityCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/JavaNCSSCheck.Counter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/JavaNCSSCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/NPathComplexityCheck.TokenEnd.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/NPathComplexityCheck.Values.html#%3Cinit%3E(java.math.BigInteger,java.math.BigInteger): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/metrics/NPathComplexityCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/modifier/ClassMemberImpliedModifierCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/modifier/InterfaceMemberImpliedModifierCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/modifier/ModifierOrderCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/modifier/RedundantModifierCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/AbstractAccessControlNameCheck.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/AbstractClassNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/AbstractNameCheck.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/AccessModifierOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/CatchParameterNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/ClassTypeParameterNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/ConstantNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/IllegalIdentifierNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/InterfaceTypeParameterNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/LambdaParameterNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/LocalFinalVariableNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/LocalVariableNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/MemberNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/MethodNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/MethodTypeParameterNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/PackageNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/ParameterNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/PatternVariableNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/RecordComponentNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/RecordTypeParameterNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/StaticVariableNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/CommentSuppressor.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.Builder.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/MultilineDetector.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/NeverSuppress.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/RegexpCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/RegexpMultilineCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/RegexpOnFilenameCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/RegexpSinglelineCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/RegexpSinglelineJavaCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/regexp/SinglelineDetector.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/AnonInnerLengthCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/ExecutableStatementCountCheck.Context.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/ExecutableStatementCountCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/FileLengthCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/LambdaBodyLengthCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/LineLengthCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/MethodCountCheck.MethodCounter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/MethodCountCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/MethodLengthCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/OuterTypeNumberCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/ParameterNumberCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/sizes/RecordComponentNumberCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/AbstractParenPadCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/EmptyForInitializerPadCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/EmptyForIteratorPadCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/EmptyLineSeparatorCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/FileTabCharacterCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/GenericWhitespaceCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/GenericWhitespaceCheck.html#processNestedGenerics(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/GenericWhitespaceCheck.html#processSingleGeneric(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/MethodParamPadCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/NoLineWrapCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceAfterCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceBeforeCaseDefaultColonCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceBeforeCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/OperatorWrapCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/PadOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/ParenPadCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/SeparatorWrapCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isBlockCommentEnd(int%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isFirstInLine(int%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isSingleSpace(int%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isSpace(int%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isTextSeparatedCorrectlyFromPrevious(int%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/TypecastParenPadCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/WhitespaceAfterCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/WhitespaceAroundCheck.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/checks/whitespace/WrapOption.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filefilters/BeforeExecutionExclusionFileFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/CsvFilterElement.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/IntMatchFilterElement.html#%3Cinit%3E(int): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/IntRangeFilterElement.html#%3Cinit%3E(int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SeverityMatchFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.html#%3Cinit%3E(java.util.regex.Pattern,java.util.regex.Pattern,java.util.regex.Pattern,java.lang.String,java.lang.String,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressWarningsFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.Tag.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyCommentFilter): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyTextFilter): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.SuppressionType.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.Tag.html#%3Cinit%3E(int,int,java.lang.String,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.TagType,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.TagType.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressionFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressionSingleFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressionXpathFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressionXpathSingleFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/SuppressionsLoader.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.html#%3Cinit%3E(java.util.regex.Pattern,java.util.regex.Pattern,java.util.regex.Pattern,java.lang.String,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/grammar/CrAwareLexerSimulator.html#%3Cinit%3E(org.antlr.v4.runtime.Lexer,org.antlr.v4.runtime.atn.ATN,org.antlr.v4.runtime.dfa.DFA%5B%5D,org.antlr.v4.runtime.atn.PredictionContextCache): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/BaseCellEditor.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/CodeSelector.html#%3Cinit%3E(java.lang.Object,javax.swing.JTextArea,java.util.Collection): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/CodeSelectorPresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,java.util.List): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/CodeSelectorPresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailNode,java.util.List): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/ListToTreeSelectionModelWrapper.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/Main.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/MainFrame.ExpandCollapseAction.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/MainFrame.FileSelectionAction.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/MainFrame.FindNodeByXpathAction.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/MainFrame.JavaFileFilter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/MainFrame.ReloadAction.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/MainFrame.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/MainFrameModel.ParseMode.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/MainFrameModel.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/ParseTreeTableModel.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/ParseTreeTableModel.html#fireTreeStructureChanged(java.lang.Object,java.lang.Object%5B%5D,int%5B%5D,java.lang.Object...): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/TreeTable.TreeTableCellEditor.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/TreeTable.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/TreeTableCellRenderer.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable,javax.swing.tree.TreeModel): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/TreeTableModelAdapter.UpdatingTreeExpansionListener.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/TreeTableModelAdapter.UpdatingTreeModelListener.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/gui/TreeTableModelAdapter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel,javax.swing.JTree): doesn't exist. -com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/meta/MetadataGenerationException.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/meta/MetadataGeneratorUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/meta/ModuleDetails.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/meta/ModulePropertyDetails.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/meta/ModuleType.html#%3Cinit%3E(java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/meta/XmlMetaWriter.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/site/ExampleMacro.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/site/ParentModuleMacro.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/site/SiteUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/site/ViolationMessagesMacro.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/site/XdocsTemplateParser.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.html#%3Cinit%3E(java.io.Writer,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/site/XdocsTemplateSinkFactory.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/AnnotationUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/BlockCommentPosition.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/ChainedPropertyUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/CheckUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/CodePointUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/CodePointUtil.html#endsWith(int%5B%5D,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/CommonUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/CommonUtil.html#isCodePointWhitespace(int%5B%5D,int): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/FilterUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/JavadocUtil.JavadocTagType.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/JavadocUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/ModuleReflectionUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/ParserUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/ScopeUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/TokenUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/utils/XpathUtil.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/AbstractElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/AbstractNode.html#%3Cinit%3E(net.sf.saxon.om.TreeInfo): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/AbstractRootNode.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/AttributeNode.html#%3Cinit%3E(java.lang.String,java.lang.String): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/ElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.api.DetailAST,int,int): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/RootNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.TreeWalkerAuditEvent,int): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/iterators/DescendantIterator.StartWith.html#%3Cinit%3E(): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/iterators/DescendantIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo,com.puppycrawl.tools.checkstyle.xpath.iterators.DescendantIterator.StartWith): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/iterators/FollowingIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/iterators/PrecedingIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/iterators/ReverseDescendantIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. -com/puppycrawl/tools/checkstyle/xpath/iterators/ReverseListIterator.html#%3Cinit%3E(java.util.Collection): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. +AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. +AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. +AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. +AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.PropertyResolver,boolean,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. +../ConfigurationLoader.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.PropertyResolver,boolean,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. +../ConfigurationLoader.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.PropertyResolver,boolean,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. +../DefaultConfiguration.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,com.puppycrawl.tools.checkstyle.AuditEventFormatter): doesn't exist. +../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,com.puppycrawl.tools.checkstyle.AuditEventFormatter): doesn't exist. +../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,com.puppycrawl.tools.checkstyle.AuditEventFormatter): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. +../../DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(org.antlr.v4.runtime.CommonTokenStream): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(int,java.lang.String,java.lang.Object...): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#insertChildrenNodes(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl%5B%5D,org.antlr.v4.runtime.tree.ParseTree): doesn't exist. +../../../JavadocDetailNodeParser.html#insertChildrenNodes(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl%5B%5D,org.antlr.v4.runtime.tree.ParseTree): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.Class,java.lang.String,java.lang.Object...): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +../MetadataGeneratorLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.ClassLoader): doesn't exist. +#%3Cinit%3E(java.util.Set,java.lang.ClassLoader): doesn't exist. +#%3Cinit%3E(java.util.Set,java.lang.ClassLoader,com.puppycrawl.tools.checkstyle.PackageObjectFactory.ModuleLoadOption): doesn't exist. +../PackageObjectFactory.html#%3Cinit%3E(java.util.Set,java.lang.ClassLoader,com.puppycrawl.tools.checkstyle.PackageObjectFactory.ModuleLoadOption): doesn't exist. +#%3Cinit%3E(java.util.Properties): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.String): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.Configuration,java.lang.String): doesn't exist. +../../PropertyCacheFile.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.Configuration,java.lang.String): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +../SarifLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(int,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../TreeWalkerAuditEvent.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../TreeWalkerAuditEvent.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../TreeWalkerAuditEvent.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +../XMLLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. +../../XMLLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.util.Map): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +../XpathFileGeneratorAuditListener.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#beginTreecom.puppycrawl.tools.checkstyle.api.DetailAST: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#finishTreecom.puppycrawl.tools.checkstyle.api.DetailAST: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#getAcceptableTokens--: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#getDefaultTokens--: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#getRequiredTokens--: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#isCommentNodesRequired--: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#leaveTokencom.puppycrawl.tools.checkstyle.api.DetailAST: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#setTokens-java.lang.String...-: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#visitToken-com.puppycrawl.tools.checkstyle.api.DetailAST-: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#visitTokencom.puppycrawl.tools.checkstyle.api.DetailAST: doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.html#processFiltered-java.io.File-com.puppycrawl.tools.checkstyle.api.FileText-: doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.Object): doesn't exist. +#%3Cinit%3E(java.lang.Object,java.lang.String): doesn't exist. +#%3Cinit%3E(java.lang.Object,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation): doesn't exist. +../AuditEvent.html#%3Cinit%3E(java.lang.Object,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.Throwable): doesn't exist. +#%3Cinit%3E(java.lang.String%5B%5D,int,int,int): doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/api/ExternalResourceHolder.html#getExternalResourceLocations--: doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. +../FileContents.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. +../FileText.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. +#%3Cinit%3E(java.io.File,java.lang.String): doesn't exist. +#%3Cinit%3E(java.io.File,java.util.List): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(int,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.SeverityLevel): doesn't exist. +../SeverityLevelCounter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.SeverityLevel): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(int,int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +../Violation.html#%3Cinit%3E(int,int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +#%3Cinit%3E(int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +../Violation.html#%3Cinit%3E(int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +../Violation.html#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +../Violation.html#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,int,int,int,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,boolean): doesn't exist. +../../checks/blocks/RightCurlyCheck.Details.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,boolean): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/AbstractSuperCheck.MethodNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.EqualsAvoidNullCheck.FieldFrame): doesn't exist. +../EqualsAvoidNullCheck.FieldFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.EqualsAvoidNullCheck.FieldFrame): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/FinalLocalVariableCheck.FinalVariableCandidate.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck.FieldFrame,boolean,java.lang.String): doesn't exist. +../HiddenFieldCheck.FieldFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck.FieldFrame,boolean,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#isInContext(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D%5B%5D,java.util.BitSet): doesn't exist. +../../checks/coding/InnerAssignmentCheck.html#isInContext(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D%5B%5D,java.util.BitSet): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/RequireThisCheck.AbstractFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../RequireThisCheck.AbstractFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,java.lang.String): doesn't exist. +../RequireThisCheck.AnonymousClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,java.lang.String): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/RequireThisCheck.BlockFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../RequireThisCheck.BlockFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/RequireThisCheck.CatchFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../RequireThisCheck.CatchFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/RequireThisCheck.ClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../RequireThisCheck.ClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/RequireThisCheck.ConstructorFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../RequireThisCheck.ConstructorFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/RequireThisCheck.ForFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../RequireThisCheck.ForFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/RequireThisCheck.MethodFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../RequireThisCheck.MethodFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/RequireThisCheck.TryWithResourcesFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../RequireThisCheck.TryWithResourcesFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(boolean): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/UnusedLocalVariableCheck.TypeDeclDesc.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/design/FinalClassCheck.ClassDesc.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/design/FinalClassCheck.TypeDeclarationDescription.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/design/HideUtilityClassConstructorCheck.Details.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportControl,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +../AbstractImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportControl,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +../AbstractImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportControl,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +#%3Cinit%3E(boolean,boolean,boolean): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(boolean,boolean,java.lang.String,boolean): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/imports/CustomImportOrderCheck.ImportDetails.html#%3Cinit%3E(java.lang.String,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(java.lang.String,int,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean): doesn't exist. +../FileImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#getGroupNumber(java.util.regex.Pattern%5B%5D,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +../PkgImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +../PkgImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +#%3Cinit%3E(java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +../PkgImportControl.html#%3Cinit%3E(java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +#%3Cinit%3E(boolean,boolean,java.lang.String,boolean,boolean): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck.Frame): doesn't exist. +../UnusedImportsCheck.Frame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck.Frame): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/AbstractExpressionHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../AbstractExpressionHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../AbstractExpressionHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +../../checks/indentation/AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +../AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/AnnotationArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../AnnotationArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../AnnotationArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/ArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/BlockParentHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../BlockParentHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../BlockParentHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/CaseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../CaseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../CaseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/CatchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../CatchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../CatchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/ClassDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ClassDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ClassDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +../DetailAstSet.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/DoWhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../DoWhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../DoWhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/ElseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ElseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ElseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/FinallyHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../FinallyHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../FinallyHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/ForHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ForHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ForHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/IfHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../IfHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../IfHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/ImportHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ImportHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ImportHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,int...): doesn't exist. +../IndentLevel.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,int...): doesn't exist. +#%3Cinit%3E(int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/IndexHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../IndexHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../IndexHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/LabelHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../LabelHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../LabelHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/LambdaHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../LambdaHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../LambdaHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +../LineWrappingHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/MemberDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../MemberDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../MemberDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/MethodCallHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../MethodCallHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../MethodCallHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/MethodDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../MethodDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../MethodDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/NewHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../NewHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../NewHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/ObjectBlockHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ObjectBlockHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../ObjectBlockHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/PackageDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../PackageDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../PackageDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +../PrimordialHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/SlistHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../SlistHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../SlistHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/StaticInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../StaticInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../StaticInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/SwitchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../SwitchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../SwitchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/SwitchRuleHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../SwitchRuleHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../SwitchRuleHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/SynchronizedHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../SynchronizedHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../SynchronizedHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/TryHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../TryHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../TryHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/WhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../WhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../WhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../../checks/indentation/YieldHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../YieldHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +../YieldHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#getAcceptableJavadocTokens--: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#getBlockCommentAst--: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#getDefaultJavadocTokens--: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#getRequiredJavadocTokens--: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#setJavadocTokens-java.lang.String...-: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#visitJavadocToken-com.puppycrawl.tools.checkstyle.api.DetailNode-: doesn't exist. +apidocs/com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#visitToken-com.puppycrawl.tools.checkstyle.api.DetailAST-: doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,int,int,boolean,boolean,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(int,int,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.Token): doesn't exist. +../JavadocMethodCheck.ClassInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.Token): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ClassInfo): doesn't exist. +../../checks/javadoc/JavadocMethodCheck.ExceptionInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ClassInfo): doesn't exist. +../JavadocMethodCheck.ExceptionInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ClassInfo): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FullIdent): doesn't exist. +../../checks/javadoc/JavadocMethodCheck.Token.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FullIdent): doesn't exist. +#%3Cinit%3E(java.lang.String,int,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#getMultilineNoArgTags(java.util.regex.Matcher,java.lang.String%5B%5D,int,int): doesn't exist. +../JavadocMethodCheck.html#getMultilineNoArgTags(java.util.regex.Matcher,java.lang.String%5B%5D,int,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(int,int,java.lang.String): doesn't exist. +#%3Cinit%3E(int,int,java.lang.String,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo.Type): doesn't exist. +../JavadocTagInfo.html#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo.Type): doesn't exist. +#%3Cinit%3E(java.util.Collection,java.util.Collection): doesn't exist. +../JavadocTags.html#%3Cinit%3E(java.util.Collection,java.util.Collection): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(int,int): doesn't exist. +#%3Cinit%3E(java.lang.String%5B%5D,int): doesn't exist. +#findChar(java.lang.String%5B%5D,char,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +../TagParser.html#findChar(java.lang.String%5B%5D,char,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +#getNextPoint(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +../TagParser.html#getNextPoint(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +#getTagId(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +../TagParser.html#getTagId(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +#isCommentTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +../TagParser.html#isCommentTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +#isTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +../TagParser.html#isTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +#parseTag(java.lang.String%5B%5D,int,int,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +../TagParser.html#parseTag(java.lang.String%5B%5D,int,int,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +#parseTags(java.lang.String%5B%5D,int): doesn't exist. +#skipHtmlComment(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +../TagParser.html#skipHtmlComment(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.api.LineColumn): doesn't exist. +../../checks/javadoc/utils/TagInfo.html#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.api.LineColumn): doesn't exist. +#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/metrics/AbstractClassCouplingCheck.ClassContext.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(int): doesn't exist. +#%3Cinit%3E(boolean): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.math.BigInteger,java.math.BigInteger): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents): doesn't exist. +../../checks/regexp/CommentSuppressor.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. +../MultilineDetector.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. +../SinglelineDetector.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/sizes/ExecutableStatementCountCheck.Context.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../checks/sizes/MethodCountCheck.MethodCounter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#processNestedGenerics(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. +../../checks/whitespace/GenericWhitespaceCheck.html#processNestedGenerics(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. +#processSingleGeneric(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. +../../checks/whitespace/GenericWhitespaceCheck.html#processSingleGeneric(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#isBlockCommentEnd(int%5B%5D,int): doesn't exist. +#isFirstInLine(int%5B%5D,int): doesn't exist. +#isSingleSpace(int%5B%5D,int): doesn't exist. +#isSpace(int%5B%5D,int): doesn't exist. +#isTextSeparatedCorrectlyFromPrevious(int%5B%5D,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(int): doesn't exist. +#%3Cinit%3E(int,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): doesn't exist. +#%3Cinit%3E(java.util.regex.Pattern,java.util.regex.Pattern,java.util.regex.Pattern,java.lang.String,java.lang.String,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyCommentFilter): doesn't exist. +../SuppressWithNearbyCommentFilter.Tag.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyCommentFilter): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyTextFilter): doesn't exist. +../SuppressWithNearbyTextFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyTextFilter): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter): doesn't exist. +../SuppressWithPlainTextCommentFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter): doesn't exist. +../SuppressWithPlainTextCommentFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(int,int,java.lang.String,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.TagType,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter): doesn't exist. +../SuppressionCommentFilter.Tag.html#%3Cinit%3E(int,int,java.lang.String,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.TagType,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter): doesn't exist. +../SuppressionCommentFilter.Tag.html#%3Cinit%3E(int,int,java.lang.String,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.TagType,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): doesn't exist. +#%3Cinit%3E(java.util.regex.Pattern,java.util.regex.Pattern,java.util.regex.Pattern,java.lang.String,java.lang.String): doesn't exist. +#%3Cinit%3E(org.antlr.v4.runtime.Lexer,org.antlr.v4.runtime.atn.ATN,org.antlr.v4.runtime.dfa.DFA%5B%5D,org.antlr.v4.runtime.atn.PredictionContextCache): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.Object,javax.swing.JTextArea,java.util.Collection): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,java.util.List): doesn't exist. +../../gui/CodeSelectorPresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,java.util.List): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailNode,java.util.List): doesn't exist. +../../gui/CodeSelectorPresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailNode,java.util.List): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable): doesn't exist. +../ListToTreeSelectionModelWrapper.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../gui/ParseTreeTableModel.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#fireTreeStructureChanged(java.lang.Object,java.lang.Object%5B%5D,int%5B%5D,java.lang.Object...): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../gui/ParseTreeTablePresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel): doesn't exist. +../TreeTable.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable,javax.swing.tree.TreeModel): doesn't exist. +../TreeTableCellRenderer.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable,javax.swing.tree.TreeModel): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel,javax.swing.JTree): doesn't exist. +../TreeTableModelAdapter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel,javax.swing.JTree): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#getDifference(int%5B%5D,int...): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.io.Writer,java.lang.String): doesn't exist. +#tableRows(int%5B%5D,boolean): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#endsWith(int%5B%5D,java.lang.String): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#isCodePointWhitespace(int%5B%5D,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#copyOfArray(T%5B%5D,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,int,int): doesn't exist. +../AbstractElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,int,int): doesn't exist. +#%3Cinit%3E(net.sf.saxon.om.TreeInfo): doesn't exist. +#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(java.lang.String,java.lang.String): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.api.DetailAST,int,int): doesn't exist. +../../xpath/ElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.api.DetailAST,int,int): doesn't exist. +../ElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.api.DetailAST,int,int): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +../../xpath/RootNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.TreeWalkerAuditEvent,int): doesn't exist. +../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.TreeWalkerAuditEvent,int): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. +../../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. +../../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. +#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. +../../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. +../../xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. +#%3Cinit%3E(): doesn't exist. +#%3Cinit%3E(net.sf.saxon.om.NodeInfo,com.puppycrawl.tools.checkstyle.xpath.iterators.DescendantIterator.StartWith): doesn't exist. +../DescendantIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo,com.puppycrawl.tools.checkstyle.xpath.iterators.DescendantIterator.StartWith): doesn't exist. +#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. +#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. +#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. +#%3Cinit%3E(java.util.Collection): doesn't exist. +#%3Cinit%3E(java.io.Writer): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.OutputStreamOptions.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.PatternArrayConverter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.PatternConverter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.RelaxedAccessModifierArrayConverter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.RelaxedStringArrayConverter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.ScopeConverter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.SeverityLevelConverter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.UriConverter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AstTreeStringPrinter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/Checker.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/CheckstyleParserErrorStrategy.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/ConfigurationLoader.IgnoredModulesOptions.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/ConfigurationLoader.InternalLoader.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/ConfigurationLoader.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.PropertyResolver,boolean,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. +com/puppycrawl/tools/checkstyle/DefaultConfiguration.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/DefaultConfiguration.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.ThreadModeSettings): doesn't exist. +com/puppycrawl/tools/checkstyle/DefaultContext.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions,com.puppycrawl.tools.checkstyle.AuditEventFormatter): doesn't exist. +com/puppycrawl/tools/checkstyle/DefaultLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/Definitions.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/DetailAstImpl.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/DetailNodeTreeStringPrinter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavaAstVisitor.DetailAstPair.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavaAstVisitor.html#%3Cinit%3E(org.antlr.v4.runtime.CommonTokenStream): doesn't exist. +com/puppycrawl/tools/checkstyle/JavaParser.CheckstyleErrorListener.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavaParser.Options.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavaParser.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.DescriptiveErrorListener.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.ParseErrorMessage.html#%3Cinit%3E(int,java.lang.String,java.lang.Object...): doesn't exist. +com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.ParseStatus.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.html#insertChildrenNodes(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl%5B%5D,org.antlr.v4.runtime.tree.ParseTree): doesn't exist. +com/puppycrawl/tools/checkstyle/JavadocPropertiesGenerator.CliOptions.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/JavadocPropertiesGenerator.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/LocalizedMessage.Utf8Control.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/LocalizedMessage.html#%3Cinit%3E(java.lang.String,java.lang.Class,java.lang.String,java.lang.Object...): doesn't exist. +com/puppycrawl/tools/checkstyle/Main.CliOptions.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/Main.OnlyCheckstyleLoggersFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/Main.OutputFormat.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/Main.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/MetadataGeneratorLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/OsSpecificUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/PackageNamesLoader.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/PackageObjectFactory.ModuleLoadOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/PackageObjectFactory.html#%3Cinit%3E(java.lang.String,java.lang.ClassLoader): doesn't exist. +com/puppycrawl/tools/checkstyle/PackageObjectFactory.html#%3Cinit%3E(java.util.Set,java.lang.ClassLoader): doesn't exist. +com/puppycrawl/tools/checkstyle/PackageObjectFactory.html#%3Cinit%3E(java.util.Set,java.lang.ClassLoader,com.puppycrawl.tools.checkstyle.PackageObjectFactory.ModuleLoadOption): doesn't exist. +com/puppycrawl/tools/checkstyle/PropertiesExpander.html#%3Cinit%3E(java.util.Properties): doesn't exist. +com/puppycrawl/tools/checkstyle/PropertyCacheFile.ExternalResource.html#%3Cinit%3E(java.lang.String,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/PropertyCacheFile.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.Configuration,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/PropertyType.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/SarifLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/SuppressionsStringPrinter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/ThreadModeSettings.html#%3Cinit%3E(int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/TreeWalker.AstState.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/TreeWalker.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/TreeWalkerAuditEvent.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/XMLLogger.FileMessages.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/XMLLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/XMLLogger.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/XmlLoader.LoadExternalDtdFeatureProvider.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/XmlLoader.html#%3Cinit%3E(java.util.Map): doesn't exist. +com/puppycrawl/tools/checkstyle/XpathFileGeneratorAstFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/XpathFileGeneratorAuditListener.html#%3Cinit%3E(java.io.OutputStream,com.puppycrawl.tools.checkstyle.AbstractAutomaticBean.OutputStreamOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.Formatter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.FormatterType.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.Property.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AbstractCheck.FileContext.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AbstractCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.FileContext.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AbstractViolationReporter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AuditEvent.html#%3Cinit%3E(java.lang.Object): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AuditEvent.html#%3Cinit%3E(java.lang.Object,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AuditEvent.html#%3Cinit%3E(java.lang.Object,java.lang.String,com.puppycrawl.tools.checkstyle.api.Violation): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AutomaticBean.OutputStreamOptions.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/AutomaticBean.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilterSet.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/CheckstyleException.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/api/CheckstyleException.html#%3Cinit%3E(java.lang.String,java.lang.Throwable): doesn't exist. +com/puppycrawl/tools/checkstyle/api/Comment.html#%3Cinit%3E(java.lang.String%5B%5D,int,int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/api/FileContents.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. +com/puppycrawl/tools/checkstyle/api/FileText.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileText): doesn't exist. +com/puppycrawl/tools/checkstyle/api/FileText.html#%3Cinit%3E(java.io.File,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/api/FileText.html#%3Cinit%3E(java.io.File,java.util.List): doesn't exist. +com/puppycrawl/tools/checkstyle/api/FilterSet.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/FullIdent.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/LineColumn.html#%3Cinit%3E(int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/api/Scope.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/SeverityLevel.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/SeverityLevelCounter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.SeverityLevel): doesn't exist. +com/puppycrawl/tools/checkstyle/api/TokenTypes.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,com.puppycrawl.tools.checkstyle.api.SeverityLevel,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/api/Violation.html#%3Cinit%3E(int,java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String,java.lang.Class,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/ArrayTypeStyleCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/DescendantTokenCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/FinalParametersCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/LineSeparatorOption.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/NewlineAtEndOfFileCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/NoCodeInFileCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.SequencedProperties.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/OuterTypeFilenameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.Entry.html#%3Cinit%3E(java.lang.String,int,int,int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/TodoCommentCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/TranslationCheck.ResourceBundle.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/TranslationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/UncommentedMainCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/UniquePropertiesCheck.UniqueProperties.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/UniquePropertiesCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/UpperEllCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationLocationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationOnSameLineCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationUseStyleCheck.ClosingParensOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationUseStyleCheck.ElementStyleOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationUseStyleCheck.TrailingArrayCommaOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationUseStyleCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/MissingDeprecatedCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/MissingOverrideCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/PackageAnnotationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/annotation/SuppressWarningsCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/AvoidNestedBlocksCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/BlockOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/EmptyCatchBlockCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/NeedBracesCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.Details.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST,boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/blocks/RightCurlyOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/AbstractSuperCheck.MethodNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/AbstractSuperCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/ArrayTrailingCommaCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/AvoidDoubleBraceInitializationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/AvoidInlineConditionalsCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/AvoidNoArgumentSuperConstructorCallCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/ConstructorsDeclarationGroupingCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/CovariantEqualsCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/DeclarationOrderCheck.ScopeState.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/DeclarationOrderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/DefaultComesLastCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/EmptyStatementCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/EqualsAvoidNullCheck.FieldFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.EqualsAvoidNullCheck.FieldFrame): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/EqualsAvoidNullCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/EqualsHashCodeCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/ExplicitInitializationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/FallThroughCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.FinalVariableCandidate.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.ScopeData.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.FieldFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck.FieldFrame,boolean,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/HiddenFieldCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/IllegalCatchCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/IllegalInstantiationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/IllegalThrowsCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/IllegalTokenCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/IllegalTokenTextCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/IllegalTypeCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/InnerAssignmentCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/InnerAssignmentCheck.html#isInContext(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D%5B%5D,java.util.BitSet): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/MagicNumberCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/MatchXpathCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/MissingCtorCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/MissingSwitchDefaultCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/ModifiedControlVariableCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/MultipleStringLiteralsCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/MultipleVariableDeclarationsCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/NestedForDepthCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/NestedIfDepthCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/NestedTryDepthCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/NoArrayTrailingCommaCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/NoCloneCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/NoEnumTrailingCommaCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/NoFinalizerCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/OneStatementPerLineCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/OverloadMethodsDeclarationOrderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/PackageDeclarationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/ParameterAssignmentCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.AbstractFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.AnonymousClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.BlockFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.CatchFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.ClassFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.ConstructorFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.ForFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.FrameType.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.MethodFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.TryWithResourcesFrame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/ReturnCountCheck.Context.html#%3Cinit%3E(boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/ReturnCountCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/SimplifyBooleanExpressionCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/SimplifyBooleanReturnCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/StringLiteralEqualityCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/SuperCloneCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/SuperFinalizeCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnnecessaryParenthesesCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnnecessarySemicolonAfterOuterTypeDeclarationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnnecessarySemicolonAfterTypeMemberDeclarationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnnecessarySemicolonInEnumerationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnnecessarySemicolonInTryWithResourcesCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.TypeDeclDesc.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.VariableDesc.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/UnusedLocalVariableCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/coding/VariableDeclarationUsageDistanceCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/DesignForExtensionCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/FinalClassCheck.ClassDesc.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/FinalClassCheck.TypeDeclarationDescription.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/FinalClassCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/HideUtilityClassConstructorCheck.Details.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/HideUtilityClassConstructorCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/InnerTypeLastCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/InterfaceIsTypeCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/MutableExceptionCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/OneTopLevelClassCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/ThrowsCountCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/design/VisibilityModifierCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/header/AbstractHeaderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/header/HeaderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/header/RegexpHeaderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/AbstractImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportControl,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/AbstractImportRule.html#%3Cinit%3E(boolean,boolean,boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/AccessResult.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/AvoidStarImportCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/AvoidStaticImportCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/ClassImportRule.html#%3Cinit%3E(boolean,boolean,java.lang.String,boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.ImportDetails.html#%3Cinit%3E(java.lang.String,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.RuleMatchForImport.html#%3Cinit%3E(java.lang.String,int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/FileImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/IllegalImportCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/ImportControlCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/ImportControlLoader.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderCheck.html#getGroupNumber(java.util.regex.Pattern%5B%5D,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/MismatchStrategy.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/PkgImportControl.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl,java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/PkgImportControl.html#%3Cinit%3E(java.lang.String,boolean,com.puppycrawl.tools.checkstyle.checks.imports.MismatchStrategy): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/PkgImportRule.html#%3Cinit%3E(boolean,boolean,java.lang.String,boolean,boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/RedundantImportCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/UnusedImportsCheck.Frame.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck.Frame): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/imports/UnusedImportsCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/AbstractExpressionHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/AbstractExpressionHandler.html#checkChildren(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,boolean,boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/AnnotationArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/ArrayInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/BlockParentHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/CaseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/CatchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/ClassDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/CommentsIndentationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/DetailAstSet.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/DoWhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/ElseHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/FinallyHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/ForHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/IfHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/ImportHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel,int...): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/IndentLevel.html#%3Cinit%3E(int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/IndentationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/IndexHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/LabelHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/LambdaHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/LineWrappingHandler.LineWrappingOptions.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/LineWrappingHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/MemberDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/MethodCallHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/MethodDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/NewHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/ObjectBlockHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/PackageDefHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/PrimordialHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/SlistHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/StaticInitHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/SwitchHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/SwitchRuleHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/SynchronizedHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/TryHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/WhileHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/indentation/YieldHandler.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck,com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.FileContext.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/AbstractJavadocCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/AtclauseOrderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/HtmlTag.html#%3Cinit%3E(java.lang.String,int,int,boolean,boolean,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/InvalidJavadocPositionCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/InvalidJavadocTag.html#%3Cinit%3E(int,int,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocBlockTagLocationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocContentLocationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocContentLocationOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.ClassInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.Token): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.ExceptionInfo.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ClassInfo): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.Token.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FullIdent): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.Token.html#%3Cinit%3E(java.lang.String,int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.html#getMultilineNoArgTags(java.util.regex.Matcher,java.lang.String%5B%5D,int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMissingLeadingAsteriskCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMissingWhitespaceAfterAsteriskCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocNodeImpl.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocPackageCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocParagraphCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTag.html#%3Cinit%3E(int,int,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTag.html#%3Cinit%3E(int,int,java.lang.String,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagContinuationIndentationCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.Type.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo.html#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo.Type): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTags.html#%3Cinit%3E(java.util.Collection,java.util.Collection): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTypeCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocVariableCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/MissingJavadocMethodCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/MissingJavadocPackageCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/MissingJavadocTypeCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/NonEmptyAtclauseDescriptionCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/RequireEmptyLineBeforeBlockTagGroupCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/SingleLineJavadocCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.Point.html#%3Cinit%3E(int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#%3Cinit%3E(java.lang.String%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#findChar(java.lang.String%5B%5D,char,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#getNextPoint(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#getTagId(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#isCommentTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#isTag(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#parseTag(java.lang.String%5B%5D,int,int,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#parseTags(java.lang.String%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.html#skipHtmlComment(java.lang.String%5B%5D,com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/WriteTagCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/utils/BlockTagUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/utils/InlineTagUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/javadoc/utils/TagInfo.html#%3Cinit%3E(java.lang.String,java.lang.String,com.puppycrawl.tools.checkstyle.api.LineColumn): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/AbstractClassCouplingCheck.ClassContext.html#%3Cinit%3E(java.lang.String,com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/AbstractClassCouplingCheck.html#%3Cinit%3E(int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/BooleanExpressionComplexityCheck.Context.html#%3Cinit%3E(boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/BooleanExpressionComplexityCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/ClassDataAbstractionCouplingCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/ClassFanOutComplexityCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/CyclomaticComplexityCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/JavaNCSSCheck.Counter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/JavaNCSSCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/NPathComplexityCheck.TokenEnd.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/NPathComplexityCheck.Values.html#%3Cinit%3E(java.math.BigInteger,java.math.BigInteger): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/metrics/NPathComplexityCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/modifier/ClassMemberImpliedModifierCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/modifier/InterfaceMemberImpliedModifierCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/modifier/ModifierOrderCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/modifier/RedundantModifierCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/AbstractAccessControlNameCheck.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/AbstractClassNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/AbstractNameCheck.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/AccessModifierOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/CatchParameterNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/ClassTypeParameterNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/ConstantNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/IllegalIdentifierNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/InterfaceTypeParameterNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/LambdaParameterNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/LocalFinalVariableNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/LocalVariableNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/MemberNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/MethodNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/MethodTypeParameterNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/PackageNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/ParameterNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/PatternVariableNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/RecordComponentNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/RecordTypeParameterNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/StaticVariableNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/CommentSuppressor.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.FileContents): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.Builder.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/MultilineDetector.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/NeverSuppress.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/RegexpCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/RegexpMultilineCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/RegexpOnFilenameCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/RegexpSinglelineCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/RegexpSinglelineJavaCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/regexp/SinglelineDetector.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/AnonInnerLengthCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/ExecutableStatementCountCheck.Context.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/ExecutableStatementCountCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/FileLengthCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/LambdaBodyLengthCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/LineLengthCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/MethodCountCheck.MethodCounter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/MethodCountCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/MethodLengthCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/OuterTypeNumberCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/ParameterNumberCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/sizes/RecordComponentNumberCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/AbstractParenPadCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/EmptyForInitializerPadCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/EmptyForIteratorPadCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/EmptyLineSeparatorCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/FileTabCharacterCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/GenericWhitespaceCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/GenericWhitespaceCheck.html#processNestedGenerics(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/GenericWhitespaceCheck.html#processSingleGeneric(com.puppycrawl.tools.checkstyle.api.DetailAST,int%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/MethodParamPadCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/NoLineWrapCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceAfterCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceBeforeCaseDefaultColonCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/NoWhitespaceBeforeCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/OperatorWrapCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/PadOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/ParenPadCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/SeparatorWrapCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isBlockCommentEnd(int%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isFirstInLine(int%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isSingleSpace(int%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isSpace(int%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/SingleSpaceSeparatorCheck.html#isTextSeparatedCorrectlyFromPrevious(int%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/TypecastParenPadCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/WhitespaceAfterCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/WhitespaceAroundCheck.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/checks/whitespace/WrapOption.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filefilters/BeforeExecutionExclusionFileFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/CsvFilterElement.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/IntMatchFilterElement.html#%3Cinit%3E(int): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/IntRangeFilterElement.html#%3Cinit%3E(int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SeverityMatchFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressFilterElement.html#%3Cinit%3E(java.util.regex.Pattern,java.util.regex.Pattern,java.util.regex.Pattern,java.lang.String,java.lang.String,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressWarningsFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.Tag.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyCommentFilter): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyTextFilter): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyTextFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.Suppression.html#%3Cinit%3E(java.lang.String,int,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType,com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.SuppressionType.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressWithPlainTextCommentFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.Tag.html#%3Cinit%3E(int,int,java.lang.String,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.TagType,com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.TagType.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressionFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressionSingleFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressionXpathFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressionXpathSingleFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/SuppressionsLoader.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/filters/XpathFilterElement.html#%3Cinit%3E(java.util.regex.Pattern,java.util.regex.Pattern,java.util.regex.Pattern,java.lang.String,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/grammar/CrAwareLexerSimulator.html#%3Cinit%3E(org.antlr.v4.runtime.Lexer,org.antlr.v4.runtime.atn.ATN,org.antlr.v4.runtime.dfa.DFA%5B%5D,org.antlr.v4.runtime.atn.PredictionContextCache): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/BaseCellEditor.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/CodeSelector.html#%3Cinit%3E(java.lang.Object,javax.swing.JTextArea,java.util.Collection): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/CodeSelectorPresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,java.util.List): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/CodeSelectorPresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailNode,java.util.List): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/ListToTreeSelectionModelWrapper.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/Main.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/MainFrame.ExpandCollapseAction.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/MainFrame.FileSelectionAction.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/MainFrame.FindNodeByXpathAction.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/MainFrame.JavaFileFilter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/MainFrame.ReloadAction.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/MainFrame.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/MainFrameModel.ParseMode.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/MainFrameModel.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/ParseTreeTableModel.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/ParseTreeTableModel.html#fireTreeStructureChanged(java.lang.Object,java.lang.Object%5B%5D,int%5B%5D,java.lang.Object...): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/ParseTreeTablePresentation.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/TreeTable.TreeTableCellEditor.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/TreeTable.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/TreeTableCellRenderer.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.TreeTable,javax.swing.tree.TreeModel): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/TreeTableModelAdapter.UpdatingTreeExpansionListener.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/TreeTableModelAdapter.UpdatingTreeModelListener.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/gui/TreeTableModelAdapter.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel,javax.swing.JTree): doesn't exist. +com/puppycrawl/tools/checkstyle/meta/JavadocMetadataScraper.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/meta/MetadataGenerationException.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/meta/MetadataGeneratorUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/meta/ModuleDetails.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/meta/ModulePropertyDetails.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/meta/ModuleType.html#%3Cinit%3E(java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/meta/XmlMetaReader.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/meta/XmlMetaWriter.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/ClassAndPropertiesSettersJavadocScraper.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/ExampleMacro.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/ParentModuleMacro.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/PropertiesMacro.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/SiteUtil.DescriptionExtractor.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/SiteUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/SiteUtil.html#getDifference(int%5B%5D,int...): doesn't exist. +com/puppycrawl/tools/checkstyle/site/ViolationMessagesMacro.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/XdocsTemplateParser.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.html#%3Cinit%3E(java.io.Writer,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.html#tableRows(int%5B%5D,boolean): doesn't exist. +com/puppycrawl/tools/checkstyle/site/XdocsTemplateSinkFactory.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/AnnotationUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/BlockCommentPosition.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/ChainedPropertyUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/CheckUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/CodePointUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/CodePointUtil.html#endsWith(int%5B%5D,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/CommonUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/CommonUtil.html#isCodePointWhitespace(int%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/FilterUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/JavadocUtil.JavadocTagType.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/JavadocUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/ModuleReflectionUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/ParserUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/ScopeUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/TokenUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/XpathUtil.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/AbstractElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/AbstractNode.html#%3Cinit%3E(net.sf.saxon.om.TreeInfo): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/AbstractNode.html#getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding%5B%5D): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/AbstractRootNode.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/AttributeNode.html#%3Cinit%3E(java.lang.String,java.lang.String): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/ElementNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.xpath.AbstractNode,com.puppycrawl.tools.checkstyle.api.DetailAST,int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/RootNode.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.TreeWalkerAuditEvent,int): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/XpathQueryGenerator.html#%3Cinit%3E(com.puppycrawl.tools.checkstyle.api.DetailAST,int,int,int,com.puppycrawl.tools.checkstyle.api.FileText,int): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/iterators/DescendantIterator.StartWith.html#%3Cinit%3E(): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/iterators/DescendantIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo,com.puppycrawl.tools.checkstyle.xpath.iterators.DescendantIterator.StartWith): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/iterators/FollowingIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/iterators/PrecedingIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/iterators/ReverseDescendantIterator.html#%3Cinit%3E(net.sf.saxon.om.NodeInfo): doesn't exist. +com/puppycrawl/tools/checkstyle/xpath/iterators/ReverseListIterator.html#%3Cinit%3E(java.util.Collection): doesn't exist. +com/puppycrawl/tools/checkstyle/utils/UnmodifiableCollectionUtil.html#copyOfArray(T%5B%5D,int): doesn't exist. +com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.CustomPrintWriter.html#%3Cinit%3E(java.io.Writer): doesn't exist. +com/puppycrawl/tools/checkstyle/grammar/CompositeLexerContextCache.html#%3Cinit%3E(org.antlr.v4.runtime.Lexer): doesn't exist. +#%3Cinit%3E(org.antlr.v4.runtime.Lexer): doesn't exist. +#%3Cinit%3E(int,int): doesn't exist. +com/puppycrawl/tools/checkstyle/grammar/CompositeLexerContextCache.StringTemplateContext.html#%3Cinit%3E(int,int): doesn't exist. diff --git a/config/pitest-suppressions/pitest-api-suppressions.xml b/config/pitest-suppressions/pitest-api-suppressions.xml index b00396e26a9..ee8189065be 100644 --- a/config/pitest-suppressions/pitest-api-suppressions.xml +++ b/config/pitest-suppressions/pitest-api-suppressions.xml @@ -9,51 +9,6 @@ charset = null; - - FileText.java - com.puppycrawl.tools.checkstyle.api.FileText - <init> - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/nio/charset/CharsetDecoder::onMalformedInput - decoder.onMalformedInput(CodingErrorAction.REPLACE); - - - - FileText.java - com.puppycrawl.tools.checkstyle.api.FileText - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/nio/charset/CharsetDecoder::onMalformedInput with receiver - decoder.onMalformedInput(CodingErrorAction.REPLACE); - - - - FileText.java - com.puppycrawl.tools.checkstyle.api.FileText - <init> - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/nio/charset/CharsetDecoder::onUnmappableCharacter - decoder.onUnmappableCharacter(CodingErrorAction.REPLACE); - - - - FileText.java - com.puppycrawl.tools.checkstyle.api.FileText - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/nio/charset/CharsetDecoder::onUnmappableCharacter with receiver - decoder.onUnmappableCharacter(CodingErrorAction.REPLACE); - - - - Violation.java - com.puppycrawl.tools.checkstyle.api.Violation - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Arrays::copyOf with argument - this.args = Arrays.copyOf(args, args.length); - - Violation.java com.puppycrawl.tools.checkstyle.api.Violation @@ -62,13 +17,4 @@ Removed assignment to member variable args this.args = null; - - - Violation.java - com.puppycrawl.tools.checkstyle.api.Violation - compareTo - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/String::compareTo - result = getViolation().compareTo(other.getViolation()); - diff --git a/config/pitest-suppressions/pitest-coding-1-suppressions.xml b/config/pitest-suppressions/pitest-coding-1-suppressions.xml new file mode 100644 index 00000000000..564e522b55e --- /dev/null +++ b/config/pitest-suppressions/pitest-coding-1-suppressions.xml @@ -0,0 +1,47 @@ + + + + VariableDeclarationUsageDistanceCheck.java + com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck + getDistToVariableUsageInChildNode + org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator + replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getFirstChild with receiver + examineNode = examineNode.getFirstChild().getNextSibling(); + + + + VariableDeclarationUsageDistanceCheck.java + com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck + getDistToVariableUsageInChildNode + org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator + replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getNextSibling with receiver + examineNode = examineNode.getFirstChild().getNextSibling(); + + + + VariableDeclarationUsageDistanceCheck.java + com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck + getDistToVariableUsageInChildNode + org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator + removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getType + if (examineNode.getType() == TokenTypes.LABELED_STAT) { + + + + VariableDeclarationUsageDistanceCheck.java + com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck + getDistToVariableUsageInChildNode + org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_ELSE + removed conditional - replaced equality check with false + if (examineNode.getType() == TokenTypes.LABELED_STAT) { + + + + VariableDeclarationUsageDistanceCheck.java + com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck + getDistToVariableUsageInChildNode + org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_4 + RemoveSwitch 4 (case value 89) + switch (examineNode.getType()) { + + diff --git a/config/pitest-suppressions/pitest-coding-2-suppressions.xml b/config/pitest-suppressions/pitest-coding-2-suppressions.xml index d47cdd11c82..894830e692b 100644 --- a/config/pitest-suppressions/pitest-coding-2-suppressions.xml +++ b/config/pitest-suppressions/pitest-coding-2-suppressions.xml @@ -1,67 +1,39 @@ + - FallThroughCheck.java - com.puppycrawl.tools.checkstyle.checks.coding.FallThroughCheck - matchesComment - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Matcher::start - lineNo, matcher.start(), lineNo, matcher.end()); - - - - FinalLocalVariableCheck.java - com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck - leaveToken - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/Deque::pop - prevScopeUninitializedVariables.pop(); + UnusedLocalVariableCheck.java + com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck + getBlockContainingLocalAnonInnerClass + org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator + negated conditional + if (currentAst.getType() == TokenTypes.LAMBDA) { - - - - - - - - - - - MatchXpathCheck.java - com.puppycrawl.tools.checkstyle.checks.coding.MatchXpathCheck - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable query - private String query = ""; + UnusedLocalVariableCheck.java + com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck + getBlockContainingLocalAnonInnerClass + org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF + removed conditional - replaced equality check with true + if (currentAst.getType() == TokenTypes.LAMBDA) { - MatchXpathCheck.java - com.puppycrawl.tools.checkstyle.checks.coding.MatchXpathCheck - setQuery - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable query - this.query = query; + UnusedLocalVariableCheck.java + com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck + isInsideLocalAnonInnerClass + org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator + negated conditional + if (currentAst.getType() == TokenTypes.SLIST) { - - - - - - - - - UnusedLocalVariableCheck.java - com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck$TypeDeclDesc - getUpdatedCopyOfVarStack - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getLastChild with receiver - final DetailAST updatedScope = literalNewAst.getLastChild(); + com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck + isInsideLocalAnonInnerClass + org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF + removed conditional - replaced equality check with true + if (currentAst.getType() == TokenTypes.SLIST) { - diff --git a/config/pitest-suppressions/pitest-common-2-suppressions.xml b/config/pitest-suppressions/pitest-common-2-suppressions.xml deleted file mode 100644 index 3945d750166..00000000000 --- a/config/pitest-suppressions/pitest-common-2-suppressions.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - DetailAstImpl.java - com.puppycrawl.tools.checkstyle.DetailAstImpl - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable childCount - private int childCount = NOT_INITIALIZED; - - - - DetailAstImpl.java - com.puppycrawl.tools.checkstyle.DetailAstImpl - addChild - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/DetailAstImpl::getLastChild - astImpl.previousSibling = (DetailAstImpl) getLastChild(); - - - - DetailAstImpl.java - com.puppycrawl.tools.checkstyle.DetailAstImpl - addChild - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable previousSibling - astImpl.previousSibling = (DetailAstImpl) getLastChild(); - - - - DetailAstImpl.java - com.puppycrawl.tools.checkstyle.DetailAstImpl - addNextSibling - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable previousSibling - astImpl.previousSibling = this; - - - - DetailAstImpl.java - com.puppycrawl.tools.checkstyle.DetailAstImpl - addNextSibling - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable previousSibling - sibling.previousSibling = astImpl; - - - - - - - - - - - - - - - - - - - - - - DetailAstImpl.java - com.puppycrawl.tools.checkstyle.DetailAstImpl - removeChildren - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable firstChild - firstChild = null; - - - - DetailAstImpl.java - com.puppycrawl.tools.checkstyle.DetailAstImpl - toString - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/DetailAstImpl::getColumnNo - return text + "[" + getLineNo() + "x" + getColumnNo() + "]"; - - - - DetailAstImpl.java - com.puppycrawl.tools.checkstyle.DetailAstImpl - toString - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/DetailAstImpl::getLineNo - return text + "[" + getLineNo() + "x" + getColumnNo() + "]"; - - - - JavaParser.java - com.puppycrawl.tools.checkstyle.JavaParser - appendHiddenCommentNodes - org.pitest.mutationtest.engine.gregor.mutators.returns.NullReturnValsMutator - replaced return value with null for com/puppycrawl/tools/checkstyle/JavaParser::appendHiddenCommentNodes - return root; - - - - JavaParser.java - com.puppycrawl.tools.checkstyle.JavaParser - parseFile - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/io/File::getAbsoluteFile with receiver - final FileText text = new FileText(file.getAbsoluteFile(), - - - - JavadocPropertiesGenerator.java - com.puppycrawl.tools.checkstyle.JavadocPropertiesGenerator - getFirstJavadocSentence - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getNextSibling - child = child.getNextSibling()) { - - - - JavadocPropertiesGenerator.java - com.puppycrawl.tools.checkstyle.JavadocPropertiesGenerator - main - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to picocli/CommandLine::setUsageHelpWidth with receiver - final CommandLine cmd = new CommandLine(cliOptions).setUsageHelpWidth(USAGE_HELP_WIDTH); - - - - XmlLoader.java - com.puppycrawl.tools.checkstyle.XmlLoader - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Map::copyOf with argument - this.publicIdToResourceNameMap = Map.copyOf(publicIdToResourceNameMap); - - - - XmlLoader.java - com.puppycrawl.tools.checkstyle.XmlLoader - resolveEntity - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to org/xml/sax/helpers/DefaultHandler::resolveEntity - inputSource = super.resolveEntity(publicId, systemId); - - - - - JavaParser.java - com.puppycrawl.tools.checkstyle.JavaParser - parse - org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/grammar/java/JavaLanguageLexer::removeErrorListeners - lexer.removeErrorListeners(); - - diff --git a/config/pitest-suppressions/pitest-common-suppressions.xml b/config/pitest-suppressions/pitest-common-suppressions.xml index 1ed5890ad56..5d3e15ec845 100644 --- a/config/pitest-suppressions/pitest-common-suppressions.xml +++ b/config/pitest-suppressions/pitest-common-suppressions.xml @@ -1,183 +1,12 @@ - - AuditEventDefaultFormatter.java - com.puppycrawl.tools.checkstyle.AuditEventDefaultFormatter - format - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter::calculateBufferLength - final int bufLen = calculateBufferLength(event, severityLevelName.length()); - - - - AuditEventDefaultFormatter.java - com.puppycrawl.tools.checkstyle.AuditEventDefaultFormatter - format - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/String::length - final int bufLen = calculateBufferLength(event, severityLevelName.length()); - - - - AuditEventDefaultFormatter.java - com.puppycrawl.tools.checkstyle.AuditEventDefaultFormatter - format - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter::calculateBufferLength with argument - final int bufLen = calculateBufferLength(event, severityLevelName.length()); - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable fileExtensions - private String[] fileExtensions = CommonUtil.EMPTY_STRING_ARRAY; - - Checker.java com.puppycrawl.tools.checkstyle.Checker acceptFileStarted org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/utils/CommonUtil::relativizeAndNormalizePath with argument - final String stripped = CommonUtil.relativizeAndNormalizePath(basedir, fileName); - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - fireErrors - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/utils/CommonUtil::relativizeAndNormalizePath with argument - final String stripped = CommonUtil.relativizeAndNormalizePath(basedir, fileName); - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - fireFileFinished - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/utils/CommonUtil::relativizeAndNormalizePath with argument - final String stripped = CommonUtil.relativizeAndNormalizePath(basedir, fileName); - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - fireFileStarted - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/utils/CommonUtil::relativizeAndNormalizePath with argument - final String stripped = CommonUtil.relativizeAndNormalizePath(basedir, fileName); - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - getExternalResourceLocations - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/util/stream/Stream::map with receiver - .map(ExternalResourceHolder.class::cast) - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - processFile - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/io/IOException::getMessage - new String[] {ioe.getMessage()}, null, getClass(), null)); - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - processFiles - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/io/File::getPath - throw new Error("Error was thrown while processing " + file.getPath(), error); - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - setCharset - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable charset - this.charset = charset; - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - setFileExtensions - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable fileExtensions - fileExtensions = null; - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - setSeverity - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/api/SeverityLevel::getInstance - this.severity = SeverityLevel.getInstance(severity); - - - - Checker.java - com.puppycrawl.tools.checkstyle.Checker - setSeverity - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable severity - this.severity = SeverityLevel.getInstance(severity); - - - - ConfigurationLoader.java - com.puppycrawl.tools.checkstyle.ConfigurationLoader - replaceProperties - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/StringBuilder::length - sb.replace(0, sb.length(), defaultValue); - - - - ConfigurationLoader.java - com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader - startElement - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to org/xml/sax/Attributes::getValue - final String value = attributes.getValue(VALUE); - - - - ConfigurationLoader.java - com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader - startElement - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to org/xml/sax/Attributes::getValue with argument - final String value = attributes.getValue(VALUE); - - - - ConfigurationLoader.java - com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader - startElement - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to org/xml/sax/Attributes::getValue - overridePropsResolver, attributes.getValue(DEFAULT)); - - - - LocalizedMessage.java - com.puppycrawl.tools.checkstyle.LocalizedMessage - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Arrays::copyOf with argument - this.args = Arrays.copyOf(args, args.length); + replaced call to com/puppycrawl/tools/checkstyle/utils/CommonUtil::relativizePath with argument + final String stripped = CommonUtil.relativizePath(basedir, fileName); @@ -189,42 +18,6 @@ this.args = null; - - PackageObjectFactory.java - com.puppycrawl.tools.checkstyle.PackageObjectFactory - createModule - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/String::contains - if (!name.contains(PACKAGE_SEPARATOR)) { - - - - PackageObjectFactory.java - com.puppycrawl.tools.checkstyle.PackageObjectFactory - createModule - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - if (!name.contains(PACKAGE_SEPARATOR)) { - - - - PackageObjectFactory.java - com.puppycrawl.tools.checkstyle.PackageObjectFactory - createModule - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - if (thirdPartyNameToFullModuleNames == null) { - - - - PackageObjectFactory.java - com.puppycrawl.tools.checkstyle.PackageObjectFactory - createObjectFromFullModuleNames - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/util/stream/Stream::sorted with receiver - .sorted() - - SarifLogger.java com.puppycrawl.tools.checkstyle.SarifLogger @@ -332,22 +125,4 @@ replaced call to java/util/Collections::synchronizedList with argument private final List<Throwable> exceptions = Collections.synchronizedList(new ArrayList<>()); - - - XMLLogger.java - com.puppycrawl.tools.checkstyle.XMLLogger$FileMessages - getErrors - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Collections::unmodifiableList with argument - return Collections.unmodifiableList(errors); - - - - XMLLogger.java - com.puppycrawl.tools.checkstyle.XMLLogger$FileMessages - getExceptions - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Collections::unmodifiableList with argument - return Collections.unmodifiableList(exceptions); - diff --git a/config/pitest-suppressions/pitest-filters-suppressions.xml b/config/pitest-suppressions/pitest-filters-suppressions.xml index 550fd4f59a3..f81ddc63f23 100644 --- a/config/pitest-suppressions/pitest-filters-suppressions.xml +++ b/config/pitest-suppressions/pitest-filters-suppressions.xml @@ -1,32 +1,5 @@ - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Pattern::pattern - checkPattern = checks.pattern(); - - - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable checkPattern - checkPattern = checks.pattern(); - - - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable checkPattern - checkPattern = null; - - SuppressFilterElement.java com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement @@ -63,42 +36,6 @@ columnsCsv = null; - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Pattern::pattern - filePattern = files.pattern(); - - - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable filePattern - filePattern = files.pattern(); - - - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable filePattern - filePattern = files; - - - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable filePattern - filePattern = null; - - SuppressFilterElement.java com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement @@ -135,42 +72,6 @@ linesCsv = null; - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Pattern::pattern - messagePattern = message.pattern(); - - - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable messagePattern - messagePattern = message.pattern(); - - - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable messagePattern - messagePattern = message; - - - - SuppressFilterElement.java - com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable messagePattern - messagePattern = null; - - SuppressFilterElement.java com.puppycrawl.tools.checkstyle.filters.SuppressFilterElement @@ -225,24 +126,6 @@ if (!cachedFileAbsolutePath.equals(eventFileTextAbsolutePath)) { - - SuppressWithPlainTextCommentFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter - getSuppression - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Matcher::start - lineNo + 1, offCommentMatcher.start(), SuppressionType.OFF, this); - - - - SuppressWithPlainTextCommentFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter - getSuppression - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Matcher::start - lineNo + 1, onCommentMatcher.start(), SuppressionType.ON, this); - - SuppressWithPlainTextCommentFilter.java com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter$Suppression @@ -261,33 +144,6 @@ eventMessageRegexp = null; - - SuppressWithPlainTextCommentFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter$Suppression - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable columnNo - this.columnNo = columnNo; - - - - SuppressWithPlainTextCommentFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter$Suppression - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable text - this.text = text; - - - - SuppressionCommentFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter - accept - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter::getFileContents - if (getFileContents() != currentContents) { - - SuppressionCommentFilter.java com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter$Tag @@ -306,42 +162,6 @@ tagMessageRegexp = null; - - SuppressionFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressionFilter - finishLocalSetup - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable filters - filters = SuppressionsLoader.loadSuppressions(file); - - - - SuppressionFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressionFilter - finishLocalSetup - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable filters - filters = new FilterSet(); - - - - SuppressionFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressionFilter - getExternalResourceLocations - org.pitest.mutationtest.engine.gregor.mutators.returns.EmptyObjectReturnValsMutator - replaced return value with Collections.emptySet for com/puppycrawl/tools/checkstyle/filters/SuppressionFilter::getExternalResourceLocations - return Collections.singleton(file); - - - - SuppressionXpathFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressionXpathFilter - finishLocalSetup - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/Set::addAll - filters.addAll(SuppressionsLoader.loadXpathSuppressions(file)); - - SuppressionXpathSingleFilter.java com.puppycrawl.tools.checkstyle.filters.SuppressionXpathSingleFilter @@ -351,15 +171,6 @@ this.checks = null; - - SuppressionXpathSingleFilter.java - com.puppycrawl.tools.checkstyle.filters.SuppressionXpathSingleFilter - setFiles - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable files - this.files = null; - - SuppressionXpathSingleFilter.java com.puppycrawl.tools.checkstyle.filters.SuppressionXpathSingleFilter @@ -387,114 +198,6 @@ Optional.ofNullable(checks).map(CommonUtil::createPattern).orElse(null), - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Pattern::pattern - checkPattern = checks.pattern(); - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable checkPattern - checkPattern = checks.pattern(); - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable checkPattern - checkPattern = null; - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable checkRegexp - checkRegexp = null; - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Pattern::pattern - filePattern = files.pattern(); - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable filePattern - filePattern = files.pattern(); - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable filePattern - filePattern = null; - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable fileRegexp - fileRegexp = null; - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Pattern::pattern - messagePattern = message.pattern(); - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable messagePattern - messagePattern = message.pattern(); - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable messagePattern - messagePattern = null; - - - - XpathFilterElement.java - com.puppycrawl.tools.checkstyle.filters.XpathFilterElement - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable messageRegexp - messageRegexp = null; - - XpathFilterElement.java com.puppycrawl.tools.checkstyle.filters.XpathFilterElement @@ -510,6 +213,6 @@ isXpathQueryMatching org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator replaced call to java/util/stream/Stream::map with receiver - .stream().map(AbstractNode.class::cast).collect(Collectors.toList()); + .stream().map(AbstractNode.class::cast) diff --git a/config/pitest-suppressions/pitest-imports-suppressions.xml b/config/pitest-suppressions/pitest-imports-suppressions.xml index a0613f147de..1737714a513 100644 --- a/config/pitest-suppressions/pitest-imports-suppressions.xml +++ b/config/pitest-suppressions/pitest-imports-suppressions.xml @@ -1,77 +1,5 @@ - - FileImportControl.java - com.puppycrawl.tools.checkstyle.checks.imports.FileImportControl - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator - Removed assignment to member variable patternForExactMatch - patternForExactMatch = null; - - - - FileImportControl.java - com.puppycrawl.tools.checkstyle.checks.imports.FileImportControl - <init> - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/checks/imports/FileImportControl::encloseInGroup with argument - this.name = encloseInGroup(name); - - - - ImportControlLoader.java - com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader - load - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/Exception::getMessage - + " - " + ex.getMessage(), ex); - - - - ImportControlLoader.java - com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader - startElement - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/checks/imports/ImportControlLoader::containsRegexAttribute - final boolean regex = containsRegexAttribute(attributes); - - - - - - - - - - - - - - - - - - - - - - ImportOrderCheck.java - com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck - getGroupNumber - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Matcher::end - bestEnd = matcher.end(); - - - - ImportOrderCheck.java - com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck - getGroupNumber - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/util/regex/Matcher::start - if (matcher.start() < bestPos) { - - PkgImportControl.java com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl @@ -98,5 +26,4 @@ Removed assignment to member variable regex this.regex = false; - diff --git a/config/pitest-suppressions/pitest-javadoc-suppressions.xml b/config/pitest-suppressions/pitest-javadoc-suppressions.xml index f9989dd9a31..1a0f9d24968 100644 --- a/config/pitest-suppressions/pitest-javadoc-suppressions.xml +++ b/config/pitest-suppressions/pitest-javadoc-suppressions.xml @@ -1,32 +1,5 @@ - - AbstractJavadocCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck - init - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/Class::getName - JavadocUtil.getTokenName(javadocTokenId), getClass().getName()); - - - - AbstractJavadocCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck - validateDefaultJavadocTokens - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - if (getRequiredJavadocTokens().length != 0) { - - - - AbstractJavadocCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck - validateDefaultJavadocTokens - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/Class::getName - javadocToken, getClass().getName()); - - AbstractJavadocCheck.java com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck @@ -45,15 +18,6 @@ if (curNode != null) { - - AbstractJavadocCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck - walk - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - if (toVisit == null) { - - AbstractJavadocCheck.java com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck @@ -63,33 +27,6 @@ waitsForProcessing = shouldBeProcessed(curNode); - - - - - - - - - - - - - - - - - - - - - - - - - - - JavadocMethodCheck.java com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck @@ -117,33 +54,6 @@ final Token token = new Token(tag.getFirstArg(), tag.getLineNo(), tag - - JavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck - getMethodTags - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck::calculateTagColumn - final int col = calculateTagColumn(noargCurlyMatcher, i, startColumnNumber); - - - - JavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck - getMethodTags - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck::calculateTagColumn with argument - final int col = calculateTagColumn(noargCurlyMatcher, i, startColumnNumber); - - - - JavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck - getParameters - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - if (child.getType() == TokenTypes.PARAMETER_DEF) { - - JavadocMethodCheck.java com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck @@ -171,24 +81,6 @@ if (class1.contains(separator) || class2.contains(separator)) { - - JavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck - isInIgnoreBlock - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getParent with receiver - DetailAST ancestor = throwAst.getParent(); - - - - JavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck - isInIgnoreBlock - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - if (ancestor.getType() == TokenTypes.LITERAL_TRY - - JavadocMethodCheck.java com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck @@ -207,15 +99,6 @@ foundThrows.add(documentedClassInfo.getName().getText()); - - JavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck - setAccessModifiers - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Arrays::copyOf with argument - Arrays.copyOf(accessModifiers, accessModifiers.length); - - JavadocMethodCheck.java com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck @@ -261,42 +144,6 @@ lineNo = fullIdent.getLineNo(); - - JavadocMissingLeadingAsteriskCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMissingLeadingAsteriskCheck - isLastLine - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - if (detailNode.getType() == JavadocTokenTypes.TEXT - - - - JavadocNodeImpl.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl - getChildren - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/util/Optional::map with receiver - .map(array -> Arrays.copyOf(array, array.length)) - - - - JavadocNodeImpl.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl - lambda$getChildren$0 - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Arrays::copyOf with argument - .map(array -> Arrays.copyOf(array, array.length)) - - - - JavadocNodeImpl.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl - setChildren - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Arrays::copyOf with argument - this.children = Arrays.copyOf(children, children.length); - - JavadocNodeImpl.java com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl @@ -305,132 +152,6 @@ removed call to java/util/Objects::hashCode + ", children=" + Objects.hashCode(children) - - - JavadocParagraphCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocParagraphCheck - getNearestEmptyLine - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/utils/JavadocUtil::getPreviousSibling with argument - DetailNode newLine = JavadocUtil.getPreviousSibling(node); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - JavadocStyleCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck - findTextStart - org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveIncrementsMutator - Removed increment 2 - index += 2; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - JavadocStyleCheck.java @@ -450,15 +171,6 @@ builder.deleteCharAt(index); - - - - - - - - - JavadocStyleCheck.java com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck @@ -486,68 +198,14 @@ if (Character.isWhitespace(builder.charAt(index))) { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - JavadocTagInfo.java - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo$11 - isValidOn - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - return astType == TokenTypes.METHOD_DEF - + + JavadocTagInfo.java + com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo$11 + isValidOn + org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF + removed conditional - replaced equality check with true + return astType == TokenTypes.METHOD_DEF + JavadocTagInfo.java @@ -576,354 +234,6 @@ return astType == TokenTypes.VARIABLE_DEF - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MissingJavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck - isContentsAllowMissingJavadoc - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_ELSE - removed conditional - replaced equality check with false - return (ast.getType() == TokenTypes.METHOD_DEF - - - - MissingJavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck - isContentsAllowMissingJavadoc - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - || ast.getType() == TokenTypes.COMPACT_CTOR_DEF) - - - - MissingJavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck - isContentsAllowMissingJavadoc - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_ELSE - removed conditional - replaced equality check with false - || ast.getType() == TokenTypes.CTOR_DEF - - - - MissingJavadocMethodCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck - shouldCheck - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - return (excludeScope == null - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SummaryJavadocCheck.java - com.puppycrawl.tools.checkstyle.checks.javadoc.SummaryJavadocCheck - startsWithInheritDoc - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - for (int i = 0; !found; i++) { - - - - - - - - - - - - - - - - - - - - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - getTagId - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/Character::isJavaIdentifierStart - && (Character.isJavaIdentifierStart(text.charAt(position)) - - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - getTagId - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/String::charAt - && (Character.isJavaIdentifierStart(text.charAt(position)) - - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - getTagId - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - && (Character.isJavaIdentifierStart(text.charAt(position)) - - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - getTagId - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/lang/String::trim with receiver - text = text.substring(column).trim(); - - - - - - - - - - - - - - - - - - - - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - parseTag - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_ELSE - removed conditional - replaced equality check with false - if (incompleteTag) { - - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - parseTags - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser::findChar with argument - Point position = findChar(text, '<', new Point(0, 0)); - - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - skipHtmlComment - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_ELSE - removed conditional - replaced equality check with false - .substring(0, toPoint.getColumnNo() + 1).endsWith("-->")) { - - TagParser.java com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser @@ -932,22 +242,4 @@ replaced call to com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser::findChar with argument toPoint = findChar(text, '>', getNextPoint(text, toPoint)); - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - skipHtmlComment - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser::findChar with argument - toPoint = findChar(text, '>', toPoint); - - - - TagParser.java - com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser - skipHtmlComment - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_ORDER_ELSE - removed conditional - replaced comparison check with false - while (toPoint.getLineNo() < text.length && !text[toPoint.getLineNo()] - diff --git a/config/pitest-suppressions/pitest-tree-walker-suppressions.xml b/config/pitest-suppressions/pitest-tree-walker-suppressions.xml index 187867d8dc0..5a2f72dc771 100644 --- a/config/pitest-suppressions/pitest-tree-walker-suppressions.xml +++ b/config/pitest-suppressions/pitest-tree-walker-suppressions.xml @@ -72,15 +72,6 @@ .thenComparing(AbstractCheck::getId, - - TreeWalker.java - com.puppycrawl.tools.checkstyle.TreeWalker - createNewCheckSortedSet - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/util/Comparator::thenComparing with receiver - .thenComparing(AbstractCheck::hashCode)); - - TreeWalker.java com.puppycrawl.tools.checkstyle.TreeWalker @@ -89,49 +80,4 @@ removed call to java/util/Comparator::naturalOrder Comparator.nullsLast(Comparator.naturalOrder())) - - - TreeWalker.java - com.puppycrawl.tools.checkstyle.TreeWalker - getExternalResourceLocations - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/util/stream/Stream::map with receiver - .map(ExternalResourceHolder.class::cast) - - - - TreeWalker.java - com.puppycrawl.tools.checkstyle.TreeWalker - lambda$createNewCheckSortedSet$3 - org.pitest.mutationtest.engine.gregor.mutators.returns.EmptyObjectReturnValsMutator - replaced return value with "" for com/puppycrawl/tools/checkstyle/TreeWalker::lambda$createNewCheckSortedSet$3 - Comparator.<AbstractCheck, String>comparing(check -> check.getClass().getName()) - - - - TreeWalker.java - com.puppycrawl.tools.checkstyle.TreeWalker - registerCheck - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/Class::getName - + "method to return 'true'", check.getClass().getName(), - - - - TreeWalker.java - com.puppycrawl.tools.checkstyle.TreeWalker - registerCheck - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/utils/TokenUtil::getTokenName - TokenUtil.getTokenName(tokenId)); - - - - TreeWalker.java - com.puppycrawl.tools.checkstyle.TreeWalker - registerCheck - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/lang/String::format with argument - final String message = String.format(Locale.ROOT, "Check '%s' waits for comment type " - diff --git a/config/pitest-suppressions/pitest-utils-suppressions.xml b/config/pitest-suppressions/pitest-utils-suppressions.xml index c060d902075..ee6b1ac7d44 100644 --- a/config/pitest-suppressions/pitest-utils-suppressions.xml +++ b/config/pitest-suppressions/pitest-utils-suppressions.xml @@ -1,311 +1,6 @@ - - - - - - - - - - - - - - - - - - - BlockCommentPosition.java - com.puppycrawl.tools.checkstyle.utils.BlockCommentPosition - isOnPlainClassMember - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - && parent.getParent().getType() == memberType - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CodePointUtil.java - com.puppycrawl.tools.checkstyle.utils.CodePointUtil - stripLeading - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/utils/CommonUtil::isCodePointWhitespace - && CommonUtil.isCodePointWhitespace(codePoints, startIndex)) { - - - - CodePointUtil.java - com.puppycrawl.tools.checkstyle.utils.CodePointUtil - stripLeading - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_ELSE - removed conditional - replaced equality check with false - && CommonUtil.isCodePointWhitespace(codePoints, startIndex)) { - - - - CodePointUtil.java - com.puppycrawl.tools.checkstyle.utils.CodePointUtil - stripLeading - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Arrays::copyOfRange with argument - return Arrays.copyOfRange(codePoints, startIndex, codePoints.length); - - - - CodePointUtil.java - com.puppycrawl.tools.checkstyle.utils.CodePointUtil - stripLeading - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_ORDER_ELSE - removed conditional - replaced comparison check with false - while (startIndex < codePoints.length - - - - CodePointUtil.java - com.puppycrawl.tools.checkstyle.utils.CodePointUtil - trim - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/utils/CodePointUtil::stripTrailing with argument - final int[] strippedCodePoints = stripTrailing(codePoints); - - - - CodePointUtil.java - com.puppycrawl.tools.checkstyle.utils.CodePointUtil - trim - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to com/puppycrawl/tools/checkstyle/utils/CodePointUtil::stripLeading with argument - return stripLeading(strippedCodePoints); - - - - CommonUtil.java - com.puppycrawl.tools.checkstyle.utils.CommonUtil - baseClassName - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_ELSE - removed conditional - replaced equality check with false - if (index == -1) { - - - - - - - - - - - - - - - - - - - - - - CommonUtil.java - com.puppycrawl.tools.checkstyle.utils.CommonUtil - matchesFileExtension - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - if (extension.startsWith(EXTENSION_SEPARATOR)) { - - - - CommonUtil.java - com.puppycrawl.tools.checkstyle.utils.CommonUtil - relativizeAndNormalizePath - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/nio/file/Path::normalize with receiver - final Path pathAbsolute = Paths.get(path).normalize(); - - - - CommonUtil.java - com.puppycrawl.tools.checkstyle.utils.CommonUtil - relativizeAndNormalizePath - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/nio/file/Path::normalize with receiver - final Path pathBase = Paths.get(baseDirectory).normalize(); - - - - ModuleReflectionUtil.java - com.puppycrawl.tools.checkstyle.utils.ModuleReflectionUtil - getCheckstyleModules - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/util/stream/Stream::filter with receiver - .filter(ModuleReflectionUtil::isCheckstyleModule) - - - - ScopeUtil.java - com.puppycrawl.tools.checkstyle.utils.ScopeUtil - getDeclaredScopeFromMods - org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF - removed conditional - replaced equality check with true - for (DetailAST token = aMods.getFirstChild(); token != null && result == null; - - - - ScopeUtil.java - com.puppycrawl.tools.checkstyle.utils.ScopeUtil - getSurroundingScope - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getParent with receiver - for (DetailAST token = node.getParent(); - - ScopeUtil.java com.puppycrawl.tools.checkstyle.utils.ScopeUtil @@ -314,49 +9,4 @@ removed conditional - replaced equality check with true token != null && !returnValue; - - - - - - - - - - - - - - - - - - - - - ScopeUtil.java - com.puppycrawl.tools.checkstyle.utils.ScopeUtil - lambda$getScopeFromMods$1 - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getParent with receiver - .orElseGet(() -> getDefaultScope(aMods.getParent())); - - - - TokenUtil.java - com.puppycrawl.tools.checkstyle.utils.TokenUtil - lambda$nameToValueMapFromPublicIntFields$1 - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to java/lang/reflect/Field::getName - Field::getName, fld -> getIntFromField(fld, fld.getName())) - - - - XpathUtil.java - com.puppycrawl.tools.checkstyle.utils.XpathUtil - getXpathItems - org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator - replaced call to java/util/stream/Stream::map with receiver - .map(NodeInfo.class::cast) - diff --git a/config/pitest-suppressions/pitest-xpath-suppressions.xml b/config/pitest-suppressions/pitest-xpath-suppressions.xml index c488fb43ded..ace4e55b78a 100644 --- a/config/pitest-suppressions/pitest-xpath-suppressions.xml +++ b/config/pitest-suppressions/pitest-xpath-suppressions.xml @@ -1,59 +1,5 @@ - - AbstractElementNode.java - com.puppycrawl.tools.checkstyle.xpath.AbstractElementNode - getPrecedingSiblings - org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator - replaced call to java/util/Collections::unmodifiableList with argument - return Collections.unmodifiableList(siblings.subList(0, indexAmongSiblings)); - - - - AbstractElementNode.java - com.puppycrawl.tools.checkstyle.xpath.AbstractElementNode - iterateAxis - org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_8 - RemoveSwitch 8 (case value 8) - switch (axisNumber) { - - - - AbstractRootNode.java - com.puppycrawl.tools.checkstyle.xpath.AbstractRootNode - iterateAxis - org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_1 - RemoveSwitch 1 (case value 1) - switch (axisNumber) { - - - - AbstractRootNode.java - com.puppycrawl.tools.checkstyle.xpath.AbstractRootNode - iterateAxis - org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_2 - RemoveSwitch 2 (case value 2) - switch (axisNumber) { - - - - AbstractRootNode.java - com.puppycrawl.tools.checkstyle.xpath.AbstractRootNode - iterateAxis - org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_5 - RemoveSwitch 5 (case value 5) - switch (axisNumber) { - - - - AbstractRootNode.java - com.puppycrawl.tools.checkstyle.xpath.AbstractRootNode - iterateAxis - org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_8 - RemoveSwitch 8 (case value 8) - switch (axisNumber) { - - FollowingIterator.java com.puppycrawl.tools.checkstyle.xpath.iterators.FollowingIterator @@ -80,23 +26,4 @@ Removed assignment to member variable items this.items = null; - - - RootNode.java - com.puppycrawl.tools.checkstyle.xpath.RootNode - getColumnNumber - org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator - removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getColumnNo - return detailAst.getColumnNo(); - - - - RootNode.java - com.puppycrawl.tools.checkstyle.xpath.RootNode - getColumnNumber - org.pitest.mutationtest.engine.gregor.mutators.returns.PrimitiveReturnsMutator - replaced int return with 0 for com/puppycrawl/tools/checkstyle/xpath/RootNode::getColumnNumber - return detailAst.getColumnNo(); - - diff --git a/config/pmd-main.xml b/config/pmd-main.xml index f6d1079cdc4..55d67203a33 100644 --- a/config/pmd-main.xml +++ b/config/pmd-main.xml @@ -18,29 +18,28 @@ we value full coverage more than final modifier. Picocli fields will have their value injected and should not be marked final. --> + | //ClassDeclaration[@SimpleName='CliOptions']"/> - + value="java.io.ByteArrayOutputStream,java.io.ByteArrayInputStream, + java.io.StringWriter,java.io.CharArrayWriter,java.io.StringReader"/> @@ -48,7 +47,21 @@ + value="//ClassDeclaration[@SimpleName='AutomaticBean']"/> + + + + + + diff --git a/config/pmd-test.xml b/config/pmd-test.xml index 7e834475eb7..e0d61b18740 100644 --- a/config/pmd-test.xml +++ b/config/pmd-test.xml @@ -40,9 +40,6 @@ - - + | //ClassDeclaration[@SimpleName='IndentationCheckTest']"/> @@ -98,29 +95,39 @@ assertion calls are not required as they are called by the library. In MainTest PMD does not find asserts in lambdas called in the method invokeAndWait. --> + @@ -129,7 +136,7 @@ + value="//ClassDeclaration[@SimpleName='CommitValidationTest']"/> @@ -140,15 +147,25 @@ as they check each token and each rule explicitly. JavadocTokenTypes.testTokenValues contains several asserts as it checks each token explicitly. --> + + | //ClassDeclaration[@SimpleName='ParseTreeTablePresentationTest'] + //MethodDeclaration[@Name='testGetValueAtDetailNode'] + | //ClassDeclaration[@SimpleName='ClassImportRuleTest'] + | //ClassDeclaration[@SimpleName='PkgImportRuleTest'] + | //ClassDeclaration[@SimpleName='PkgImportControlTest'] + //MethodDeclaration[ends-with(@Name, 'CheckAccess')] + | //ClassDeclaration[@SimpleName='JavadocTagInfoTest'] + //MethodDeclaration[@Name='testCoverage'] + | //ClassDeclaration[@SimpleName='AstRegressionTest'] + //MethodDeclaration[@Name='testCustomAstTree']"/> @@ -157,7 +174,7 @@ @@ -169,9 +186,9 @@ easy to maintain. The rule should also only check public methods but has a bug. Suppress the false-positives. --> @@ -179,17 +196,17 @@ @@ -201,9 +218,16 @@ + + value="//ClassDeclaration[@SimpleName='TestUtil'] + //MethodDeclaration[@Name='getResultWithLimitedResources'] + | //ClassDeclaration[@SimpleName='SuppressionFilterTest'] + //MethodDeclaration[@Name='isConnectionAvailableAndStable'] + | //ClassDeclaration[@SimpleName='SuppressionsLoaderTest'] + //MethodDeclaration[@Name='loadFilterSet']"/> diff --git a/config/pmd.xml b/config/pmd.xml index db04ea7ae13..46e62a6d1b8 100644 --- a/config/pmd.xml +++ b/config/pmd.xml @@ -14,10 +14,32 @@ + + + + + + - @@ -26,7 +48,7 @@ @@ -34,11 +56,47 @@ + + + + + + + + + + + + + + + + + + + + value="//ClassDeclaration[@SimpleName='RequireThisCheck']"/> - - - - @@ -90,7 +143,7 @@ JavadocTokenTypes and TokenTypes aren't utility classes. They are token definition classes. Also, they are part of the API. --> @@ -122,11 +175,11 @@ AbstractRootNode is what a root node is. --> @@ -148,7 +201,7 @@ + value="//ClassDeclaration[@SimpleName='Main' or @SimpleName='Tag']"/> @@ -158,6 +211,22 @@ + + + + + + + + + + + + - - + value="//ClassDeclaration[@SimpleName='SarifLogger']"/> @@ -199,8 +266,20 @@ + + value="//ClassDeclaration[@SimpleName='ExitHelper'] + | //ClassDeclaration[@SimpleName='MainTest'] + //MethodDeclaration[@Name='assertMainReturnCode'] "/> + + + + + + @@ -228,11 +307,11 @@ a runtime exception. JavadocMethodCheck: Exception type is not predictable. --> @@ -242,7 +321,7 @@ requires some extra IFs. --> @@ -251,15 +330,21 @@ - + + + value="//ClassDeclaration[@SimpleName='HandlerFactory' + or @SimpleName='SiteUtil' or @SimpleName='Checker' or @SimpleName='JavaAstVisitor' + or @SimpleName='Main' or @SimpleName='TreeWalker' or @SimpleName='CheckstyleAntTask' + or @SimpleName='TranslationCheck' or @SimpleName='JavadocMethodCheck']"/> @@ -274,30 +359,51 @@ AbstractElementNode.iterateAxis, NoWhitespaceAfterCheck.getArrayDeclaratorPreviousElement are also huge switches, they had to be monolithic. - SuppressFilterElement is a single constructor and can't be split easily --> + SuppressFilterElement is a single constructor and can't be split easily + Splitting PropertiesMacro.getDefaultValue will damage readability + Splitting SiteUtil.getDefaultValue would not make it more readable --> + | //ClassDeclaration[@SimpleName='PropertiesMacro'] + //MethodDeclaration[@Name='getDefaultValue'] + | //ClassDeclaration[@SimpleName='SiteUtil'] + //MethodDeclaration[@Name='getDefaultValue'] + | //ClassDeclaration[@SimpleName='DescriptionExtractor'] + //MethodDeclaration[@Name='getDescriptionFromJavadoc']"/> + + + + + + + @@ -305,8 +411,9 @@ + value="//ClassDeclaration[@SimpleName='Checker'] + | //ClassDeclaration[@SimpleName='Main'] + | //ClassDeclaration[@SimpleName='ImportOrderCheck']"/> @@ -315,25 +422,14 @@ - - - - - - + value="//ClassDeclaration[@SimpleName='JavaAstVisitor']"/> + value="//ClassDeclaration[@SimpleName='Violation']"/> @@ -342,21 +438,35 @@ Checker collects external resource locations and sets up the configuration. CheckstyleAntTask integrates Checkstyle with Ant. TranslationCheck uses a lot of imports for it's logic and custom violations. + SiteUtil uses a lot of imports to provide logic for generating documentation --> + or @SimpleName='AbstractAutomaticBean' + or @SimpleName='SiteUtil']"/> - + + value="//ClassDeclaration[@SimpleName='XdocsPagesTest'] + //MethodDeclaration[@Name='getModulePropertyExpectedValue'] + | //ClassDeclaration[@SimpleName='SiteUtil'] + //MethodDeclaration[@Name='getDefaultValue'] + | //ClassDeclaration[@SimpleName='DescriptionExtractor'] + //MethodDeclaration[@Name='getDescriptionFromJavadoc']"/> + + + + + + @@ -370,7 +480,7 @@ overloads a synchronized method, so it should have synchronized modifier. --> @@ -382,10 +492,42 @@ + + + + + + + + + + + + + + value="//ClassDeclaration[@SimpleName='JavaAstVisitor']"/> + + + + + + diff --git a/config/projects-to-test/openjdk-21-projects-to-test-on.config b/config/projects-to-test/openjdk-21-projects-to-test-on.config new file mode 100644 index 00000000000..74c3d8d5bb3 --- /dev/null +++ b/config/projects-to-test/openjdk-21-projects-to-test-on.config @@ -0,0 +1,8 @@ +# List of GIT repositories to clone / pull for checking with Checkstyle +# File format: REPO_NAME|[local|git|hg]|URL|[COMMIT_ID]|[EXCLUDE FOLDERS] +# Please note that bash comments works in this file +# +# This file has been created to alleviate confusion in the contribution +# repository's projects-to-test-on.properties file; these projects +# must be used with special configurations. +openjdk21|git|https://github.com/openjdk/jdk21u.git|master|| diff --git a/config/projects-to-test/openjdk17-excluded.files b/config/projects-to-test/openjdk17-excluded.files index 0521da61f37..52cd88078bd 100644 --- a/config/projects-to-test/openjdk17-excluded.files +++ b/config/projects-to-test/openjdk17-excluded.files @@ -30,6 +30,9 @@ + + + diff --git a/config/projects-to-test/openjdk19-excluded.files b/config/projects-to-test/openjdk19-excluded.files index 0a1c56e3d17..c77f9a2101c 100644 --- a/config/projects-to-test/openjdk19-excluded.files +++ b/config/projects-to-test/openjdk19-excluded.files @@ -30,6 +30,9 @@ + + + diff --git a/config/projects-to-test/openjdk20-excluded.files b/config/projects-to-test/openjdk20-excluded.files index af32c19c861..499d5a265b5 100644 --- a/config/projects-to-test/openjdk20-excluded.files +++ b/config/projects-to-test/openjdk20-excluded.files @@ -30,6 +30,9 @@ + + + diff --git a/config/projects-to-test/openjdk21-excluded.files b/config/projects-to-test/openjdk21-excluded.files new file mode 100644 index 00000000000..50fd6c6d274 --- /dev/null +++ b/config/projects-to-test/openjdk21-excluded.files @@ -0,0 +1,602 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/sevntu-suppressions.xml b/config/sevntu-suppressions.xml index ab08ab33fda..90777a64cca 100644 --- a/config/sevntu-suppressions.xml +++ b/config/sevntu-suppressions.xml @@ -46,4 +46,8 @@ + + + + diff --git a/config/signatures-test.txt b/config/signatures-test.txt index ace91fffab5..0ed9e670775 100644 --- a/config/signatures-test.txt +++ b/config/signatures-test.txt @@ -1 +1,5 @@ com.puppycrawl.tools.checkstyle.AbstractModuleTestSupport#verify(com.puppycrawl.tools.checkstyle.api.Configuration, java.lang.String, java.lang.String[]) @ Use inline config parser instead. +java.nio.file.Files#createTempFile(java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute[]) @ Use of this method is forbidden, please use @TempDir for better temporary directory control +java.io.File#createTempFile(java.lang.String,java.lang.String,java.io.File) @ Use of this method is forbidden, please use @TempDir for better temporary directory control +java.nio.file.Files#createTempDirectory(java.lang.String,java.nio.file.attribute.FileAttribute[]) @ Use of this method is forbidden, please use @TempDir for better temporary directory control +java.nio.file.Files#createTempFile(java.nio.file.Path,java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute[]) @ Use of this method is forbidden, please use @TempDir for better temporary directory control diff --git a/config/signatures.txt b/config/signatures.txt index 2163c21c859..95071d4d798 100644 --- a/config/signatures.txt +++ b/config/signatures.txt @@ -3,3 +3,4 @@ com.puppycrawl.tools.checkstyle.DefaultConfiguration#getAttribute(java.lang.Stri com.puppycrawl.tools.checkstyle.DefaultConfiguration#addAttribute(java.lang.String,java.lang.String) @ Usage of deprecated API is forbidden. Please use DefaultConfiguration.addProperty(String name, String value) instead. com.puppycrawl.tools.checkstyle.api.AbstractCheck#log(int,int,java.lang.String,java.lang.Object[]) @ Use of this log method is forbidden, please use AbstractCheck#log(DetailAST ast, String key, Object... args) com.puppycrawl.tools.checkstyle.api.AbstractCheck#log(int,java.lang.String,java.lang.Object[]) @ Use of this log method is forbidden, please use AbstractCheck#log(DetailAST ast, String key, Object... args) +java.net.URI#toString() @ This method can return garbage for non-ascii data, please use URI#toASCIIString() diff --git a/config/spotbugs-exclude.xml b/config/spotbugs-exclude.xml index d2e871c93b3..10bb57f3e31 100644 --- a/config/spotbugs-exclude.xml +++ b/config/spotbugs-exclude.xml @@ -164,7 +164,7 @@ + Suppressed until https://github.com/mebigfatguy/fb-contrib/issues/453 --> @@ -288,4 +288,38 @@ name="com.puppycrawl.tools.checkstyle.checks.header.AbstractHeaderCheck"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/suppressions.xml b/config/suppressions.xml index 95cc26601f2..564a522ba6e 100644 --- a/config/suppressions.xml +++ b/config/suppressions.xml @@ -12,7 +12,7 @@ @@ -60,6 +60,8 @@ + + @@ -75,7 +77,7 @@ files="(CheckerTest|AbstractModuleTestSupport|AbstractItModuleTestSupport| |CheckstyleAntTaskTest| |TranslationCheckTest|LocalizedMessageTest|AbstractFileSetCheckTest| - |AbstractCheckTest)\.java"/> + |AbstractCheckTest|InlineConfigParser)\.java"/> @@ -192,4 +194,8 @@ + + + diff --git a/pom.xml b/pom.xml index 023214e1f6a..2955a6f7560 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.puppycrawl.tools checkstyle - 10.12.3 + 10.17.0 jar checkstyle @@ -24,8 +24,8 @@ 2001 - LGPL-2.1+ - http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt + LGPL-2.1-or-later + https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt @@ -59,7 +59,7 @@ - nick-mancuso + nrmancuso Nick Mancuso developer @@ -206,43 +206,75 @@ UTF-8 ${project.version} - 4.11.1 + 4.13.1 3.12.1 - 4.7.3.0 - 3.21.0 - 6.54.0 - 0.8.8 + 4.8.5.0 + 3.22.0 + 7.1.0 + 0.8.12 5.2.0 - 12.3 + 12.4 3.2.0 1.44.1 10.4 - 2.14.2 - 3.11.0 + 2.16.2 + 3.13.0 11 - 1.14.1 + ${java.version} + 1.16.1 10 HTML,XML 50000 4 - 1.1.2 + 1.2.1 1.0.6 **/test/resources/**/*,**/it/resources/**/* - 5.9.2 - 3.4 + 5.10.2 + 3.7 1.2.0 - 2.18.0 - 3.27.0 + 3.43.0 + 2.27.1 + 0.15.0 1.12.0 + + -Xep:AmbiguousJsonCreator:ERROR + -Xep:AssertJIsNull:ERROR + -Xep:AutowiredConstructor:ERROR + -Xep:CanonicalAnnotationSyntax:ERROR + -Xep:DirectReturn:ERROR + -Xep:CollectorMutability:ERROR + -Xep:EmptyMethod:ERROR + -Xep:ExplicitEnumOrdering:ERROR + -Xep:FormatStringConcatenation:ERROR + -Xep:IsInstanceLambdaUsage:ERROR + -Xep:MockitoMockClassReference:ERROR + -Xep:MockitoStubbing:ERROR + -Xep:NestedOptionals:ERROR + -Xep:PrimitiveComparison:ERROR + -Xep:RedundantStringConversion:ERROR + -Xep:Slf4jLogStatement:ERROR + -Xep:StringJoin:ERROR + -Xep:TimeZoneUsage:ERROR + + -Xep:JUnitClassModifiers:OFF + + -Xep:JUnitMethodDeclaration:OFF + + -Xep:JUnitValueSource:OFF + + -Xep:LexicographicalAnnotationListing:OFF + + -Xep:StaticImport:OFF + info.picocli picocli - 4.7.4 + 4.7.6 org.antlr @@ -257,7 +289,7 @@ com.google.guava guava - 32.0.1-jre + 33.2.0-jre org.checkerframework @@ -299,13 +331,13 @@ org.junit-pioneer junit-pioneer - 2.0.0 + 2.2.0 test com.tngtech.archunit archunit-junit5 - 1.0.1 + 1.3.0 test @@ -331,13 +363,13 @@ com.google.truth truth - 1.1.3 + 1.4.2 test nl.jqno.equalsverifier equalsverifier - 3.15.1 + 3.16.1 test @@ -349,19 +381,19 @@ commons-io commons-io - 2.13.0 + 2.16.1 test org.eclipse.jgit org.eclipse.jgit - 6.6.0.202305301015-r + 6.9.0.202403050737-r test org.slf4j slf4j-simple - 2.0.7 + 2.0.13 test @@ -412,12 +444,22 @@ commons-codec commons-codec + + com.google.collections + google-collections + org.apache.maven.doxia doxia-module-xdoc ${doxia.version} + + + com.google.collections + google-collections + + @@ -443,11 +485,11 @@ maven-assembly-plugin - 3.6.0 + 3.7.1 maven-dependency-plugin - 3.6.0 + 3.6.1 maven-release-plugin @@ -459,7 +501,7 @@ org.codehaus.mojo exec-maven-plugin - 3.1.0 + 3.3.0 org.codehaus.mojo @@ -469,7 +511,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.5.0 + 3.5.3 org.pitest @@ -491,7 +533,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.5.0 + 3.6.3 @@ -577,7 +619,7 @@ com.mebigfatguy.sb-contrib sb-contrib - 7.6.0 + 7.6.4 @@ -656,7 +698,7 @@ org.apache.maven.plugins maven-source-plugin - 3.3.0 + 3.3.1 attach-sources @@ -674,7 +716,7 @@ org.codehaus.plexus plexus-component-metadata - 2.1.1 + 2.2.0 @@ -686,7 +728,7 @@ org.gaul modernizer-maven-plugin - 2.5.0 + 2.9.0 ${java.version} false @@ -705,13 +747,13 @@ org.apache.maven.plugins maven-clean-plugin - 3.3.1 + 3.3.2 org.codehaus.mojo tidy-maven-plugin - 1.2.0 + 1.3.0 validate @@ -762,8 +804,6 @@ maven-compiler-plugin ${maven.compiler.plugin.version} - ${java.version} - ${java.version} -Xpkginfo:always @@ -773,7 +813,7 @@ org.apache.maven.plugins maven-install-plugin - 3.1.1 + 3.1.2 @@ -805,7 +845,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.1 + 3.1.2 org.codehaus.mojo @@ -902,6 +942,8 @@ com.puppycrawl.tools.checkstyle.meta.ModuleDetails* com.puppycrawl.tools.checkstyle.meta.JavadocMetadataScraper* com.puppycrawl.tools.checkstyle.meta.XmlMeta* + + com.puppycrawl.tools.checkstyle.utils.OsSpecificUtil @@ -1113,12 +1155,12 @@ LINE COVEREDRATIO - 0.81 + 0.82 BRANCH COVEREDRATIO - 0.79 + 0.75 @@ -1316,7 +1358,7 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.4.0 + 3.4.1 enforce-versions @@ -1329,7 +1371,7 @@ ${java.version} - 3.3.9 + 3.6.3 @@ -1390,7 +1432,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.3.0 + 3.6.0 add-source @@ -1470,7 +1512,7 @@ org.apache.maven.plugins maven-failsafe-plugin - 3.1.2 + 3.2.5 com/google/**/*.java @@ -1497,9 +1539,9 @@ org.apache.maven.plugins maven-surefire-plugin - 3.1.2 + 3.2.5 - -Dfile.encoding=UTF-8 @{surefire.options} + -Dfile.encoding=UTF-8 ${surefire.options} ${project.build.directory}/jacoco.exec @@ -1545,13 +1587,16 @@ org.apache.maven.plugins maven-jar-plugin - 3.3.0 + 3.4.1 true true + + ${project.groupId}.${project.artifactId} + **/Input*.* @@ -1812,22 +1857,8 @@ **/OneStatementPerLineCheckTest.class - - - - **/FileSetCheckTest.class - **/AbstractFileSetCheckTest.class - - **/DetailAstImplTest.class - - **/TreeWalkerTest.class - - **/CheckerTest.class - - **/AllBlockCommentsTest.class - - - **/SuppressionCommentFilterTest.class + + **/AbstractModuleTestSupport.class **/EmptyLineSeparatorCheckTest.class @@ -1837,17 +1868,8 @@ **/RegexpHeaderCheckTest.class - - **/AbstractCheckTest.class - - - **/SuppressWithNearbyCommentFilterTest.class - - - **/AbstractModuleTestSupport.class - - - **/AbstractJavadocCheckTest.class + + **/CheckerTest.class @@ -1856,7 +1878,7 @@ edu.illinois nondex-maven-plugin - 2.1.1 + 2.1.7 @@ -1875,7 +1897,7 @@ ${basedir}/src/test/resources/com/puppycrawl/tools/checkstyle/sariflogger - https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Documents/CommitteeSpecifications/2.1.0/sarif-schema-2.1.0.json + https://raw.githubusercontent.com/oasis-tcs/sarif-spec/main/sarif-2.1/schema/sarif-schema-2.1.0.json **/*.sarif @@ -1890,7 +1912,7 @@ maven-project-info-reports-plugin - 3.4.5 + 3.5.0 @@ -1917,7 +1939,7 @@ org.apache.maven.plugins maven-surefire-report-plugin - 3.1.2 + 3.2.5 @@ -1930,7 +1952,7 @@ org.apache.maven.plugins maven-jxr-plugin - 3.3.0 + 3.3.2 @@ -2119,9 +2141,6 @@ https://www.w3.org/TR/* https://maven.apache.org/* - - https://www.bountysource.com/* - https://api.bountysource.com/* https://bitbucket.org/atlassian/bamboo-checkstyle-plugin @@ -2148,6 +2167,7 @@ https://www.ej-technologies.com/* https://travis-ci.com/ + https://stackoverflow.com/questions/* https://docs.github.com/en/rest/checks https://www.ietf.org/rfc/rfc4627.txt @@ -2391,13 +2411,11 @@ false - ${java.version} - ${java.version} -Xpkginfo:always -XDcompilePolicy=simple - -Xplugin:ErrorProne + -Xplugin:ErrorProne ${error-prone.configuration-args} @@ -2406,6 +2424,11 @@ error_prone_core ${error-prone.version} + + tech.picnic.error-prone-support + error-prone-contrib + ${error-prone-support.version} + @@ -2443,14 +2466,13 @@ false - ${java.version} - ${java.version} -Xpkginfo:always -XDcompilePolicy=simple -Xplugin:ErrorProne \ - -XepExcludedPaths:.*[\\/]resources[\\/].* + -XepExcludedPaths:.*[\\/]resources[\\/].* \ + ${error-prone.configuration-args} @@ -2459,6 +2481,11 @@ error_prone_core ${error-prone.version} + + tech.picnic.error-prone-support + error-prone-contrib + ${error-prone-support.version} + @@ -2476,7 +2503,7 @@ org.apache.maven.plugins maven-gpg-plugin - 3.1.0 + 3.2.4 --pinentry-mode @@ -2499,9 +2526,9 @@ true - false + true 1024m - 4048m + 8192m 10000 10000 @@ -2558,9 +2585,9 @@ true - false + true 1024m - 4048m + 8192m 10000 10000 @@ -2617,9 +2644,9 @@ true - false + true 1024m - 4048m + 8192m 10000 10000 @@ -2675,9 +2702,9 @@ true - false + true 1024m - 4048m + 8192m 10000 10000 @@ -2732,9 +2759,9 @@ true - false + true 1024m - 4048m + 8192m 10000 10000 @@ -2790,9 +2817,9 @@ true - false + true 1024m - 4048m + 8192m 10000 10000 @@ -2850,9 +2877,9 @@ true - false + true 1024m - 4048m + 8192m 10000 10000 @@ -2909,9 +2936,9 @@ true - false + true 1024m - 4048m + 8192m 10000 10000 @@ -3045,6 +3072,9 @@ com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil org.apache.commons.logging + + +funmodifiablecollection + com.puppycrawl.tools.checkstyle.meta.JavadocMetadataScraperTest + + com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil + *.Input* @@ -4321,6 +4360,7 @@ com.puppycrawl.tools.checkstyle.Checker* com.puppycrawl.tools.checkstyle.ThreadModeSettings* com.puppycrawl.tools.checkstyle.grammar.CrAwareLexerSimulator* + com.puppycrawl.tools.checkstyle.grammar.CompositeLexerContextCache* com.puppycrawl.tools.checkstyle.AuditEventFormatter* com.puppycrawl.tools.checkstyle.XdocsPropertyType* @@ -4352,15 +4392,33 @@ com.puppycrawl.tools.checkstyle.ThreadModeSettingsTest com.puppycrawl.tools.checkstyle.grammar.CrAwareLexerSimulatorTest com.puppycrawl.tools.checkstyle.grammar.javadoc.JavadocParseTreeTest + + com.puppycrawl.tools.checkstyle.grammar.java21.Java21AstRegressionTest com.puppycrawl.tools.checkstyle.filefilters.BeforeExecutionExclusionFileFilterTest + com.puppycrawl.tools.checkstyle.checks.TranslationCheckTest com.puppycrawl.tools.checkstyle.meta.MetadataGeneratorUtilTest com.puppycrawl.tools.checkstyle.checks.naming.ParameterNameCheckTest com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheckTest + + com.sun.checkstyle.test.chapter5comments.rule52documentationcomments.InvalidJavadocPositionTest + + org.apache.commons.logging + com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil + + + + lazyLoad + + initStringBuilderWithOptimalBuffer + + + +funmodifiablecollection + 100 96 ${pitest.plugin.timeout.factor} @@ -4434,6 +4492,9 @@ setFeaturesBySystemProperty + + +funmodifiablecollection + @@ -4501,7 +4562,7 @@ com.puppycrawl.tools.checkstyle.MainTest - 100 + 99 99 ${pitest.plugin.timeout.factor} ${pitest.plugin.timeout.constant} @@ -4672,6 +4733,8 @@ com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheckTest com.puppycrawl.tools.checkstyle.checks.OuterTypeFilenameCheckTest + com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheckTest + com.puppycrawl.tools.checkstyle.checks.javadoc.NonEmptyAtclauseDescriptionCheckTest org.checkstyle.suppressionxpathfilter.XpathRegressionUnusedLocalVariableTest com.puppycrawl.tools.checkstyle.checks.javadoc.SummaryJavadocCheckTest org.checkstyle.suppressionxpathfilter.XpathRegressionJavadocMethodTest @@ -4679,7 +4742,11 @@ com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilterTest com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheckTest com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheckTest + com.puppycrawl.tools.checkstyle.checks.modifier.InterfaceMemberImpliedModifierCheckTest + + com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil + *.Input* @@ -4755,6 +4822,9 @@ com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil + + +funmodifiablecollection + *.Input* @@ -4818,6 +4888,7 @@ isFileExists + com.puppycrawl.tools.checkstyle.utils.OsSpecificUtil com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil @@ -4842,10 +4913,6 @@ com.puppycrawl.tools.checkstyle.checks.whitespace.SingleSpaceSeparatorCheckTest - - - com.puppycrawl.tools.checkstyle.checks.whitespace.SeparatorWrapCheckTest - com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheckTest @@ -4910,6 +4977,9 @@ com.puppycrawl.tools.checkstyle.checks.FinalParametersCheckTest + + com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil + *.Input* @@ -4974,7 +5044,7 @@ org.eclipse.jdt org.eclipse.jdt.annotation - 2.2.700 + 2.3.0 @@ -5044,7 +5114,14 @@ com.puppycrawl.tools.checkstyle.xpath.* com.puppycrawl.tools.checkstyle.XpathFileGeneratorAuditListenerTest com.puppycrawl.tools.checkstyle.XpathFileGeneratorAstFilterTest + com.puppycrawl.tools.checkstyle.filters.* + + com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil + + + +funmodifiablecollection + *.Input* diff --git a/src/it/java/com/google/checkstyle/test/base/AbstractGoogleModuleTestSupport.java b/src/it/java/com/google/checkstyle/test/base/AbstractGoogleModuleTestSupport.java index 83bf78b4f1f..d2ba4e1b0c3 100644 --- a/src/it/java/com/google/checkstyle/test/base/AbstractGoogleModuleTestSupport.java +++ b/src/it/java/com/google/checkstyle/test/base/AbstractGoogleModuleTestSupport.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/base/AbstractIndentationTestSupport.java b/src/it/java/com/google/checkstyle/test/base/AbstractIndentationTestSupport.java index 614c4f19e5f..a645b71a952 100644 --- a/src/it/java/com/google/checkstyle/test/base/AbstractIndentationTestSupport.java +++ b/src/it/java/com/google/checkstyle/test/base/AbstractIndentationTestSupport.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule21filename/OuterTypeFilenameTest.java b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule21filename/OuterTypeFilenameTest.java index 56574c009ff..18f0b58772f 100644 --- a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule21filename/OuterTypeFilenameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule21filename/OuterTypeFilenameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule231filetab/FileTabCharacterTest.java b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule231filetab/FileTabCharacterTest.java index 7cf939ac9ab..2d15ffe04ea 100644 --- a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule231filetab/FileTabCharacterTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule231filetab/FileTabCharacterTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule232specialescape/IllegalTokenTextTest.java b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule232specialescape/IllegalTokenTextTest.java index 022da759ac0..4c8df34d564 100644 --- a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule232specialescape/IllegalTokenTextTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule232specialescape/IllegalTokenTextTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule233nonascii/AvoidEscapedUnicodeCharactersTest.java b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule233nonascii/AvoidEscapedUnicodeCharactersTest.java index b3a91c81bbe..e50a72f15b3 100644 --- a/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule233nonascii/AvoidEscapedUnicodeCharactersTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter2filebasic/rule233nonascii/AvoidEscapedUnicodeCharactersTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/LineLengthTest.java b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/LineLengthTest.java index 41dd17fee20..c9cf7873147 100644 --- a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/LineLengthTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/LineLengthTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule331nowildcard/AvoidStarImportTest.java b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule331nowildcard/AvoidStarImportTest.java index f175afadc0d..b6b813d9db8 100644 --- a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule331nowildcard/AvoidStarImportTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule331nowildcard/AvoidStarImportTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/NoLineWrapTest.java b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/NoLineWrapTest.java index 849a45bcb09..a215ea8f47c 100644 --- a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/NoLineWrapTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/NoLineWrapTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule333orderingandspacing/CustomImportOrderTest.java b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule333orderingandspacing/CustomImportOrderTest.java index 34808921e68..33c05bf04d1 100644 --- a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule333orderingandspacing/CustomImportOrderTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule333orderingandspacing/CustomImportOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule341onetoplevel/OneTopLevelClassTest.java b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule341onetoplevel/OneTopLevelClassTest.java index 6513572e0e4..b72a69ba282 100644 --- a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule341onetoplevel/OneTopLevelClassTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule341onetoplevel/OneTopLevelClassTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/OverloadMethodsDeclarationOrderTest.java b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/OverloadMethodsDeclarationOrderTest.java index 68898174558..1a69c1403a3 100644 --- a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/OverloadMethodsDeclarationOrderTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/OverloadMethodsDeclarationOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -24,6 +24,7 @@ import com.google.checkstyle.test.base.AbstractGoogleModuleTestSupport; import com.puppycrawl.tools.checkstyle.api.Configuration; import com.puppycrawl.tools.checkstyle.checks.coding.OverloadMethodsDeclarationOrderCheck; +import com.puppycrawl.tools.checkstyle.utils.CommonUtil; public class OverloadMethodsDeclarationOrderTest extends AbstractGoogleModuleTestSupport { @@ -52,4 +53,16 @@ public void testOverloadMethods() throws Exception { verify(checkConfig, filePath, expected, warnList); } + @Test + public void testOverloadMethodsDeclarationOrderPrivateAndStaticMethods() throws Exception { + + final String[] expected = CommonUtil.EMPTY_STRING_ARRAY; + + final Configuration checkConfig = getModuleConfig("OverloadMethodsDeclarationOrder"); + final String filePath = getPath( + "InputOverloadMethodsDeclarationOrderPrivateAndStaticMethods.java"); + + verify(checkConfig, filePath, expected); + } + } diff --git a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3sourcefile/EmptyLineSeparatorTest.java b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3sourcefile/EmptyLineSeparatorTest.java index 34039889f20..4cf5ee96d6e 100644 --- a/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3sourcefile/EmptyLineSeparatorTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3sourcefile/EmptyLineSeparatorTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule411bracesareused/NeedBracesTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule411bracesareused/NeedBracesTest.java index 504f04502fd..f4896183daa 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule411bracesareused/NeedBracesTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule411bracesareused/NeedBracesTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/LeftCurlyTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/LeftCurlyTest.java index 8ec50466459..dc400954856 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/LeftCurlyTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/LeftCurlyTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/RightCurlyTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/RightCurlyTest.java index 09b95f90bcc..b58872a5e26 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/RightCurlyTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/RightCurlyTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -130,4 +130,19 @@ public void testRightCurlySwitch() throws Exception { final Integer[] warnList = getLinesWithWarn(filePath); verify(checkConfig, filePath, expected, warnList); } + + @Test + public void testRightCurlySwitchCases() throws Exception { + final String[] expected = { + "25:13: " + getCheckMessage(RightCurlyCheck.class, MSG_KEY_LINE_ALONE, "}", 13), + "34:28: " + getCheckMessage(RightCurlyCheck.class, MSG_KEY_LINE_ALONE, "}", 28), + "57:33: " + getCheckMessage(RightCurlyCheck.class, MSG_KEY_LINE_ALONE, "}", 33), + }; + + final Configuration checkConfig = createTreeWalkerConfig(getModuleConfigsByIds(MODULES)); + final String filePath = getPath("InputRightCurlySwitchCasesBlocks.java"); + + final Integer[] warnList = getLinesWithWarn(filePath); + verify(checkConfig, filePath, expected, warnList); + } } diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/EmptyBlockTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/EmptyBlockTest.java index 02f53beb249..2c6662319c9 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/EmptyBlockTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/EmptyBlockTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/EmptyCatchBlockTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/EmptyCatchBlockTest.java index 4bfa8a0fda0..434cd9a5dda 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/EmptyCatchBlockTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule413emptyblocks/EmptyCatchBlockTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule43onestatement/OneStatementPerLineTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule43onestatement/OneStatementPerLineTest.java index eab34f87772..2c846379fb6 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule43onestatement/OneStatementPerLineTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule43onestatement/OneStatementPerLineTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule44columnlimit/LineLengthTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule44columnlimit/LineLengthTest.java index 0eafab9589d..fa64460c463 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule44columnlimit/LineLengthTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule44columnlimit/LineLengthTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/MethodParamPadTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/MethodParamPadTest.java index 304d15475ed..0012db57e7b 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/MethodParamPadTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/MethodParamPadTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/OperatorWrapTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/OperatorWrapTest.java index 0b5d52d6840..aed66303fd8 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/OperatorWrapTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/OperatorWrapTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/SeparatorWrapTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/SeparatorWrapTest.java index fdf0505a81c..4ca8bd5a3bc 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/SeparatorWrapTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule451wheretobreak/SeparatorWrapTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule461verticalwhitespace/EmptyLineSeparatorTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule461verticalwhitespace/EmptyLineSeparatorTest.java index db402357298..31e71dc18c1 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule461verticalwhitespace/EmptyLineSeparatorTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule461verticalwhitespace/EmptyLineSeparatorTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/GenericWhitespaceTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/GenericWhitespaceTest.java index 5a369793745..462e4ccd1f1 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/GenericWhitespaceTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/GenericWhitespaceTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -54,6 +54,7 @@ public void testWhitespaceAroundGenerics() throws Exception { "14:46: " + getCheckMessage(messages, msgPreceded, ">"), "15:33: " + getCheckMessage(messages, msgFollowed, "<"), "15:33: " + getCheckMessage(messages, msgPreceded, "<"), + "15:46: " + getCheckMessage(messages, msgFollowed, ">"), "15:46: " + getCheckMessage(messages, msgPreceded, ">"), "20:39: " + getCheckMessage(messages, msgFollowed, "<"), "20:39: " + getCheckMessage(messages, msgPreceded, "<"), @@ -81,6 +82,7 @@ public void testGenericWhitespace() throws Exception { "16:24: " + getCheckMessage(messages, msgPreceded, ">"), "16:44: " + getCheckMessage(messages, msgFollowed, "<"), "16:44: " + getCheckMessage(messages, msgPreceded, "<"), + "16:54: " + getCheckMessage(messages, msgFollowed, ">"), "16:54: " + getCheckMessage(messages, msgPreceded, ">"), "17:14: " + getCheckMessage(messages, msgFollowed, "<"), "17:14: " + getCheckMessage(messages, msgPreceded, "<"), @@ -95,6 +97,7 @@ public void testGenericWhitespace() throws Exception { "17:60: " + getCheckMessage(messages, msgPreceded, "<"), "17:70: " + getCheckMessage(messages, msgFollowed, ">"), "17:70: " + getCheckMessage(messages, msgPreceded, ">"), + "17:72: " + getCheckMessage(messages, msgFollowed, ">"), "17:72: " + getCheckMessage(messages, msgPreceded, ">"), "30:18: " + getCheckMessage(messages, msgNotPreceded, "<"), "30:20: " + getCheckMessage(messages, msgIllegalFollow, ">"), diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/MethodParamPadTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/MethodParamPadTest.java index 0476a578fb6..12a50f59eeb 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/MethodParamPadTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/MethodParamPadTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/NoWhitespaceBeforeCaseDefaultColonTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/NoWhitespaceBeforeCaseDefaultColonTest.java index 04c134293c0..8f99451a218 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/NoWhitespaceBeforeCaseDefaultColonTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/NoWhitespaceBeforeCaseDefaultColonTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/NoWhitespaceBeforeTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/NoWhitespaceBeforeTest.java index 254d94f4ac8..6ef455675a3 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/NoWhitespaceBeforeTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/NoWhitespaceBeforeTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/ParenPadTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/ParenPadTest.java index 50f241fd2b7..f8456de7180 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/ParenPadTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/ParenPadTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/WhitespaceAfterTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/WhitespaceAfterTest.java index 54904778b57..f0d15d1e027 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/WhitespaceAfterTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/WhitespaceAfterTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/WhitespaceAroundTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/WhitespaceAroundTest.java index eede67bf966..596d9828d8d 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/WhitespaceAroundTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/WhitespaceAroundTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4821onevariableperline/MultipleVariableDeclarationsTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4821onevariableperline/MultipleVariableDeclarationsTest.java index 9775197fdd5..4c41fb98c1d 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4821onevariableperline/MultipleVariableDeclarationsTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4821onevariableperline/MultipleVariableDeclarationsTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4822variabledistance/VariableDeclarationUsageDistanceTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4822variabledistance/VariableDeclarationUsageDistanceTest.java index 777c5699c2c..9a7b318d71c 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4822variabledistance/VariableDeclarationUsageDistanceTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4822variabledistance/VariableDeclarationUsageDistanceTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -43,6 +43,7 @@ public void testArrayTypeStyle() throws Exception { "219:9: " + getCheckMessage(clazz, msgExt, "t", 5, 3), "483:9: " + getCheckMessage(clazz, msgExt, "myOption", 7, 3), "495:9: " + getCheckMessage(clazz, msgExt, "myOption", 6, 3), + "508:9: " + getCheckMessage(clazz, msgExt, "count", 4, 3), }; final Configuration checkConfig = diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4832nocstylearray/ArrayTypeStyleTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4832nocstylearray/ArrayTypeStyleTest.java index a93e3e9e50f..470a83e67e4 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4832nocstylearray/ArrayTypeStyleTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4832nocstylearray/ArrayTypeStyleTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4841indentation/IndentationTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4841indentation/IndentationTest.java index 350dd5b536a..46f208d254b 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4841indentation/IndentationTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4841indentation/IndentationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4842fallthrough/FallThroughTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4842fallthrough/FallThroughTest.java index e89cee33826..28e418711d6 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4842fallthrough/FallThroughTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4842fallthrough/FallThroughTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4843defaultcasepresent/MissingSwitchDefaultTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4843defaultcasepresent/MissingSwitchDefaultTest.java index bbf5760986b..c0504ef0ed9 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4843defaultcasepresent/MissingSwitchDefaultTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4843defaultcasepresent/MissingSwitchDefaultTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule485annotations/AnnotationLocationTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule485annotations/AnnotationLocationTest.java index 3d050947f69..e91ac726fe4 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule485annotations/AnnotationLocationTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule485annotations/AnnotationLocationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4861blockcommentstyle/CommentsIndentationTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4861blockcommentstyle/CommentsIndentationTest.java index 4b83c054247..3a05c2cee4a 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4861blockcommentstyle/CommentsIndentationTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule4861blockcommentstyle/CommentsIndentationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule487modifiers/ModifierOrderTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule487modifiers/ModifierOrderTest.java index 98452995a4c..7821b400f7a 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule487modifiers/ModifierOrderTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule487modifiers/ModifierOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule488numericliterals/UpperEllTest.java b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule488numericliterals/UpperEllTest.java index 8bb5b343a4d..b31ac50c418 100644 --- a/src/it/java/com/google/checkstyle/test/chapter4formatting/rule488numericliterals/UpperEllTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter4formatting/rule488numericliterals/UpperEllTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule51identifiernames/CatchParameterNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule51identifiernames/CatchParameterNameTest.java index 953d1c2f301..e3a5c7c6e25 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule51identifiernames/CatchParameterNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule51identifiernames/CatchParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule521packagenames/PackageNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule521packagenames/PackageNameTest.java index bbe6d44d40d..2dc25dfc17b 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule521packagenames/PackageNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule521packagenames/PackageNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule522typenames/TypeNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule522typenames/TypeNameTest.java index af5d81b856c..e83451e47a9 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule522typenames/TypeNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule522typenames/TypeNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule523methodnames/MethodNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule523methodnames/MethodNameTest.java index bde7a5443b2..31eff07410b 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule523methodnames/MethodNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule523methodnames/MethodNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule525nonconstantfieldnames/MemberNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule525nonconstantfieldnames/MemberNameTest.java index d6f3d5afb9d..dd40934b531 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule525nonconstantfieldnames/MemberNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule525nonconstantfieldnames/MemberNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/LambdaParameterNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/LambdaParameterNameTest.java index f8fc270b35b..5ecb5ff2c89 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/LambdaParameterNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/LambdaParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/ParameterNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/ParameterNameTest.java index 5b0e91729b8..ece44e4c786 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/ParameterNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/ParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/RecordComponentNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/RecordComponentNameTest.java index 7c2772d8f49..78ea9d78f2b 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/RecordComponentNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule526parameternames/RecordComponentNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/LocalVariableNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/LocalVariableNameTest.java index ad4abba5aef..8baf3012699 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/LocalVariableNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/LocalVariableNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/PatternVariableNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/PatternVariableNameTest.java index 3d3e5cc548c..e8feb183d5c 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/PatternVariableNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/PatternVariableNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/ClassTypeParameterNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/ClassTypeParameterNameTest.java index 8b1b898084d..73389ad4720 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/ClassTypeParameterNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/ClassTypeParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/InterfaceTypeParameterNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/InterfaceTypeParameterNameTest.java index d658b382871..ff9da3782f8 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/InterfaceTypeParameterNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/InterfaceTypeParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/MethodTypeParameterNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/MethodTypeParameterNameTest.java index b33d3fe72b7..c8d84726ebc 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/MethodTypeParameterNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/MethodTypeParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/RecordTypeParameterNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/RecordTypeParameterNameTest.java index df6d3f7a6dd..d6e34a3c51a 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/RecordTypeParameterNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/RecordTypeParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter5naming/rule53camelcase/AbbreviationAsWordInNameTest.java b/src/it/java/com/google/checkstyle/test/chapter5naming/rule53camelcase/AbbreviationAsWordInNameTest.java index e47f33968ee..99f77c0b4d2 100644 --- a/src/it/java/com/google/checkstyle/test/chapter5naming/rule53camelcase/AbbreviationAsWordInNameTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter5naming/rule53camelcase/AbbreviationAsWordInNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter6programpractice/rule62donotignoreexceptions/EmptyBlockTest.java b/src/it/java/com/google/checkstyle/test/chapter6programpractice/rule62donotignoreexceptions/EmptyBlockTest.java index 8490c25d204..2c77b3e748a 100644 --- a/src/it/java/com/google/checkstyle/test/chapter6programpractice/rule62donotignoreexceptions/EmptyBlockTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter6programpractice/rule62donotignoreexceptions/EmptyBlockTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter6programpractice/rule64finalizers/NoFinalizerTest.java b/src/it/java/com/google/checkstyle/test/chapter6programpractice/rule64finalizers/NoFinalizerTest.java index 6f91a306b80..2745c4869e6 100644 --- a/src/it/java/com/google/checkstyle/test/chapter6programpractice/rule64finalizers/NoFinalizerTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter6programpractice/rule64finalizers/NoFinalizerTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule711generalform/InvalidJavadocPositionTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule711generalform/InvalidJavadocPositionTest.java index 4d18ff3c114..731d38a7dc7 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule711generalform/InvalidJavadocPositionTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule711generalform/InvalidJavadocPositionTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule711generalform/SingleLineJavadocTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule711generalform/SingleLineJavadocTest.java index 3c2f12f63a4..fa401699d3a 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule711generalform/SingleLineJavadocTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule711generalform/SingleLineJavadocTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule712paragraphs/JavadocParagraphTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule712paragraphs/JavadocParagraphTest.java index ed4c2fe6d9b..3b0131b3c14 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule712paragraphs/JavadocParagraphTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule712paragraphs/JavadocParagraphTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule712paragraphs/RequireEmptyLineBeforeBlockTagGroupTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule712paragraphs/RequireEmptyLineBeforeBlockTagGroupTest.java index b4880825322..aff67627252 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule712paragraphs/RequireEmptyLineBeforeBlockTagGroupTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule712paragraphs/RequireEmptyLineBeforeBlockTagGroupTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/AtclauseOrderTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/AtclauseOrderTest.java index 398e5ecc52a..e3f6c5abfc5 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/AtclauseOrderTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/AtclauseOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/JavadocTagContinuationIndentationTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/JavadocTagContinuationIndentationTest.java index 5cc693a4c1a..affc1d159ab 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/JavadocTagContinuationIndentationTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/JavadocTagContinuationIndentationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/NonEmptyAtclauseDescriptionTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/NonEmptyAtclauseDescriptionTest.java index 0c071c0e925..8deb29179c2 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/NonEmptyAtclauseDescriptionTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule713atclauses/NonEmptyAtclauseDescriptionTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule72thesummaryfragment/SummaryJavadocTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule72thesummaryfragment/SummaryJavadocTest.java index b44bb4d843f..b53f21b4e0a 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule72thesummaryfragment/SummaryJavadocTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule72thesummaryfragment/SummaryJavadocTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule731selfexplanatory/JavadocMethodTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule731selfexplanatory/JavadocMethodTest.java index d83254e1bc1..02ed495d1e0 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule731selfexplanatory/JavadocMethodTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule731selfexplanatory/JavadocMethodTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule731selfexplanatory/MissingJavadocMethodTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule731selfexplanatory/MissingJavadocMethodTest.java index 7c440a3457c..3baccd20950 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule731selfexplanatory/MissingJavadocMethodTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule731selfexplanatory/MissingJavadocMethodTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule734nonrequiredjavadoc/InvalidJavadocPositionTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule734nonrequiredjavadoc/InvalidJavadocPositionTest.java index 061b7d04dd7..dc061470195 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule734nonrequiredjavadoc/InvalidJavadocPositionTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule734nonrequiredjavadoc/InvalidJavadocPositionTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule73wherejavadocrequired/MissingJavadocTypeTest.java b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule73wherejavadocrequired/MissingJavadocTypeTest.java index 50db5cd3a04..6387720f56f 100644 --- a/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule73wherejavadocrequired/MissingJavadocTypeTest.java +++ b/src/it/java/com/google/checkstyle/test/chapter7javadoc/rule73wherejavadocrequired/MissingJavadocTypeTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/sun/checkstyle/test/base/AbstractSunModuleTestSupport.java b/src/it/java/com/sun/checkstyle/test/base/AbstractSunModuleTestSupport.java index 3f62cd1d47e..3dbdf47fbf6 100644 --- a/src/it/java/com/sun/checkstyle/test/base/AbstractSunModuleTestSupport.java +++ b/src/it/java/com/sun/checkstyle/test/base/AbstractSunModuleTestSupport.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/sun/checkstyle/test/chapter5comments/rule52documentationcomments/InvalidJavadocPositionTest.java b/src/it/java/com/sun/checkstyle/test/chapter5comments/rule52documentationcomments/InvalidJavadocPositionTest.java index fdaf7270dba..80bbd15f576 100644 --- a/src/it/java/com/sun/checkstyle/test/chapter5comments/rule52documentationcomments/InvalidJavadocPositionTest.java +++ b/src/it/java/com/sun/checkstyle/test/chapter5comments/rule52documentationcomments/InvalidJavadocPositionTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/com/sun/checkstyle/test/chapter6declarations/rule61numberperline/MultipleVariableDeclarationsTest.java b/src/it/java/com/sun/checkstyle/test/chapter6declarations/rule61numberperline/MultipleVariableDeclarationsTest.java index 0ed7926eb23..b3b11ccbee8 100644 --- a/src/it/java/com/sun/checkstyle/test/chapter6declarations/rule61numberperline/MultipleVariableDeclarationsTest.java +++ b/src/it/java/com/sun/checkstyle/test/chapter6declarations/rule61numberperline/MultipleVariableDeclarationsTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/org/checkstyle/base/AbstractCheckstyleModuleTestSupport.java b/src/it/java/org/checkstyle/base/AbstractCheckstyleModuleTestSupport.java index 5ffa8010614..283cd3501a9 100644 --- a/src/it/java/org/checkstyle/base/AbstractCheckstyleModuleTestSupport.java +++ b/src/it/java/org/checkstyle/base/AbstractCheckstyleModuleTestSupport.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/org/checkstyle/base/AbstractItModuleTestSupport.java b/src/it/java/org/checkstyle/base/AbstractItModuleTestSupport.java index c5d1eb5d628..38b1d14447a 100644 --- a/src/it/java/org/checkstyle/base/AbstractItModuleTestSupport.java +++ b/src/it/java/org/checkstyle/base/AbstractItModuleTestSupport.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/org/checkstyle/checks/imports/ImportOrderTest.java b/src/it/java/org/checkstyle/checks/imports/ImportOrderTest.java index 76bd726cc96..e83e006fcd7 100644 --- a/src/it/java/org/checkstyle/checks/imports/ImportOrderTest.java +++ b/src/it/java/org/checkstyle/checks/imports/ImportOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/AbstractXpathTestSupport.java b/src/it/java/org/checkstyle/suppressionxpathfilter/AbstractXpathTestSupport.java index be3e706d9e0..c9d904dade5 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/AbstractXpathTestSupport.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/AbstractXpathTestSupport.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -25,9 +25,9 @@ import java.io.Writer; import java.nio.charset.StandardCharsets; import java.nio.file.Files; -import java.nio.file.Path; import java.util.List; import java.util.Locale; +import java.util.UUID; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -56,7 +56,7 @@ public abstract class AbstractXpathTestSupport extends AbstractCheckstyleModuleT * The temporary folder to hold intermediate files. */ @TempDir - public Path temporaryFolder; + public File temporaryFolder; /** * Returns name of the check. @@ -120,9 +120,10 @@ private static void verifyXpathQueries(List generatedXpathQueries, private String createSuppressionsXpathConfigFile(String checkName, List xpathQueries) throws Exception { - final Path suppressionsXpathConfigPath = - Files.createTempFile(temporaryFolder, "", ""); - try (Writer bw = Files.newBufferedWriter(suppressionsXpathConfigPath, + final String uniqueFileName = + "suppressions_xpath_config_" + UUID.randomUUID() + ".xml"; + final File suppressionsXpathConfigPath = new File(temporaryFolder, uniqueFileName); + try (Writer bw = Files.newBufferedWriter(suppressionsXpathConfigPath.toPath(), StandardCharsets.UTF_8)) { bw.write("\n"); bw.write(" expectedXpathQueries) throws Exception { + if (expectedViolation.length != 1) { + throw new IllegalArgumentException( + "Expected violations should contain exactly one element." + + " Multiple violations are not supported." + ); + } + final ViolationPosition position = - extractLineAndColumnNumber(expectedViolations); + extractLineAndColumnNumber(expectedViolation); final List generatedXpathQueries = generateXpathQueries(fileToProcess, position); @@ -211,7 +220,7 @@ protected void runVerifications(DefaultConfiguration moduleConfig, generatedXpathQueries)); final Integer[] warnList = getLinesWithWarn(fileToProcess.getPath()); - verify(moduleConfig, fileToProcess.getPath(), expectedViolations, warnList); + verify(moduleConfig, fileToProcess.getPath(), expectedViolation, warnList); verifyXpathQueries(generatedXpathQueries, expectedXpathQueries); verify(treeWalkerConfigWithXpath, fileToProcess.getPath(), CommonUtil.EMPTY_STRING_ARRAY); } diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAbbreviationAsWordInNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAbbreviationAsWordInNameTest.java index 341faa4ae84..b1e77d45b0a 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAbbreviationAsWordInNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAbbreviationAsWordInNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testAnnotation() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameAnnotation.java")); + "InputXpathAbbreviationAsWordInNameAnnotation.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -52,7 +52,7 @@ public void testAnnotation() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameAnnotation']]" + + "@text='InputXpathAbbreviationAsWordInNameAnnotation']]" + "/OBJBLOCK/ANNOTATION_DEF/IDENT[@text='ANNOTATION']" ); @@ -63,7 +63,7 @@ public void testAnnotation() throws Exception { @Test public void testAnnotationField() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameAnnotationField.java")); + "InputXpathAbbreviationAsWordInNameAnnotationField.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -75,7 +75,7 @@ public void testAnnotationField() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/ANNOTATION_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameAnnotationField']]" + + "@text='InputXpathAbbreviationAsWordInNameAnnotationField']]" + "/OBJBLOCK/ANNOTATION_FIELD_DEF/IDENT[@text='ANNOTATION_FIELD']" ); @@ -86,7 +86,7 @@ public void testAnnotationField() throws Exception { @Test public void testClass() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameClass.java")); + "InputXpathAbbreviationAsWordInNameClass.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -98,7 +98,7 @@ public void testClass() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameClass']]" + + "@text='InputXpathAbbreviationAsWordInNameClass']]" + "/OBJBLOCK/CLASS_DEF/IDENT[@text='CLASS']" ); @@ -109,7 +109,7 @@ public void testClass() throws Exception { @Test public void testEnum() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameEnum.java")); + "InputXpathAbbreviationAsWordInNameEnum.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -121,7 +121,7 @@ public void testEnum() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameEnum']]" + + "@text='InputXpathAbbreviationAsWordInNameEnum']]" + "/OBJBLOCK/ENUM_DEF/IDENT[@text='ENUMERATION']" ); @@ -132,7 +132,7 @@ public void testEnum() throws Exception { @Test public void testField() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameField.java")); + "InputXpathAbbreviationAsWordInNameField.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -144,7 +144,7 @@ public void testField() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameField']]" + + "@text='InputXpathAbbreviationAsWordInNameField']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='FIELD']" ); @@ -155,7 +155,7 @@ public void testField() throws Exception { @Test public void testInterface() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameInterface.java")); + "InputXpathAbbreviationAsWordInNameInterface.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -167,7 +167,7 @@ public void testInterface() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameInterface']]" + + "@text='InputXpathAbbreviationAsWordInNameInterface']]" + "/OBJBLOCK/INTERFACE_DEF/IDENT[@text='INTERFACE']" ); @@ -178,7 +178,7 @@ public void testInterface() throws Exception { @Test public void testMethod() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameMethod.java")); + "InputXpathAbbreviationAsWordInNameMethod.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -190,7 +190,7 @@ public void testMethod() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameMethod']]" + + "@text='InputXpathAbbreviationAsWordInNameMethod']]" + "/OBJBLOCK/METHOD_DEF/IDENT[@text='METHOD']" ); @@ -201,7 +201,7 @@ public void testMethod() throws Exception { @Test public void testParameter() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameParameter.java")); + "InputXpathAbbreviationAsWordInNameParameter.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -213,7 +213,7 @@ public void testParameter() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameParameter']]" + + "@text='InputXpathAbbreviationAsWordInNameParameter']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + "/PARAMETERS/PARAMETER_DEF/IDENT[@text='PARAMETER']" ); @@ -225,7 +225,7 @@ public void testParameter() throws Exception { @Test public void testVariable() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAbbreviationAsWordInNameVariable.java")); + "InputXpathAbbreviationAsWordInNameVariable.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbbreviationAsWordInNameCheck.class); @@ -237,7 +237,7 @@ public void testVariable() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAbbreviationAsWordInNameVariable']]" + + "@text='InputXpathAbbreviationAsWordInNameVariable']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + "/SLIST/VARIABLE_DEF/IDENT[@text='VARIABLE']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAbstractClassNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAbstractClassNameTest.java index 85533e76f0d..a3dad7eb76a 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAbstractClassNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAbstractClassNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testClassNameTop() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionAbstractClassNameTop.java")); + new File(getPath("InputXpathAbstractClassNameTop.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbstractClassNameCheck.class); @@ -48,17 +48,17 @@ public void testClassNameTop() throws Exception { final String[] expectedViolation = { "3:1: " + getCheckMessage(AbstractClassNameCheck.class, AbstractClassNameCheck.MSG_ILLEGAL_ABSTRACT_CLASS_NAME, - "SuppressionXpathRegressionAbstractClassNameTop", "^Abstract.+$"), + "InputXpathAbstractClassNameTop", "^Abstract.+$"), }; final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAbstractClassNameTop']]", + + "[./IDENT[@text='InputXpathAbstractClassNameTop']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAbstractClassNameTop']]" + + "[./IDENT[@text='InputXpathAbstractClassNameTop']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAbstractClassNameTop']]" + + "[./IDENT[@text='InputXpathAbstractClassNameTop']]" + "/MODIFIERS/LITERAL_PUBLIC" ); @@ -69,7 +69,7 @@ public void testClassNameTop() throws Exception { @Test public void testClassNameInner() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionAbstractClassNameInner.java")); + new File(getPath("InputXpathAbstractClassNameInner.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbstractClassNameCheck.class); @@ -82,13 +82,13 @@ public void testClassNameInner() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAbstractClassNameInner']]" + + "[./IDENT[@text='InputXpathAbstractClassNameInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='MyClass']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAbstractClassNameInner']]" + + "[./IDENT[@text='InputXpathAbstractClassNameInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='MyClass']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAbstractClassNameInner']]" + + "[./IDENT[@text='InputXpathAbstractClassNameInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='MyClass']]/MODIFIERS/ABSTRACT" ); @@ -99,7 +99,7 @@ public void testClassNameInner() throws Exception { @Test public void testClassNameNoModifier() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionAbstractClassNameNoModifier.java")); + new File(getPath("InputXpathAbstractClassNameNoModifier.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AbstractClassNameCheck.class); @@ -112,13 +112,13 @@ public void testClassNameNoModifier() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" - + "SuppressionXpathRegressionAbstractClassNameNoModifier']]" + + "InputXpathAbstractClassNameNoModifier']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='AbstractMyClass']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" - + "SuppressionXpathRegressionAbstractClassNameNoModifier']]" + + "InputXpathAbstractClassNameNoModifier']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='AbstractMyClass']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" - + "SuppressionXpathRegressionAbstractClassNameNoModifier']]" + + "InputXpathAbstractClassNameNoModifier']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='AbstractMyClass']]/LITERAL_CLASS" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationLocationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationLocationTest.java index 8e8fbf78e16..96042a77977 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationLocationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationLocationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testClass() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationLocationClass.java")); + "InputXpathAnnotationLocationClass.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationLocationCheck.class); @@ -52,15 +52,15 @@ public void testClass() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationClass']]", + + "[./IDENT[@text='InputXpathAnnotationLocationClass']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationClass']]" + + "[./IDENT[@text='InputXpathAnnotationLocationClass']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationClass']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationClass']]/" + "MODIFIERS/ANNOTATION[./IDENT[@text='ClassAnnotation']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationClass']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationClass']]/" + "MODIFIERS/ANNOTATION[./IDENT[@text='ClassAnnotation']]/AT" ); @@ -71,7 +71,7 @@ public void testClass() throws Exception { @Test public void testInterface() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationLocationInterface.java")); + "InputXpathAnnotationLocationInterface.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationLocationCheck.class); @@ -84,16 +84,16 @@ public void testInterface() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF" - + "[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationInterface']]", + + "[./IDENT[@text='" + + "InputXpathAnnotationLocationInterface']]", "/COMPILATION_UNIT/INTERFACE_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationInterface'" + + "[./IDENT[@text='InputXpathAnnotationLocationInterface'" + "]]/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationInterface']]" + + "[./IDENT[@text='InputXpathAnnotationLocationInterface']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='InterfaceAnnotation']]", "/COMPILATION_UNIT/INTERFACE_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationInterface']]" + + "[./IDENT[@text='InputXpathAnnotationLocationInterface']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='InterfaceAnnotation']]/AT" ); @@ -104,7 +104,7 @@ public void testInterface() throws Exception { @Test public void testEnum() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationLocationEnum.java")); + "InputXpathAnnotationLocationEnum.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationLocationCheck.class); @@ -116,16 +116,16 @@ public void testEnum() throws Exception { }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/ENUM_DEF[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationEnum']]", + "/COMPILATION_UNIT/ENUM_DEF[./IDENT[@text='" + + "InputXpathAnnotationLocationEnum']]", "/COMPILATION_UNIT/ENUM_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationEnum']]" + + "[./IDENT[@text='InputXpathAnnotationLocationEnum']]" + "/MODIFIERS", "/COMPILATION_UNIT/ENUM_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationEnum']]" + + "[./IDENT[@text='InputXpathAnnotationLocationEnum']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='EnumAnnotation']]", "/COMPILATION_UNIT/ENUM_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationEnum']]" + + "[./IDENT[@text='InputXpathAnnotationLocationEnum']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='EnumAnnotation']]/AT" ); @@ -137,7 +137,7 @@ public void testEnum() throws Exception { @Test public void testMethod() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationLocationMethod.java")); + "InputXpathAnnotationLocationMethod.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationLocationCheck.class); @@ -151,17 +151,17 @@ public void testMethod() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationMethod']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationMethod']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationMethod']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationMethod']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationMethod']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationMethod']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]/MODIFIERS/" + "ANNOTATION[./IDENT[@text='MethodAnnotation']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationMethod']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationMethod']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]/MODIFIERS/" + "ANNOTATION[./IDENT[@text='MethodAnnotation']]/AT" ); @@ -174,7 +174,7 @@ public void testMethod() throws Exception { @Test public void testVariable() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationLocationVariable.java")); + "InputXpathAnnotationLocationVariable.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationLocationCheck.class); @@ -188,17 +188,17 @@ public void testVariable() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationVariable']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationVariable']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='b']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationVariable']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationVariable']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='b']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationVariable']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationVariable']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='b']]/MODIFIERS/" + "ANNOTATION[./IDENT[@text='VariableAnnotation']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationLocationVariable']]/" + + "[./IDENT[@text='InputXpathAnnotationLocationVariable']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='b']]/MODIFIERS/" + "ANNOTATION[./IDENT[@text='VariableAnnotation']]/AT" ); @@ -211,7 +211,7 @@ public void testVariable() throws Exception { @Test public void testConstructor() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationLocationCTOR.java")); + "InputXpathAnnotationLocationCTOR.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationLocationCheck.class); @@ -224,23 +224,23 @@ public void testConstructor() throws Exception { }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationCTOR']]/OBJBLOCK/CTOR_DEF" - + "[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationCTOR']]", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationCTOR']]/OBJBLOCK/CTOR_DEF" - + "[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationCTOR']]/MODIFIERS", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationCTOR']]/OBJBLOCK/CTOR_DEF" - + "[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationCTOR']]/" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" + + "InputXpathAnnotationLocationCTOR']]/OBJBLOCK/CTOR_DEF" + + "[./IDENT[@text='" + + "InputXpathAnnotationLocationCTOR']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" + + "InputXpathAnnotationLocationCTOR']]/OBJBLOCK/CTOR_DEF" + + "[./IDENT[@text='" + + "InputXpathAnnotationLocationCTOR']]/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" + + "InputXpathAnnotationLocationCTOR']]/OBJBLOCK/CTOR_DEF" + + "[./IDENT[@text='" + + "InputXpathAnnotationLocationCTOR']]/" + "MODIFIERS/ANNOTATION[./IDENT[@text='CTORAnnotation']]", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationCTOR']]/OBJBLOCK/CTOR_DEF" - + "[./IDENT[@text='SuppressionXpathRegression" - + "AnnotationLocationCTOR']]/" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" + + "InputXpathAnnotationLocationCTOR']]/OBJBLOCK/CTOR_DEF" + + "[./IDENT[@text='" + + "InputXpathAnnotationLocationCTOR']]/" + "MODIFIERS/ANNOTATION[./IDENT[@text='CTORAnnotation']]/AT" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationOnSameLineTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationOnSameLineTest.java index 556b26f222b..d44229ee044 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationOnSameLineTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationOnSameLineTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { public void testOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationOnSameLineOne.java")); + "InputXpathAnnotationOnSameLineMethod.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationOnSameLineCheck.class); @@ -60,17 +60,17 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineOne']]" + + "[./IDENT[@text='InputXpathAnnotationOnSameLineMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='getX']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineOne']]" + + "[./IDENT[@text='InputXpathAnnotationOnSameLineMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='getX']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineOne']]" + + "[./IDENT[@text='InputXpathAnnotationOnSameLineMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='getX']]/MODIFIERS" + "/ANNOTATION[./IDENT[@text='Deprecated']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineOne']]" + + "[./IDENT[@text='InputXpathAnnotationOnSameLineMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='getX']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='Deprecated']]/AT" ); @@ -83,7 +83,7 @@ public void testOne() throws Exception { public void testTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationOnSameLineTwo.java")); + "InputXpathAnnotationOnSameLineField.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationOnSameLineCheck.class); @@ -96,17 +96,17 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineTwo']]" + + "[./IDENT[@text='InputXpathAnnotationOnSameLineField']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='names']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineTwo']]" + + "[./IDENT[@text='InputXpathAnnotationOnSameLineField']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='names']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineTwo']]" + + "[./IDENT[@text='InputXpathAnnotationOnSameLineField']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='names']]/MODIFIERS" + "/ANNOTATION[./IDENT[@text='Deprecated']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineTwo']]" + + "[./IDENT[@text='InputXpathAnnotationOnSameLineField']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='names']]/MODIFIERS" + "/ANNOTATION[./IDENT[@text='Deprecated']]/AT" ); @@ -119,7 +119,7 @@ public void testTwo() throws Exception { public void testThree() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationOnSameLineThree.java")); + "InputXpathAnnotationOnSameLineInterface.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationOnSameLineCheck.class); @@ -136,15 +136,15 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[" - + "./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineThree']]", + + "./IDENT[@text='InputXpathAnnotationOnSameLineInterface']]", "/COMPILATION_UNIT/INTERFACE_DEF[" - + "./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineThree']]" + + "./IDENT[@text='InputXpathAnnotationOnSameLineInterface']]" + "/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[" - + "./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineThree']]" + + "./IDENT[@text='InputXpathAnnotationOnSameLineInterface']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='Deprecated']]", "/COMPILATION_UNIT/INTERFACE_DEF[" - + "./IDENT[@text='SuppressionXpathRegressionAnnotationOnSameLineThree']]" + + "./IDENT[@text='InputXpathAnnotationOnSameLineInterface']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='Deprecated']]/AT" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationUseStyleTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationUseStyleTest.java index a008f1d3ca7..c6622f42498 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationUseStyleTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnnotationUseStyleTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationUseStyleOne.java")); + "InputXpathAnnotationUseStyleOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationUseStyleCheck.class); @@ -54,10 +54,10 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleOne']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleOne']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleOne']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleOne']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]/AT" ); @@ -68,7 +68,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationUseStyleTwo.java")); + "InputXpathAnnotationUseStyleTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationUseStyleCheck.class); @@ -84,15 +84,15 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleTwo']]", + + "[./IDENT[@text='InputXpathAnnotationUseStyleTwo']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleTwo']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleTwo']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleTwo']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleTwo']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='Deprecated']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleTwo']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleTwo']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='Deprecated']]/AT" ); @@ -103,7 +103,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationUseStyleThree.java")); + "InputXpathAnnotationUseStyleThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationUseStyleCheck.class); @@ -118,17 +118,17 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleThree']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleThree']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleThree']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/MODIFIERS" + "/ANNOTATION[./IDENT[@text='SuppressWarnings']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleThree']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/MODIFIERS" + "/ANNOTATION[./IDENT[@text='SuppressWarnings']]/AT" ); @@ -140,7 +140,7 @@ public void testThree() throws Exception { @Test public void testFour() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationUseStyleFour.java")); + "InputXpathAnnotationUseStyleFour.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationUseStyleCheck.class); @@ -156,7 +156,7 @@ public void testFour() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleFour']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleFour']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]" + "/ANNOTATION_ARRAY_INIT/RCURLY" ); @@ -168,7 +168,7 @@ public void testFour() throws Exception { @Test public void testFive() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationUseStyleFive.java")); + "InputXpathAnnotationUseStyleFive.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationUseStyleCheck.class); @@ -185,15 +185,15 @@ public void testFive() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleFive']]", + + "[./IDENT[@text='InputXpathAnnotationUseStyleFive']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleFive']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleFive']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleFive']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleFive']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleFive']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleFive']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]/AT" ); @@ -204,7 +204,7 @@ public void testFive() throws Exception { @Test public void testSix() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationUseStyleSix.java")); + "InputXpathAnnotationUseStyleSix.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationUseStyleCheck.class); @@ -221,15 +221,15 @@ public void testSix() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleSix']]", + + "[./IDENT[@text='InputXpathAnnotationUseStyleSix']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleSix']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleSix']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleSix']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleSix']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleSix']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleSix']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]/AT" ); @@ -240,7 +240,7 @@ public void testSix() throws Exception { @Test public void testSeven() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationUseStyleSeven.java")); + "InputXpathAnnotationUseStyleSeven.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationUseStyleCheck.class); @@ -253,10 +253,10 @@ public void testSeven() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleSeven']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleSeven']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleSeven']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleSeven']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]/AT" ); @@ -267,7 +267,7 @@ public void testSeven() throws Exception { @Test public void testEight() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAnnotationUseStyleEight.java")); + "InputXpathAnnotationUseStyleEight.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnnotationUseStyleCheck.class); @@ -283,7 +283,7 @@ public void testEight() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnnotationUseStyleEight']]" + + "[./IDENT[@text='InputXpathAnnotationUseStyleEight']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='SuppressWarnings']]" + "/ANNOTATION_ARRAY_INIT/COMMA" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnonInnerLengthTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnonInnerLengthTest.java index 73c79b4deb4..0c89c9af45c 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnonInnerLengthTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAnonInnerLengthTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionAnonInnerLengthDefault.java")); + new File(getPath("InputXpathAnonInnerLengthDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnonInnerLengthCheck.class); @@ -52,12 +52,12 @@ public void testDefault() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnonInnerLengthDefault']]" + + "[./IDENT[@text='InputXpathAnonInnerLengthDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='runnable']]" + "/ASSIGN/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnonInnerLengthDefault']]" + + "[./IDENT[@text='InputXpathAnonInnerLengthDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='runnable']]" + "/ASSIGN/EXPR/LITERAL_NEW[./IDENT[@text='Runnable']]" @@ -71,7 +71,7 @@ public void testDefault() throws Exception { public void testMaxLength() throws Exception { final int maxLen = 5; final File fileToProcess = - new File(getPath("SuppressionXpathRegressionAnonInnerLength.java")); + new File(getPath("InputXpathAnonInnerLength.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AnonInnerLengthCheck.class); @@ -84,11 +84,11 @@ public void testMaxLength() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnonInnerLength']]" + + "[./IDENT[@text='InputXpathAnonInnerLength']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='compare']]/SLIST" + "/VARIABLE_DEF[./IDENT[@text='comp']]/ASSIGN/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAnonInnerLength']]" + + "[./IDENT[@text='InputXpathAnonInnerLength']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='compare']]/SLIST" + "/VARIABLE_DEF[./IDENT[@text='comp']]/ASSIGN/EXPR" + "/LITERAL_NEW[./IDENT[@text='Comparator']]" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionArrayTrailingCommaTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionArrayTrailingCommaTest.java index cfb90ed0166..ef481fbef70 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionArrayTrailingCommaTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionArrayTrailingCommaTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionArrayTrailingCommaOne.java")); + new File(getPath("InputXpathArrayTrailingCommaLinear.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ArrayTrailingCommaCheck.class); @@ -53,11 +53,11 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionArrayTrailingCommaOne']]" + + "[./IDENT[@text='InputXpathArrayTrailingCommaLinear']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a2']]/ASSIGN/EXPR/LITERAL_NEW" + "/ARRAY_INIT/EXPR[./NUM_INT[@text='3']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionArrayTrailingCommaOne']]" + + "[./IDENT[@text='InputXpathArrayTrailingCommaLinear']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a2']]/ASSIGN/EXPR/LITERAL_NEW" + "/ARRAY_INIT/EXPR/NUM_INT[@text='3']" ); @@ -69,7 +69,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionArrayTrailingCommaTwo.java")); + new File(getPath("InputXpathArrayTrailingCommaMatrix.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ArrayTrailingCommaCheck.class); @@ -81,7 +81,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionArrayTrailingCommaTwo']]" + + "[./IDENT[@text='InputXpathArrayTrailingCommaMatrix']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='d2']]/ASSIGN/EXPR/LITERAL_NEW" + "/ARRAY_INIT/ARRAY_INIT[./EXPR/NUM_INT[@text='5']]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionArrayTypeStyleTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionArrayTypeStyleTest.java index c458489bc76..e49232f3039 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionArrayTypeStyleTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionArrayTypeStyleTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,7 +38,7 @@ protected String getCheckName() { @Test public void testVariable() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionArrayTypeStyleVariable.java")); + new File(getPath("InputXpathArrayTypeStyleVariable.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ArrayTypeStyleCheck.class); @@ -49,7 +49,7 @@ public void testVariable() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionArrayTypeStyleVariable']]" + + "[./IDENT[@text='InputXpathArrayTypeStyleVariable']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='strings']]/TYPE[" + "./IDENT[@text='String']]/ARRAY_DECLARATOR" ); @@ -61,7 +61,7 @@ public void testVariable() throws Exception { @Test public void testMethodDef() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionArrayTypeStyleMethodDef.java")); + new File(getPath("InputXpathArrayTypeStyleMethodDef.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ArrayTypeStyleCheck.class); @@ -72,7 +72,7 @@ public void testMethodDef() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionArrayTypeStyleMethodDef']]" + + "[./IDENT[@text='InputXpathArrayTypeStyleMethodDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='getData']]/TYPE/ARRAY_DECLARATOR" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidDoubleBraceInitializationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidDoubleBraceInitializationTest.java index b58f566f6aa..ceb996630c2 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidDoubleBraceInitializationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidDoubleBraceInitializationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testClassFields() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidDoubleBraceInitialization.java")); + getPath("InputXpathAvoidDoubleBraceInitializationClassFields.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -51,11 +51,11 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAvoidDoubleBraceInitialization']]" + + "[./IDENT[@text='InputXpathAvoidDoubleBraceInitializationClassFields']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='list']]/ASSIGN/EXPR/" + "LITERAL_NEW[./IDENT[@text='ArrayList']]/OBJBLOCK", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAvoidDoubleBraceInitialization']]" + + "[./IDENT[@text='InputXpathAvoidDoubleBraceInitializationClassFields']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='list']]/ASSIGN/EXPR/" + "LITERAL_NEW[./IDENT[@text='ArrayList']]/OBJBLOCK/LCURLY" ); @@ -64,9 +64,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testMethodDef() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidDoubleBraceInitializationTwo.java")); + getPath("InputXpathAvoidDoubleBraceInitializationMethodDef.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -76,12 +76,12 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionAvoidDoubleBraceInitializationTwo']]" + + "'InputXpathAvoidDoubleBraceInitializationMethodDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/EXPR/LITERAL_NEW[./IDENT[@text='HashSet']]" + "/OBJBLOCK", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionAvoidDoubleBraceInitializationTwo']]" + + "'InputXpathAvoidDoubleBraceInitializationMethodDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/EXPR/LITERAL_NEW[./IDENT[@text='HashSet']]" + "/OBJBLOCK/LCURLY" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidEscapedUnicodeCharactersTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidEscapedUnicodeCharactersTest.java index b8664a98f7c..56bec5bc969 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidEscapedUnicodeCharactersTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidEscapedUnicodeCharactersTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testDefault() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidEscapedUnicodeCharactersDefault.java")); + "InputXpathAvoidEscapedUnicodeCharactersDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidEscapedUnicodeCharactersCheck.class); @@ -52,11 +52,11 @@ public void testDefault() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionAvoidEscapedUnicodeCharactersDefault']]" + + "[@text='InputXpathAvoidEscapedUnicodeCharactersDefault']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev2']]" + "/ASSIGN/EXPR[./STRING_LITERAL[@text='\\u03bcs']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionAvoidEscapedUnicodeCharactersDefault']]" + + "[@text='InputXpathAvoidEscapedUnicodeCharactersDefault']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev2']]" + "/ASSIGN/EXPR/STRING_LITERAL[@text='\\u03bcs']" ); @@ -68,7 +68,7 @@ public void testDefault() throws Exception { @Test public void testControlCharacters() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidEscapedUnicodeCharactersControlCharacters.java") + "InputXpathAvoidEscapedUnicodeCharactersControlCharacters.java") ); final DefaultConfiguration moduleConfig = @@ -82,12 +82,12 @@ public void testControlCharacters() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[." + "/IDENT[@text=" - + "'SuppressionXpathRegressionAvoidEscapedUnicodeCharactersControlCharacters']]" + + "'InputXpathAvoidEscapedUnicodeCharactersControlCharacters']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev9']]" + "/ASSIGN/EXPR[./STRING_LITERAL[@text='\\u03bcs']]", "/COMPILATION_UNIT/CLASS_DEF[." + "/IDENT[@text=" - + "'SuppressionXpathRegressionAvoidEscapedUnicodeCharactersControlCharacters']]" + + "'InputXpathAvoidEscapedUnicodeCharactersControlCharacters']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev9']]" + "/ASSIGN/EXPR/STRING_LITERAL[@text='\\u03bcs']" ); @@ -99,7 +99,7 @@ public void testControlCharacters() throws Exception { @Test public void testTailComment() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidEscapedUnicodeCharactersTailComment.java")); + "InputXpathAvoidEscapedUnicodeCharactersTailComment.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidEscapedUnicodeCharactersCheck.class); @@ -112,12 +112,12 @@ public void testTailComment() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[." + "/IDENT[@text=" - + "'SuppressionXpathRegressionAvoidEscapedUnicodeCharactersTailComment']]" + + "'InputXpathAvoidEscapedUnicodeCharactersTailComment']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev9']]" + "/ASSIGN/EXPR[./STRING_LITERAL[@text='\\u03bcs']]", "/COMPILATION_UNIT/CLASS_DEF[." + "/IDENT[@text=" - + "'SuppressionXpathRegressionAvoidEscapedUnicodeCharactersTailComment']]" + + "'InputXpathAvoidEscapedUnicodeCharactersTailComment']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev9']]" + "/ASSIGN/EXPR/STRING_LITERAL[@text='\\u03bcs']" ); @@ -129,7 +129,7 @@ public void testTailComment() throws Exception { @Test public void testAllCharactersEscaped() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidEscapedUnicodeCharactersAllEscaped.java")); + "InputXpathAvoidEscapedUnicodeCharactersAllEscaped.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidEscapedUnicodeCharactersCheck.class); @@ -142,12 +142,12 @@ public void testAllCharactersEscaped() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[." + "/IDENT[@text=" - + "'SuppressionXpathRegressionAvoidEscapedUnicodeCharactersAllEscaped']]" + + "'InputXpathAvoidEscapedUnicodeCharactersAllEscaped']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev9']]" + "/ASSIGN/EXPR[./STRING_LITERAL[@text='\\u03bcs']]", "/COMPILATION_UNIT/CLASS_DEF[." + "/IDENT[@text=" - + "'SuppressionXpathRegressionAvoidEscapedUnicodeCharactersAllEscaped']]" + + "'InputXpathAvoidEscapedUnicodeCharactersAllEscaped']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev9']]" + "/ASSIGN/EXPR/STRING_LITERAL[@text='\\u03bcs']" ); @@ -159,7 +159,7 @@ public void testAllCharactersEscaped() throws Exception { @Test public void testNonPrintableCharacters() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidEscapedUnicodeCharactersNonPrintable.java")); + "InputXpathAvoidEscapedUnicodeCharactersNonPrintable.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidEscapedUnicodeCharactersCheck.class); @@ -172,12 +172,12 @@ public void testNonPrintableCharacters() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[." + "/IDENT[@text=" - + "'SuppressionXpathRegressionAvoidEscapedUnicodeCharactersNonPrintable']]" + + "'InputXpathAvoidEscapedUnicodeCharactersNonPrintable']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev9']]" + "/ASSIGN/EXPR[./STRING_LITERAL[@text='\\u03bcs']]", "/COMPILATION_UNIT/CLASS_DEF[." + "/IDENT[@text=" - + "'SuppressionXpathRegressionAvoidEscapedUnicodeCharactersNonPrintable']]" + + "'InputXpathAvoidEscapedUnicodeCharactersNonPrintable']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='unitAbbrev9']]" + "/ASSIGN/EXPR/STRING_LITERAL[@text='\\u03bcs']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidInlineConditionalsTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidInlineConditionalsTest.java index 8a488bfc591..da04e7a6bd8 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidInlineConditionalsTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidInlineConditionalsTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,7 +39,7 @@ protected String getCheckName() { @Test public void testInlineConditionalsVariableDef() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidInlineConditionalsVariableDef.java")); + getPath("InputXpathAvoidInlineConditionalsVariableDef.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidInlineConditionalsCheck.class); @@ -51,11 +51,11 @@ public void testInlineConditionalsVariableDef() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" - + "SuppressionXpathRegressionAvoidInlineConditionalsVariableDef']]" + + "InputXpathAvoidInlineConditionalsVariableDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='substring']]/SLIST" + "/VARIABLE_DEF[./IDENT[@text='b']]/ASSIGN/EXPR", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" - + "SuppressionXpathRegressionAvoidInlineConditionalsVariableDef']]" + + "InputXpathAvoidInlineConditionalsVariableDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='substring']]/SLIST" + "/VARIABLE_DEF[./IDENT[@text='b']]/ASSIGN/EXPR/QUESTION" ); @@ -67,7 +67,7 @@ public void testInlineConditionalsVariableDef() throws Exception { @Test public void testInlineConditionalsAssign() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidInlineConditionalsAssign.java")); + getPath("InputXpathAvoidInlineConditionalsAssign.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidInlineConditionalsCheck.class); @@ -79,7 +79,7 @@ public void testInlineConditionalsAssign() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" - + "SuppressionXpathRegressionAvoidInlineConditionalsAssign']]" + + "InputXpathAvoidInlineConditionalsAssign']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='setB']]/SLIST" + "/EXPR/ASSIGN[./IDENT[@text='b']]/QUESTION" ); @@ -91,7 +91,7 @@ public void testInlineConditionalsAssign() throws Exception { @Test public void testInlineConditionalsAssert() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidInlineConditionalsAssert.java")); + getPath("InputXpathAvoidInlineConditionalsAssert.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidInlineConditionalsCheck.class); @@ -103,11 +103,11 @@ public void testInlineConditionalsAssert() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" - + "SuppressionXpathRegressionAvoidInlineConditionalsAssert']]" + + "InputXpathAvoidInlineConditionalsAssert']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='assertA']]/SLIST" + "/LITERAL_ASSERT/EXPR[./QUESTION/METHOD_CALL/DOT/IDENT[@text='a']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='" - + "SuppressionXpathRegressionAvoidInlineConditionalsAssert']]" + + "InputXpathAvoidInlineConditionalsAssert']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='assertA']]/SLIST" + "/LITERAL_ASSERT/EXPR/QUESTION" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidNestedBlocksTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidNestedBlocksTest.java index 1e68266aba2..e14606d97ef 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidNestedBlocksTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidNestedBlocksTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,7 +39,7 @@ protected String getCheckName() { @Test public void testEmpty() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidNestedBlocksEmpty.java")); + getPath("InputXpathAvoidNestedBlocksEmpty.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidNestedBlocksCheck.class); @@ -51,7 +51,7 @@ public void testEmpty() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAvoidNestedBlocksEmpty']]" + + "[./IDENT[@text='InputXpathAvoidNestedBlocksEmpty']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='empty']]/SLIST/SLIST" ); @@ -62,7 +62,7 @@ public void testEmpty() throws Exception { @Test public void testVariableAssignment() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidNestedBlocksVariable.java")); + getPath("InputXpathAvoidNestedBlocksVariable.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidNestedBlocksCheck.class); @@ -74,7 +74,7 @@ public void testVariableAssignment() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAvoidNestedBlocksVariable']]" + + "[./IDENT[@text='InputXpathAvoidNestedBlocksVariable']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='varAssign']]/SLIST/SLIST" ); @@ -84,8 +84,8 @@ public void testVariableAssignment() throws Exception { @Test public void testSwitchAllowInSwitchCaseFalse() throws Exception { - final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidNestedBlocksSwitch1.java")); + final File fileToProcess = new File(getPath( + "InputXpathAvoidNestedBlocksNotAllowedInSwitchCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidNestedBlocksCheck.class); @@ -93,21 +93,17 @@ public void testSwitchAllowInSwitchCaseFalse() throws Exception { final String[] expectedViolation = { "9:21: " + getCheckMessage(AvoidNestedBlocksCheck.class, AvoidNestedBlocksCheck.MSG_KEY_BLOCK_NESTED), - "16:13: " + getCheckMessage(AvoidNestedBlocksCheck.class, - AvoidNestedBlocksCheck.MSG_KEY_BLOCK_NESTED), - "20:21: " + getCheckMessage(AvoidNestedBlocksCheck.class, - AvoidNestedBlocksCheck.MSG_KEY_BLOCK_NESTED), }; final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAvoidNestedBlocksSwitch1']]" - + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='s']]/SLIST/LITERAL_SWITCH" - + "/CASE_GROUP/SLIST", + + "[./IDENT[@text='InputXpathAvoidNestedBlocksNotAllowedInSwitchCase" + + "']]/OBJBLOCK/METHOD_DEF" + + "[./IDENT[@text='s']]/SLIST/LITERAL_SWITCH/CASE_GROUP/SLIST", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAvoidNestedBlocksSwitch1']]" - + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='s']]/SLIST/LITERAL_SWITCH" - + "/CASE_GROUP/SLIST/SLIST" + + "[./IDENT[@text='InputXpathAvoidNestedBlocksNotAllowedInSwitchCase" + + "']]/OBJBLOCK/METHOD_DEF" + + "[./IDENT[@text='s']]/SLIST/LITERAL_SWITCH/CASE_GROUP/SLIST/SLIST" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -117,28 +113,50 @@ public void testSwitchAllowInSwitchCaseFalse() throws Exception { @Test public void testSwitchAllowInSwitchCaseTrue() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionAvoidNestedBlocksSwitch2.java")); + getPath("InputXpathAvoidNestedBlocksAllowedInSwitchCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(AvoidNestedBlocksCheck.class); moduleConfig.addProperty("allowInSwitchCase", "true"); final String[] expectedViolation = { - "9:21: " + getCheckMessage(AvoidNestedBlocksCheck.class, + "11:13: " + getCheckMessage(AvoidNestedBlocksCheck.class, AvoidNestedBlocksCheck.MSG_KEY_BLOCK_NESTED), - "16:13: " + getCheckMessage(AvoidNestedBlocksCheck.class, + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathAvoidNestedBlocksAllowedInSwitchCase" + + "']]/OBJBLOCK/METHOD_DEF[./IDENT[@text='s']]" + + "/SLIST/LITERAL_SWITCH/CASE_GROUP/SLIST/SLIST" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testSwitchWithBreakOutside() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathAvoidNestedBlocksBreakOutside.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(AvoidNestedBlocksCheck.class); + + final String[] expectedViolation = { + "8:21: " + getCheckMessage(AvoidNestedBlocksCheck.class, AvoidNestedBlocksCheck.MSG_KEY_BLOCK_NESTED), }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAvoidNestedBlocksSwitch2']]" - + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='s']]/SLIST/LITERAL_SWITCH" - + "/CASE_GROUP/SLIST", - "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionAvoidNestedBlocksSwitch2']]" - + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='s']]/SLIST/LITERAL_SWITCH" - + "/CASE_GROUP/SLIST/SLIST" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathAvoidNestedBlocksBreakOutside']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='s']]" + + "/SLIST/LITERAL_SWITCH/CASE_GROUP/SLIST", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathAvoidNestedBlocksBreakOutside']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='s']]" + + "/SLIST/LITERAL_SWITCH/CASE_GROUP/SLIST/SLIST" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidNoArgumentSuperConstructorCallTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidNoArgumentSuperConstructorCallTest.java index 6b752793f6a..42741bf3241 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidNoArgumentSuperConstructorCallTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidNoArgumentSuperConstructorCallTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { @Test public void testDefault() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCall.java")); + "InputXpathAvoidNoArgumentSuperConstructorCallDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -54,9 +54,9 @@ public void testDefault() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCall']]" + + "[@text='InputXpathAvoidNoArgumentSuperConstructorCallDefault']]" + "/OBJBLOCK/CTOR_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCall']]" + + "@text='InputXpathAvoidNoArgumentSuperConstructorCallDefault']]" + "/SLIST/SUPER_CTOR_CALL" ); @@ -66,7 +66,7 @@ public void testDefault() throws Exception { @Test public void testInnerClass() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCallInnerClass.java" + "InputXpathAvoidNoArgumentSuperConstructorCallInnerClass.java" )); final DefaultConfiguration moduleConfig = @@ -79,7 +79,7 @@ public void testInnerClass() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCallInnerClass']]" + + "'InputXpathAvoidNoArgumentSuperConstructorCallInnerClass']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/CLASS_DEF[./IDENT[@text='Inner']]" + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='Inner']]" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidStarImportTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidStarImportTest.java index 8a567e4d6fa..3ff7b2b80ad 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidStarImportTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidStarImportTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidStarImport1.java")); + "InputXpathAvoidStarImportOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -62,7 +62,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidStarImport2.java")); + "InputXpathAvoidStarImportTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidStaticImportTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidStaticImportTest.java index 275abbf413a..82b63e30a63 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidStaticImportTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionAvoidStaticImportTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidStaticImport1.java")); + "InputXpathAvoidStaticImportOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -62,7 +62,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionAvoidStaticImport2.java")); + "InputXpathAvoidStaticImportTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionBooleanExpressionComplexityTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionBooleanExpressionComplexityTest.java new file mode 100644 index 00000000000..75badfd2c7d --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionBooleanExpressionComplexityTest.java @@ -0,0 +1,110 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck; + +public class XpathRegressionBooleanExpressionComplexityTest + extends AbstractXpathTestSupport { + + @Override + protected String getCheckName() { + return BooleanExpressionComplexityCheck.class.getSimpleName(); + } + + @Test + public void testCatchBlock() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathBooleanExpressionComplexityCatchBlock.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(BooleanExpressionComplexityCheck.class); + + final String[] expectedViolationMessages = { + "10:23: " + getCheckMessage(BooleanExpressionComplexityCheck.class, + BooleanExpressionComplexityCheck.MSG_KEY, 11, 3), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathBooleanExpressionComplexityCatchBlock']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodOne']]/SLIST" + + "/LITERAL_TRY/LITERAL_CATCH/SLIST/VARIABLE_DEF" + + "[./IDENT[@text='d']]/ASSIGN" + ); + + runVerifications(moduleConfig, fileToProcess, + expectedViolationMessages, expectedXpathQueries); + } + + @Test + public void testClassFields() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathBooleanExpressionComplexityClassFields.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(BooleanExpressionComplexityCheck.class); + + final String[] expectedViolationMessages = { + "9:19: " + getCheckMessage(BooleanExpressionComplexityCheck.class, + BooleanExpressionComplexityCheck.MSG_KEY, 11, 3), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathBooleanExpressionComplexityClassFields']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodTwo']]/SLIST/VARIABLE_DEF" + + "[./IDENT[@text='d']]/ASSIGN" + ); + + runVerifications(moduleConfig, fileToProcess, + expectedViolationMessages, expectedXpathQueries); + } + + @Test + public void testConditionals() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathBooleanExpressionComplexityConditionals.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(BooleanExpressionComplexityCheck.class); + + final String[] expectedViolationMessages = { + "9:9: " + getCheckMessage(BooleanExpressionComplexityCheck.class, + BooleanExpressionComplexityCheck.MSG_KEY, 4, 3), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathBooleanExpressionComplexityConditionals']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodThree']]/SLIST/LITERAL_IF" + ); + + runVerifications(moduleConfig, fileToProcess, + expectedViolationMessages, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCatchParameterNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCatchParameterNameTest.java new file mode 100644 index 00000000000..5908fc5111b --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCatchParameterNameTest.java @@ -0,0 +1,230 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.naming.AbstractNameCheck.MSG_INVALID_PATTERN; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.naming.CatchParameterNameCheck; + +public class XpathRegressionCatchParameterNameTest extends AbstractXpathTestSupport { + private final String checkName = CatchParameterNameCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testSimple() throws Exception { + final String pattern = "^(e|t|ex|[a-z][a-z][a-zA-Z]+)$"; + + final DefaultConfiguration moduleConfig = + createModuleConfig(CatchParameterNameCheck.class); + + final File fileToProcess = + new File(getPath("InputXpathCatchParameterNameSimple.java")); + + final String[] expectedViolation = { + "6:28: " + getCheckMessage(CatchParameterNameCheck.class, + MSG_INVALID_PATTERN, "e1", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathCatchParameterNameSimple']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/SLIST/LITERAL_TRY/LITERAL_CATCH/PARAMETER_DEF/IDENT[@text='e1']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testNested() throws Exception { + final String pattern = "^(e|t|ex|[a-z][a-z][a-zA-Z]+)$"; + + final DefaultConfiguration moduleConfig = + createModuleConfig(CatchParameterNameCheck.class); + + final File fileToProcess = + new File(getPath("InputXpathCatchParameterNameNested.java")); + + final String[] expectedViolation = { + "9:40: " + getCheckMessage(CatchParameterNameCheck.class, + MSG_INVALID_PATTERN, "i", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathCatchParameterNameNested']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='NestedClass']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/SLIST/LITERAL_IF/SLIST" + + "/LITERAL_TRY/SLIST/LITERAL_TRY/LITERAL_CATCH/PARAMETER_DEF/IDENT[@text='i']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testStaticInit() throws Exception { + final String pattern = "^[a-z][a-zA-Z0-9]+$"; + + final DefaultConfiguration moduleConfig = + createModuleConfig(CatchParameterNameCheck.class); + moduleConfig.addProperty("format", pattern); + + final File fileToProcess = + new File(getPath("InputXpathCatchParameterNameStaticInit.java")); + + final String[] expectedViolation = { + "7:32: " + getCheckMessage(CatchParameterNameCheck.class, + MSG_INVALID_PATTERN, "Ex", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathCatchParameterNameStaticInit']]" + + "/OBJBLOCK/STATIC_INIT/SLIST" + + "/LITERAL_DO/SLIST/LITERAL_TRY/LITERAL_CATCH/PARAMETER_DEF/IDENT[@text='Ex']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testAnonymous() throws Exception { + final String pattern = "^[a-z][a-zA-Z0-9]+$"; + + final DefaultConfiguration moduleConfig = + createModuleConfig(CatchParameterNameCheck.class); + moduleConfig.addProperty("format", pattern); + + final File fileToProcess = + new File(getPath("InputXpathCatchParameterNameAnonymous.java")); + + final String[] expectedViolation = { + "12:40: " + getCheckMessage(CatchParameterNameCheck.class, + MSG_INVALID_PATTERN, "E1", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathCatchParameterNameAnonymous']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='InnerClass']]" + + "/SLIST/EXPR/LITERAL_NEW[./IDENT[@text='Runnable']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='run']]" + + "/SLIST/LITERAL_TRY/LITERAL_CATCH/PARAMETER_DEF/IDENT[@text='E1']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testLambda() throws Exception { + final String pattern = "^[A-Z][a-z]+$"; + + final DefaultConfiguration moduleConfig = + createModuleConfig(CatchParameterNameCheck.class); + moduleConfig.addProperty("format", pattern); + + final File fileToProcess = + new File(getPath("InputXpathCatchParameterNameLambda.java")); + + final String[] expectedViolation = { + "12:32: " + getCheckMessage(CatchParameterNameCheck.class, + MSG_INVALID_PATTERN, "e", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathCatchParameterNameLambda']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='lambdaFunction']]" + + "/ASSIGN/LAMBDA[./IDENT[@text='a']]" + + "/SLIST/LITERAL_FOR/SLIST/LITERAL_TRY/LITERAL_CATCH" + + "/PARAMETER_DEF/IDENT[@text='e']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testEnum() throws Exception { + final String pattern = "^[A-Z][a-z]+$"; + + final DefaultConfiguration moduleConfig = + createModuleConfig(CatchParameterNameCheck.class); + moduleConfig.addProperty("format", pattern); + + final File fileToProcess = + new File(getPath("InputXpathCatchParameterNameEnum.java")); + + final String[] expectedViolation = { + "10:40: " + getCheckMessage(CatchParameterNameCheck.class, + MSG_INVALID_PATTERN, "eX", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/ENUM_DEF" + + "[./IDENT[@text='InputXpathCatchParameterNameEnum']]" + + "/OBJBLOCK/ENUM_CONSTANT_DEF[./IDENT[@text='VALUE']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/SLIST/LITERAL_SWITCH/CASE_GROUP/SLIST/LITERAL_TRY/LITERAL_CATCH/" + + "PARAMETER_DEF/IDENT[@text='eX']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testInterface() throws Exception { + final String pattern = "^[A-Z][a-z]+$"; + + final DefaultConfiguration moduleConfig = + createModuleConfig(CatchParameterNameCheck.class); + moduleConfig.addProperty("format", pattern); + + final File fileToProcess = + new File(getPath("InputXpathCatchParameterNameInterface.java")); + + final String[] expectedViolation = { + "7:32: " + getCheckMessage(CatchParameterNameCheck.class, + MSG_INVALID_PATTERN, "EX", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/INTERFACE_DEF" + + "[./IDENT[@text='InputXpathCatchParameterNameInterface']]" + + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='InnerInterface']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/SLIST/LITERAL_TRY/LITERAL_CATCH/PARAMETER_DEF/IDENT[@text='EX']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionClassMemberImpliedModifierTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionClassMemberImpliedModifierTest.java index d4a45d223f0..a4885bac3ca 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionClassMemberImpliedModifierTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionClassMemberImpliedModifierTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testInterface() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionClassMemberImpliedModifierOne.java")); + new File(getPath("InputXpathClassMemberImpliedModifierInterface.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ClassMemberImpliedModifierCheck.class); @@ -52,13 +52,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionClassMemberImpliedModifierOne']]" + + "@text='InputXpathClassMemberImpliedModifierInterface']]" + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Foo']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionClassMemberImpliedModifierOne']]" + + "@text='InputXpathClassMemberImpliedModifierInterface']]" + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Foo']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionClassMemberImpliedModifierOne']]" + + "@text='InputXpathClassMemberImpliedModifierInterface']]" + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Foo']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -67,9 +67,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testEnum() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionClassMemberImpliedModifierTwo.java")); + new File(getPath("InputXpathClassMemberImpliedModifierEnum.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ClassMemberImpliedModifierCheck.class); @@ -81,13 +81,13 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionClassMemberImpliedModifierTwo']]" + + "[./IDENT[@text='InputXpathClassMemberImpliedModifierEnum']]" + "/OBJBLOCK/ENUM_DEF[./IDENT[@text='Count']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionClassMemberImpliedModifierTwo']]" + + "[./IDENT[@text='InputXpathClassMemberImpliedModifierEnum']]" + "/OBJBLOCK/ENUM_DEF[./IDENT[@text='Count']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionClassMemberImpliedModifierTwo']]" + + "[./IDENT[@text='InputXpathClassMemberImpliedModifierEnum']]" + "/OBJBLOCK/ENUM_DEF[./IDENT[@text='Count']]/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCommentsIndentationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCommentsIndentationTest.java index 3ea2c23d246..8431f8641d5 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCommentsIndentationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCommentsIndentationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,8 +40,7 @@ protected String getCheckName() { @Test public void testSingleLine() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCommentsIndentation" - + "SingleLine.java")); + new File(getPath("InputXpathCommentsIndentationSingleLine.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CommentsIndentationCheck.class); @@ -53,7 +52,7 @@ public void testSingleLine() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionCommentsIndentationSingleLine']]" + + "[@text='InputXpathCommentsIndentationSingleLine']]" + "/OBJBLOCK/SINGLE_LINE_COMMENT[./COMMENT_CONTENT[@text=' Comment // warn\\n']]" ); @@ -64,8 +63,7 @@ public void testSingleLine() throws Exception { @Test public void testBlock() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCommentsIndentation" - + "Block.java")); + new File(getPath("InputXpathCommentsIndentationBlock.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CommentsIndentationCheck.class); @@ -77,7 +75,7 @@ public void testBlock() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionCommentsIndentationBlock']]/OBJBLOCK/" + + "[@text='InputXpathCommentsIndentationBlock']]/OBJBLOCK/" + "VARIABLE_DEF[./IDENT[@text='f']]/TYPE/BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT" + "[@text=' // warn\\n * Javadoc comment\\n ']]" ); @@ -89,8 +87,7 @@ public void testBlock() throws Exception { @Test public void testSeparator() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCommentsIndentation" - + "Separator.java")); + new File(getPath("InputXpathCommentsIndentationSeparator.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CommentsIndentationCheck.class); @@ -102,7 +99,7 @@ public void testSeparator() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionCommentsIndentationSeparator']]" + + "[@text='InputXpathCommentsIndentationSeparator']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/MODIFIERS/SINGLE_LINE_COMMENT" + "[./COMMENT_CONTENT[@text='///////////// Comment separator // warn\\n']]" ); @@ -114,8 +111,7 @@ public void testSeparator() throws Exception { @Test public void testDistributedStatement() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCommentsIndentation" - + "DistributedStatement.java")); + new File(getPath("InputXpathCommentsIndentationDistributedStatement.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CommentsIndentationCheck.class); @@ -127,7 +123,7 @@ public void testDistributedStatement() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionCommentsIndentationDistributedStatement']]" + + "[@text='InputXpathCommentsIndentationDistributedStatement']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/SLIST/SINGLE_LINE_COMMENT" + "[./COMMENT_CONTENT[@text=' Comment // warn\\n']]" ); @@ -139,8 +135,7 @@ public void testDistributedStatement() throws Exception { @Test public void testSingleLineBlock() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCommentsIndentation" - + "SingleLineBlock.java")); + new File(getPath("InputXpathCommentsIndentationSingleLineBlock.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CommentsIndentationCheck.class); @@ -152,7 +147,7 @@ public void testSingleLineBlock() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionCommentsIndentationSingleLineBlock']]" + + "[@text='InputXpathCommentsIndentationSingleLineBlock']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/SLIST/SINGLE_LINE_COMMENT" + "[./COMMENT_CONTENT[@text=' block Comment // warn\\n']]" ); @@ -164,8 +159,7 @@ public void testSingleLineBlock() throws Exception { @Test public void testNonEmptyCase() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCommentsIndentation" - + "NonEmptyCase.java")); + new File(getPath("InputXpathCommentsIndentationNonEmptyCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CommentsIndentationCheck.class); @@ -177,7 +171,7 @@ public void testNonEmptyCase() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionCommentsIndentationNonEmptyCase']]" + + "[@text='InputXpathCommentsIndentationNonEmptyCase']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/SLIST/LITERAL_SWITCH/" + "CASE_GROUP/SINGLE_LINE_COMMENT[./COMMENT_CONTENT[@text=' Comment // warn\\n']]" ); @@ -189,8 +183,7 @@ public void testNonEmptyCase() throws Exception { @Test public void testEmptyCase() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCommentsIndentation" - + "EmptyCase.java")); + new File(getPath("InputXpathCommentsIndentationEmptyCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CommentsIndentationCheck.class); @@ -202,7 +195,7 @@ public void testEmptyCase() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionCommentsIndentationEmptyCase']]" + + "[@text='InputXpathCommentsIndentationEmptyCase']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/SLIST/LITERAL_SWITCH/" + "CASE_GROUP/SINGLE_LINE_COMMENT[./COMMENT_CONTENT[@text=' Comment // warn\\n']]" ); @@ -214,8 +207,7 @@ public void testEmptyCase() throws Exception { @Test public void testWithinBlockStatement() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCommentsIndentation" - + "WithinBlockStatement.java")); + new File(getPath("InputXpathCommentsIndentationWithinBlockStatement.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CommentsIndentationCheck.class); @@ -227,7 +219,7 @@ public void testWithinBlockStatement() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionCommentsIndentationWithinBlockStatement']]" + + "[@text='InputXpathCommentsIndentationWithinBlockStatement']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF" + "[./IDENT[@text='s']]/ASSIGN/EXPR/PLUS[./STRING_LITERAL[@text='O']]" + "/SINGLE_LINE_COMMENT[./COMMENT_CONTENT[@text=' Comment // warn\\n']]" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionConstantNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionConstantNameTest.java index 8e2009add36..01db1dafd08 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionConstantNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionConstantNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -44,7 +44,7 @@ protected String getCheckName() { @Test public void testLowercase() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionConstantNameLowercase.java")); + getPath("InputXpathConstantNameLowercase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -54,7 +54,7 @@ public void testLowercase() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionConstantNameLowercase']]" + + "[@text='InputXpathConstantNameLowercase']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='number']" ); @@ -65,7 +65,7 @@ public void testLowercase() throws Exception { @Test public void testCamelCase() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionConstantNameCamelCase.java")); + new File(getPath("InputXpathConstantNameCamelCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -76,7 +76,7 @@ public void testCamelCase() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionConstantNameCamelCase']]" + + "[./IDENT[@text='InputXpathConstantNameCamelCase']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='badConstant']" ); @@ -87,7 +87,7 @@ public void testCamelCase() throws Exception { @Test public void testWithBeginningUnderscore() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionConstantNameWithBeginningUnderscore.java")); + getPath("InputXpathConstantNameWithBeginningUnderscore.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -97,7 +97,7 @@ public void testWithBeginningUnderscore() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionConstantNameWithBeginningUnderscore']]" + + "[@text='InputXpathConstantNameWithBeginningUnderscore']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='_CONSTANT']" ); @@ -108,7 +108,7 @@ public void testWithBeginningUnderscore() throws Exception { @Test public void testWithTwoUnderscores() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionConstantNameWithTwoUnderscores.java")); + getPath("InputXpathConstantNameWithTwoUnderscores.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -118,7 +118,7 @@ public void testWithTwoUnderscores() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionConstantNameWithTwoUnderscores']]" + + "[@text='InputXpathConstantNameWithTwoUnderscores']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='BAD__NAME']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionConstructorsDeclarationGroupingTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionConstructorsDeclarationGroupingTest.java new file mode 100644 index 00000000000..6d054d2388c --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionConstructorsDeclarationGroupingTest.java @@ -0,0 +1,138 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.ConstructorsDeclarationGroupingCheck; + +public class XpathRegressionConstructorsDeclarationGroupingTest extends AbstractXpathTestSupport { + + private final Class clazz = + ConstructorsDeclarationGroupingCheck.class; + + @Override + protected String getCheckName() { + return clazz.getSimpleName(); + } + + @Test + public void testClass() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathConstructorsDeclarationGroupingClass.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(clazz); + + final String[] expectedViolation = { + "10:5: " + getCheckMessage(clazz, + ConstructorsDeclarationGroupingCheck.MSG_KEY, 6), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingClass']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingClass']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingClass']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingClass']]" + + "/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingClass']]" + + "/OBJBLOCK/CTOR_DEF/IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingClass']" + + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testEnum() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathConstructorsDeclarationGroupingEnum.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(clazz); + + final String[] expectedViolation = { + "12:5: " + getCheckMessage(clazz, + ConstructorsDeclarationGroupingCheck.MSG_KEY, 8), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/ENUM_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingEnum']]" + + "/OBJBLOCK/CTOR_DEF" + + "[./IDENT[@text='InputXpathConstructorsDeclarationGroupingEnum']]", + + "/COMPILATION_UNIT/ENUM_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingEnum']]" + + "/OBJBLOCK/CTOR_DEF" + + "[./IDENT[@text='InputXpathConstructorsDeclarationGroupingEnum']]" + + "/MODIFIERS", + + "/COMPILATION_UNIT/ENUM_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingEnum']]" + + "/OBJBLOCK/CTOR_DEF/IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingEnum']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testRecords() throws Exception { + final File fileToProcess = new File( + getNonCompilablePath("InputXpathConstructorsDeclarationGroupingRecords.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(clazz); + + final String[] expectedViolation = { + "14:5: " + getCheckMessage(clazz, + ConstructorsDeclarationGroupingCheck.MSG_KEY, 8), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingRecords']]" + + "/OBJBLOCK/RECORD_DEF[./IDENT[@text='MyRecord']]" + + "/OBJBLOCK/COMPACT_CTOR_DEF[./IDENT[@text='MyRecord']]", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingRecords']]" + + "/OBJBLOCK/RECORD_DEF[./IDENT[@text='MyRecord']]" + + "/OBJBLOCK/COMPACT_CTOR_DEF[./IDENT[@text='MyRecord']]/MODIFIERS", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathConstructorsDeclarationGroupingRecords']]" + + "/OBJBLOCK/RECORD_DEF[./IDENT[@text='MyRecord']]" + + "/OBJBLOCK/COMPACT_CTOR_DEF[./IDENT[@text='MyRecord']]" + + "/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCovariantEqualsTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCovariantEqualsTest.java index 21e30330219..2029104a0b7 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCovariantEqualsTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCovariantEqualsTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testCovariantEqualsInClass() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCovariantEqualsInClass.java")); + new File(getPath("InputXpathCovariantEqualsInClass.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CovariantEqualsCheck.class); @@ -52,7 +52,7 @@ public void testCovariantEqualsInClass() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCovariantEqualsInClass']]" + + "[./IDENT[@text='InputXpathCovariantEqualsInClass']]" + "/OBJBLOCK/METHOD_DEF/IDENT[@text='equals']" ); @@ -63,7 +63,7 @@ public void testCovariantEqualsInClass() throws Exception { @Test public void testCovariantEqualsInEnum() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCovariantEqualsInEnum.java")); + new File(getPath("InputXpathCovariantEqualsInEnum.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CovariantEqualsCheck.class); @@ -75,7 +75,7 @@ public void testCovariantEqualsInEnum() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/ENUM_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCovariantEqualsInEnum']]" + + "[./IDENT[@text='InputXpathCovariantEqualsInEnum']]" + "/OBJBLOCK/METHOD_DEF/IDENT[@text='equals']"); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -86,7 +86,7 @@ public void testCovariantEqualsInEnum() throws Exception { public void testCovariantEqualsInRecord() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionCovariantEqualsInRecord.java")); + "InputXpathCovariantEqualsInRecord.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CovariantEqualsCheck.class); @@ -98,7 +98,7 @@ public void testCovariantEqualsInRecord() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/RECORD_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCovariantEqualsInRecord']]" + + "[./IDENT[@text='InputXpathCovariantEqualsInRecord']]" + "/OBJBLOCK/METHOD_DEF/IDENT[@text='equals']"); runVerifications(moduleConfig, fileToProcess, expectedViolation, diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCustomImportOrderTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCustomImportOrderTest.java index cc7ddc77497..24f8b28bd79 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCustomImportOrderTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCustomImportOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCustomImportOrderOne.java")); + new File(getPath("InputXpathCustomImportOrderOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CustomImportOrderCheck.class); @@ -64,7 +64,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCustomImportOrderTwo.java")); + new File(getPath("InputXpathCustomImportOrderTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CustomImportOrderCheck.class); @@ -86,7 +86,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCustomImportOrderThree.java")); + new File(getPath("InputXpathCustomImportOrderThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CustomImportOrderCheck.class); @@ -108,7 +108,7 @@ public void testThree() throws Exception { @Test public void testFour() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCustomImportOrderFour.java")); + new File(getPath("InputXpathCustomImportOrderFour.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CustomImportOrderCheck.class); @@ -131,7 +131,7 @@ public void testFour() throws Exception { @Test public void testFive() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCustomImportOrderFive.java")); + new File(getPath("InputXpathCustomImportOrderFive.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CustomImportOrderCheck.class); @@ -154,7 +154,7 @@ public void testFive() throws Exception { @Test public void testSix() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCustomImportOrderSix.java")); + new File(getPath("InputXpathCustomImportOrderSix.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CustomImportOrderCheck.class); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCyclomaticComplexityTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCyclomaticComplexityTest.java index 164c8bf8cb0..185ec51f9fd 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCyclomaticComplexityTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionCyclomaticComplexityTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,10 +38,10 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testConditionals() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCyclomaticComplexityOne.java")); + new File(getPath("InputXpathCyclomaticComplexityConditionals.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CyclomaticComplexityCheck.class); @@ -54,13 +54,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCyclomaticComplexityOne']]" + + "[./IDENT[@text='InputXpathCyclomaticComplexityConditionals']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCyclomaticComplexityOne']]" + + "[./IDENT[@text='InputXpathCyclomaticComplexityConditionals']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCyclomaticComplexityOne']]" + + "[./IDENT[@text='InputXpathCyclomaticComplexityConditionals']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -69,9 +69,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testSwitchBlock() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionCyclomaticComplexityTwo.java")); + new File(getPath("InputXpathCyclomaticComplexitySwitchBlock.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CyclomaticComplexityCheck.class); @@ -84,13 +84,13 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCyclomaticComplexityTwo']]" + + "[./IDENT[@text='InputXpathCyclomaticComplexitySwitchBlock']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo2']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCyclomaticComplexityTwo']]" + + "[./IDENT[@text='InputXpathCyclomaticComplexitySwitchBlock']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo2']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionCyclomaticComplexityTwo']]" + + "[./IDENT[@text='InputXpathCyclomaticComplexitySwitchBlock']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo2']]/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionDeclarationOrderTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionDeclarationOrderTest.java index f82e1149182..a6ee5c07cd0 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionDeclarationOrderTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionDeclarationOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testNonStatic() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionDeclarationOrderOne.java")); + new File(getPath("InputXpathDeclarationOrderNonStatic.java")); final DefaultConfiguration moduleConfig = createModuleConfig(DeclarationOrderCheck.class); @@ -52,13 +52,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionDeclarationOrderOne']]" + + "[./IDENT[@text='InputXpathDeclarationOrderNonStatic']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='name']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionDeclarationOrderOne']]" + + "[./IDENT[@text='InputXpathDeclarationOrderNonStatic']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='name']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionDeclarationOrderOne']]" + + "[./IDENT[@text='InputXpathDeclarationOrderNonStatic']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='name']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -67,9 +67,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testStatic() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionDeclarationOrderTwo.java")); + new File(getPath("InputXpathDeclarationOrderStatic.java")); final DefaultConfiguration moduleConfig = createModuleConfig(DeclarationOrderCheck.class); @@ -81,13 +81,13 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionDeclarationOrderTwo']]" + + "[./IDENT[@text='InputXpathDeclarationOrderStatic']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='MAX']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionDeclarationOrderTwo']]" + + "[./IDENT[@text='InputXpathDeclarationOrderStatic']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='MAX']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionDeclarationOrderTwo']]" + + "[./IDENT[@text='InputXpathDeclarationOrderStatic']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='MAX']]/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionDefaultComesLastTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionDefaultComesLastTest.java index 3a52491eb56..0891f104119 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionDefaultComesLastTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionDefaultComesLastTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testNonEmptyCase() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionDefaultComesLastOne.java")); + new File(getPath("InputXpathDefaultComesLastNonEmptyCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(DefaultComesLastCheck.class); @@ -53,11 +53,11 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionDefaultComesLastOne']]/OBJBLOCK" + + "[@text='InputXpathDefaultComesLastNonEmptyCase']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_SWITCH/CASE_GROUP[" + "./SLIST/EXPR/ASSIGN/IDENT[@text='id']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionDefaultComesLastOne']]/OBJBLOCK" + + "[@text='InputXpathDefaultComesLastNonEmptyCase']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_SWITCH/CASE_GROUP" + "/LITERAL_DEFAULT" ); @@ -67,9 +67,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testEmptyCase() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionDefaultComesLastTwo.java")); + new File(getPath("InputXpathDefaultComesLastEmptyCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(DefaultComesLastCheck.class); @@ -82,7 +82,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionDefaultComesLastTwo']]/OBJBLOCK" + + "[@text='InputXpathDefaultComesLastEmptyCase']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_SWITCH/CASE_GROUP" + "/LITERAL_DEFAULT" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyBlockTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyBlockTest.java index 1c95b4622b9..2cd42ebaf2c 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyBlockTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyBlockTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,7 +39,7 @@ protected String getCheckName() { @Test public void testEmptyForLoopEmptyBlock() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionEmptyBlockEmpty.java")); + new File(getPath("InputXpathEmptyBlockEmpty.java")); final DefaultConfiguration moduleConfig = createModuleConfig(EmptyBlockCheck.class); moduleConfig.addProperty("option", "TEXT"); @@ -49,7 +49,7 @@ public void testEmptyForLoopEmptyBlock() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionEmptyBlockEmpty']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathEmptyBlockEmpty']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='emptyLoop']]" + "/SLIST/LITERAL_FOR/SLIST" ); @@ -60,7 +60,7 @@ public void testEmptyForLoopEmptyBlock() throws Exception { @Test public void testEmptyForLoopEmptyStatement() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionEmptyBlockEmpty.java")); + new File(getPath("InputXpathEmptyBlockEmpty.java")); final DefaultConfiguration moduleConfig = createModuleConfig(EmptyBlockCheck.class); final String[] expectedViolation = { @@ -69,7 +69,7 @@ public void testEmptyForLoopEmptyStatement() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionEmptyBlockEmpty']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathEmptyBlockEmpty']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='emptyLoop']]" + "/SLIST/LITERAL_FOR/SLIST" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyCatchBlockTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyCatchBlockTest.java index e26bc3190c2..6b08ddc02b0 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyCatchBlockTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyCatchBlockTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyCatchBlock1.java")); + getPath("InputXpathEmptyCatchBlockOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -51,7 +51,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyCatchBlock1']]" + + "[./IDENT[@text='InputXpathEmptyCatchBlockOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='main']]" + "/SLIST/LITERAL_TRY/LITERAL_CATCH/SLIST" ); @@ -62,7 +62,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyCatchBlock2.java")); + getPath("InputXpathEmptyCatchBlockTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -72,7 +72,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyCatchBlock2']]" + + "[./IDENT[@text='InputXpathEmptyCatchBlockTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='main']]" + "/SLIST/LITERAL_TRY/LITERAL_CATCH/SLIST" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyForInitializerPadTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyForInitializerPadTest.java index e04ef88d854..6806f0f2eb6 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyForInitializerPadTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyForInitializerPadTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testPreceded() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyForInitializerPadPreceded.java")); + getPath("InputXpathEmptyForInitializerPadPreceded.java")); final DefaultConfiguration moduleConfig = createModuleConfig(EmptyForInitializerPadCheck.class); @@ -53,10 +53,10 @@ public void testPreceded() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyForInitializerPadPreceded']]" + + "[./IDENT[@text='InputXpathEmptyForInitializerPadPreceded']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_FOR/FOR_INIT", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyForInitializerPadPreceded']]" + + "[./IDENT[@text='InputXpathEmptyForInitializerPadPreceded']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_FOR/SEMI[1]" ); @@ -67,7 +67,7 @@ public void testPreceded() throws Exception { @Test public void testNotPreceded() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyForInitializerPadNotPreceded.java")); + getPath("InputXpathEmptyForInitializerPadNotPreceded.java")); final DefaultConfiguration moduleConfig = createModuleConfig(EmptyForInitializerPadCheck.class); @@ -80,10 +80,10 @@ public void testNotPreceded() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionEmptyForInitializerPadNotPreceded']]" + + "@text='InputXpathEmptyForInitializerPadNotPreceded']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_FOR/FOR_INIT", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionEmptyForInitializerPadNotPreceded']]" + + "@text='InputXpathEmptyForInitializerPadNotPreceded']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_FOR/SEMI[1]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyForIteratorPadTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyForIteratorPadTest.java index 99b4048c89b..0e22571d42c 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyForIteratorPadTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyForIteratorPadTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testFollowed() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionEmptyForIteratorPadFollowed.java")); + new File(getPath("InputXpathEmptyForIteratorPadFollowed.java")); final DefaultConfiguration moduleConfig = createModuleConfig(EmptyForIteratorPadCheck.class); @@ -53,10 +53,10 @@ public void testFollowed() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionEmptyForIteratorPadFollowed']]/OBJBLOCK" + + "@text='InputXpathEmptyForIteratorPadFollowed']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_FOR/FOR_ITERATOR", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionEmptyForIteratorPadFollowed']]/OBJBLOCK" + + "@text='InputXpathEmptyForIteratorPadFollowed']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_FOR/RPAREN" ); @@ -67,7 +67,7 @@ public void testFollowed() throws Exception { @Test public void testNotFollowed() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionEmptyForIteratorPadNotFollowed.java")); + new File(getPath("InputXpathEmptyForIteratorPadNotFollowed.java")); final DefaultConfiguration moduleConfig = createModuleConfig(EmptyForIteratorPadCheck.class); @@ -80,10 +80,10 @@ public void testNotFollowed() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionEmptyForIteratorPadNotFollowed']]/OBJBLOCK" + + "@text='InputXpathEmptyForIteratorPadNotFollowed']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_FOR/FOR_ITERATOR", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionEmptyForIteratorPadNotFollowed']]/OBJBLOCK" + + "@text='InputXpathEmptyForIteratorPadNotFollowed']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_FOR/RPAREN" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyLineSeparatorTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyLineSeparatorTest.java index ea4e149f93a..52c1d88a4f6 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyLineSeparatorTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyLineSeparatorTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,7 +39,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyLineSeparator1.java") + getPath("InputXpathEmptyLineSeparatorOne.java") ); final DefaultConfiguration moduleConfig = @@ -61,7 +61,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyLineSeparator2.java") + getPath("InputXpathEmptyLineSeparatorTwo.java") ); final DefaultConfiguration moduleConfig = @@ -83,7 +83,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyLineSeparator3.java") + getPath("InputXpathEmptyLineSeparatorThree.java") ); final DefaultConfiguration moduleConfig = @@ -97,16 +97,16 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyLineSeparator3']]" + + "[./IDENT[@text='InputXpathEmptyLineSeparatorThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyLineSeparator3']]" + + "[./IDENT[@text='InputXpathEmptyLineSeparatorThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyLineSeparator3']]" + + "[./IDENT[@text='InputXpathEmptyLineSeparatorThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]" + "/MODIFIERS/LITERAL_PUBLIC" ); @@ -117,7 +117,7 @@ public void testThree() throws Exception { @Test public void testFour() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyLineSeparator4.java") + getPath("InputXpathEmptyLineSeparatorFour.java") ); final DefaultConfiguration moduleConfig = @@ -131,7 +131,7 @@ public void testFour() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyLineSeparator4']]" + + "[./IDENT[@text='InputXpathEmptyLineSeparatorFour']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]/SLIST/RCURLY" ); @@ -141,7 +141,7 @@ public void testFour() throws Exception { @Test public void testFive() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEmptyLineSeparator5.java") + getPath("InputXpathEmptyLineSeparatorFive.java") ); final DefaultConfiguration moduleConfig = @@ -156,7 +156,7 @@ public void testFive() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionEmptyLineSeparator5']]" + + "[./IDENT[@text='InputXpathEmptyLineSeparatorFive']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo1']]/SLIST/LITERAL_TRY/SLIST" + "/SINGLE_LINE_COMMENT/COMMENT_CONTENT[@text=' warn\\n']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyStatementTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyStatementTest.java index 593ede78668..9f4d38731cb 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyStatementTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEmptyStatementTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testForLoopEmptyStatement() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionEmptyStatement1.java")); + new File(getPath("InputXpathEmptyStatementLoops.java")); final DefaultConfiguration moduleConfig = createModuleConfig(EmptyStatementCheck.class); final String[] expectedViolation = { @@ -48,7 +48,7 @@ public void testForLoopEmptyStatement() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionEmptyStatement1']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathEmptyStatementLoops']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/LITERAL_FOR/EMPTY_STAT" ); @@ -59,7 +59,7 @@ public void testForLoopEmptyStatement() throws Exception { @Test public void testIfBlockEmptyStatement() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionEmptyStatement2.java")); + new File(getPath("InputXpathEmptyStatementConditionals.java")); final DefaultConfiguration moduleConfig = createModuleConfig(EmptyStatementCheck.class); final String[] expectedViolation = { @@ -67,7 +67,7 @@ public void testIfBlockEmptyStatement() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionEmptyStatement2']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathEmptyStatementConditionals']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/LITERAL_IF/EMPTY_STAT" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEqualsAvoidNullTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEqualsAvoidNullTest.java index 38ce994e931..6417509dde8 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEqualsAvoidNullTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEqualsAvoidNullTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testEquals() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEqualsAvoidNull.java")); + getPath("InputXpathEqualsAvoidNull.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -51,10 +51,10 @@ public void testEquals() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionEqualsAvoidNull']]" + + "[@text='InputXpathEqualsAvoidNull']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/EXPR", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionEqualsAvoidNull']]" + + "[@text='InputXpathEqualsAvoidNull']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/EXPR/METHOD_CALL"); runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); @@ -63,7 +63,7 @@ public void testEquals() throws Exception { @Test public void testEqualsIgnoreCase() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionEqualsAvoidNullIgnoreCase.java")); + getPath("InputXpathEqualsAvoidNullIgnoreCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -74,10 +74,10 @@ public void testEqualsIgnoreCase() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionEqualsAvoidNullIgnoreCase']]" + + "[@text='InputXpathEqualsAvoidNullIgnoreCase']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/EXPR", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionEqualsAvoidNullIgnoreCase']]" + + "[@text='InputXpathEqualsAvoidNullIgnoreCase']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/EXPR/METHOD_CALL"); runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEqualsHashCodeTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEqualsHashCodeTest.java new file mode 100644 index 00000000000..c7def594c13 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionEqualsHashCodeTest.java @@ -0,0 +1,121 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheck; + +public class XpathRegressionEqualsHashCodeTest extends AbstractXpathTestSupport { + @Override + protected String getCheckName() { + return EqualsHashCodeCheck.class.getSimpleName(); + } + + @Test + public void testEqualsOnly() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathEqualsHashCodeEqualsOnly.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(EqualsHashCodeCheck.class); + + final String[] expectedViolation = { + "4:5: " + getCheckMessage(EqualsHashCodeCheck.class, + EqualsHashCodeCheck.MSG_KEY_HASHCODE), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeEqualsOnly']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeEqualsOnly']]/OBJBLOCK/" + + "METHOD_DEF[./IDENT[@text='equals']]/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeEqualsOnly']]/OBJBLOCK/" + + "METHOD_DEF[./IDENT[@text='equals']]/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testHashCodeOnly() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathEqualsHashCodeHashCodeOnly.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(EqualsHashCodeCheck.class); + + final String[] expectedViolation = { + "4:5: " + getCheckMessage(EqualsHashCodeCheck.class, + EqualsHashCodeCheck.MSG_KEY_EQUALS), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeHashCodeOnly']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='hashCode']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeHashCodeOnly']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='hashCode']]/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeHashCodeOnly']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='hashCode']]/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testNestedCase() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathEqualsHashCodeNestedCase.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(EqualsHashCodeCheck.class); + + final String[] expectedViolation = { + "5:9: " + getCheckMessage(EqualsHashCodeCheck.class, + EqualsHashCodeCheck.MSG_KEY_HASHCODE), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeNestedCase']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='innerClass']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeNestedCase']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='innerClass']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathEqualsHashCodeNestedCase']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='innerClass']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]" + + "/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionExecutableStatementCountTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionExecutableStatementCountTest.java new file mode 100644 index 00000000000..4be48e8325c --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionExecutableStatementCountTest.java @@ -0,0 +1,134 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.sizes.ExecutableStatementCountCheck.MSG_KEY; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.sizes.ExecutableStatementCountCheck; + +public class XpathRegressionExecutableStatementCountTest extends AbstractXpathTestSupport { + + @Override + protected String getCheckName() { + return ExecutableStatementCountCheck.class.getSimpleName(); + } + + @Test + public void testDefaultConfig() throws Exception { + final String filePath = + getPath("InputXpathExecutableStatementCountDefault.java"); + final File fileToProcess = new File(filePath); + + final DefaultConfiguration moduleConfig = + createModuleConfig(ExecutableStatementCountCheck.class); + + moduleConfig.addProperty("max", "0"); + + final String[] expectedViolations = { + "4:5: " + getCheckMessage(ExecutableStatementCountCheck.class, MSG_KEY, 3, 0), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountDefault']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='ElseIfLadder']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountDefault']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='ElseIfLadder']]" + + "/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountDefault']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='ElseIfLadder']]" + + "/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + + } + + @Test + public void testCustomMax() throws Exception { + final String filePath = + getPath("InputXpathExecutableStatementCountCustomMax.java"); + final File fileToProcess = new File(filePath); + + final DefaultConfiguration moduleConfig = + createModuleConfig(ExecutableStatementCountCheck.class); + + moduleConfig.addProperty("max", "0"); + moduleConfig.addProperty("tokens", "CTOR_DEF"); + + final String[] expectedViolations = { + "4:5: " + getCheckMessage(ExecutableStatementCountCheck.class, MSG_KEY, 2, 0), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountCustomMax']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountCustomMax']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountCustomMax']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountCustomMax']]" + + "/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountCustomMax']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathExecutableStatementCountCustomMax']]" + + "/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testLambdas() throws Exception { + final String filePath = + getPath("InputXpathExecutableStatementCountLambdas.java"); + final File fileToProcess = new File(filePath); + + final DefaultConfiguration moduleConfig = + createModuleConfig(ExecutableStatementCountCheck.class); + + moduleConfig.addProperty("max", "1"); + moduleConfig.addProperty("tokens", "LAMBDA"); + + final String[] expectedViolations = { + "7:22: " + getCheckMessage(ExecutableStatementCountCheck.class, MSG_KEY, 2, 1), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathExecutableStatementCountLambdas']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='c']]/ASSIGN/LAMBDA" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionExplicitInitializationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionExplicitInitializationTest.java index 48cfdc88cf4..c95696cf7d4 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionExplicitInitializationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionExplicitInitializationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testPrimitiveType() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionExplicitInitializationOne.java")); + new File(getPath("InputXpathExplicitInitializationPrimitiveType.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ExplicitInitializationCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionExplicitInitializationOne']]" + + "[./IDENT[@text='InputXpathExplicitInitializationPrimitiveType']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='a']" ); @@ -61,9 +61,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testObjectType() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionExplicitInitializationTwo.java")); + new File(getPath("InputXpathExplicitInitializationObjectType.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ExplicitInitializationCheck.class); @@ -75,7 +75,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionExplicitInitializationTwo']]" + + "[./IDENT[@text='InputXpathExplicitInitializationObjectType']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='bar']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFallThroughTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFallThroughTest.java index c773982bf69..592814097e4 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFallThroughTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFallThroughTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testFallThrough() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionFallThroughOne.java")); + new File(getPath("InputXpathFallThrough.java")); final DefaultConfiguration moduleConfig = createModuleConfig(FallThroughCheck.class); @@ -51,11 +51,11 @@ public void testOne() throws Exception { }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionFallThroughOne']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathFallThrough']]" + "/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_SWITCH/CASE_GROUP[" + "./LITERAL_CASE/EXPR/NUM_INT[@text='2']]", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionFallThroughOne']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathFallThrough']]" + "/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_SWITCH/CASE_GROUP/LITERAL_CASE" ); @@ -65,9 +65,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testDefaultCase() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionFallThroughTwo.java")); + new File(getPath("InputXpathFallThroughDefaultCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(FallThroughCheck.class); @@ -79,11 +79,11 @@ public void testTwo() throws Exception { }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionFallThroughTwo']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathFallThroughDefaultCase']]" + "/OBJBLOCK/METHOD_DEF[" + "./IDENT[@text='methodFallThruCustomWords']]/SLIST/LITERAL_WHILE/SLIST" + "/LITERAL_SWITCH/CASE_GROUP[./SLIST/EXPR/POST_INC/IDENT[@text='i']]", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionFallThroughTwo']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathFallThroughDefaultCase']]" + "/OBJBLOCK/METHOD_DEF[" + "./IDENT[@text='methodFallThruCustomWords']]/SLIST/LITERAL_WHILE/SLIST" + "/LITERAL_SWITCH/CASE_GROUP/LITERAL_DEFAULT" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalClassTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalClassTest.java index b10d5d101c0..98373ba9592 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalClassTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalClassTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -37,25 +37,25 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionFinalClass1.java")); + "InputXpathFinalClassDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(FinalClassCheck.class); final String[] expectedViolation = { "3:1: " + getCheckMessage(FinalClassCheck.class, - FinalClassCheck.MSG_KEY, "SuppressionXpathRegressionFinalClass1"), + FinalClassCheck.MSG_KEY, "InputXpathFinalClassDefault"), }; final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionFinalClass1']]", + + "@text='InputXpathFinalClassDefault']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionFinalClass1']]/MODIFIERS", + + "@text='InputXpathFinalClassDefault']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionFinalClass1']]/MODIFIERS/LITERAL_PUBLIC" + + "@text='InputXpathFinalClassDefault']]/MODIFIERS/LITERAL_PUBLIC" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -63,9 +63,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testInnerClass() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionFinalClass2.java")); + "InputXpathFinalClassInnerClass.java")); final DefaultConfiguration moduleConfig = createModuleConfig(FinalClassCheck.class); @@ -77,13 +77,13 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionFinalClass2']]" + + "@text='InputXpathFinalClassInnerClass']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionFinalClass2']]" + + "@text='InputXpathFinalClassInnerClass']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionFinalClass2']]" + + "@text='InputXpathFinalClassInnerClass']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]/LITERAL_CLASS" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalLocalVariableTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalLocalVariableTest.java new file mode 100644 index 00000000000..3173b554d63 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalLocalVariableTest.java @@ -0,0 +1,243 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck; + +public class XpathRegressionFinalLocalVariableTest extends AbstractXpathTestSupport { + + private final String checkName = FinalLocalVariableCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testMethodDef() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableMethodDef.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + + final String[] expectedViolation = { + "5:13: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "x"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalLocalVariableMethodDef']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testMethod']]" + + "/SLIST/VARIABLE_DEF/IDENT[@text='x']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testForLoop() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableForLoop.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + + final String[] expectedViolation = { + "6:17: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "x"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalLocalVariableForLoop']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method2']]/SLIST/" + + "LITERAL_FOR/SLIST/VARIABLE_DEF/IDENT[@text='x']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testSwitchCase() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableSwitchCase.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + + final String[] expectedViolation = { + "8:25: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "foo"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalLocalVariableSwitchCase']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/" + + "LITERAL_SWITCH/CASE_GROUP/SLIST/VARIABLE_DEF/IDENT[@text='foo']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testInnerClass() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableInnerClass.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + + final String[] expectedViolation = { + "7:17: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "shouldBeFinal"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalLocalVariableInnerClass']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test1']]" + + "/SLIST/VARIABLE_DEF/IDENT[@text='shouldBeFinal']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testParameterDef() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableParameterDef.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + moduleConfig.addProperty("tokens", "PARAMETER_DEF"); + + final String[] expectedViolation = { + "4:28: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "aArg"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalLocalVariableParameterDef']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/PARAMETERS/PARAMETER_DEF/IDENT[@text='aArg']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testEnhancedFor() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableEnhancedFor.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + moduleConfig.addProperty("validateEnhancedForLoopVariable", "true"); + + final String[] expectedViolation = { + "8:20: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "a"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathFinalLocalVariableEnhancedFor']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method1']]" + + "/SLIST/LITERAL_FOR/FOR_EACH_CLAUSE/VARIABLE_DEF/IDENT[@text='a']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testCtor() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableCtor.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + moduleConfig.addProperty("tokens", "PARAMETER_DEF"); + + final String[] expectedViolation = { + "4:42: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "a"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathFinalLocalVariableCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathFinalLocalVariableCtor']]" + + "/PARAMETERS/PARAMETER_DEF/IDENT[@text='a']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testTryBlock() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableTryBlock.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + + final String[] expectedViolation = { + "6:17: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "start"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalLocalVariableTryBlock']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='checkCodeBlock']]" + + "/SLIST/LITERAL_TRY/SLIST/VARIABLE_DEF/IDENT[@text='start']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testConditionals() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathFinalLocalVariableConditionals.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(FinalLocalVariableCheck.class); + + final String[] expectedViolation = { + "11:25: " + getCheckMessage(FinalLocalVariableCheck.class, + FinalLocalVariableCheck.MSG_KEY, "body"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathFinalLocalVariableConditionals']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='checkCodeBlock']]/SLIST/LITERAL_TRY" + + "/SLIST/LITERAL_IF/LITERAL_ELSE/LITERAL_IF" + + "/SLIST/VARIABLE_DEF/IDENT[@text='body']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalParametersTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalParametersTest.java new file mode 100644 index 00000000000..baa3d9970b4 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionFinalParametersTest.java @@ -0,0 +1,190 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck; + +public class XpathRegressionFinalParametersTest extends AbstractXpathTestSupport { + + private final String checkName = FinalParametersCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testMethod() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathFinalParametersMethod.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(FinalParametersCheck.class); + + final String[] expectedViolation = { + "5:24: " + getCheckMessage(FinalParametersCheck.class, + FinalParametersCheck.MSG_KEY, "argOne"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersMethod']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/PARAMETERS", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersMethod']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='argOne']]", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersMethod']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='argOne']]/MODIFIERS", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersMethod']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='argOne']]/TYPE", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersMethod']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='argOne']]/TYPE/LITERAL_INT" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testCtor() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathFinalParametersCtor.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(FinalParametersCheck.class); + + moduleConfig.addProperty("tokens", "CTOR_DEF"); + + final String[] expectedViolation = { + "5:42: " + getCheckMessage(FinalParametersCheck.class, + FinalParametersCheck.MSG_KEY, "argOne"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathFinalParametersCtor']]" + + "/PARAMETERS", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathFinalParametersCtor']]" + + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='argOne']]", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathFinalParametersCtor']]" + + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='argOne']]/MODIFIERS", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathFinalParametersCtor']]" + + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='argOne']]/TYPE", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathFinalParametersCtor']]" + + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='argOne']]/TYPE/LITERAL_INT" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testAnonymous() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathFinalParametersAnonymous.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(FinalParametersCheck.class); + + moduleConfig.addProperty("ignorePrimitiveTypes", "true"); + + final String[] expectedViolation = { + "11:32: " + getCheckMessage(FinalParametersCheck.class, + FinalParametersCheck.MSG_KEY, "argOne"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersAnonymous']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='createClass']]/SLIST/" + + "VARIABLE_DEF[./IDENT[@text='obj']]/ASSIGN/EXPR" + + "/LITERAL_NEW[./IDENT[@text='AnonymousClass']]/OBJBLOCK" + + "/METHOD_DEF[./IDENT[@text='method']]/PARAMETERS", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersAnonymous']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='createClass']]/SLIST/" + + "VARIABLE_DEF[./IDENT[@text='obj']]/ASSIGN/EXPR" + + "/LITERAL_NEW[./IDENT[@text='AnonymousClass']]/OBJBLOCK" + + "/METHOD_DEF[./IDENT[@text='method']]/PARAMETERS" + + "/PARAMETER_DEF[./IDENT[@text='argOne']]", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersAnonymous']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='createClass']]/SLIST/" + + "VARIABLE_DEF[./IDENT[@text='obj']]/ASSIGN/EXPR" + + "/LITERAL_NEW[./IDENT[@text='AnonymousClass']]/OBJBLOCK" + + "/METHOD_DEF[./IDENT[@text='method']]/PARAMETERS" + + "/PARAMETER_DEF[./IDENT[@text='argOne']]/MODIFIERS", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersAnonymous']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='createClass']]/SLIST/" + + "VARIABLE_DEF[./IDENT[@text='obj']]/ASSIGN/EXPR" + + "/LITERAL_NEW[./IDENT[@text='AnonymousClass']]/OBJBLOCK" + + "/METHOD_DEF[./IDENT[@text='method']]/PARAMETERS" + + "/PARAMETER_DEF[./IDENT[@text='argOne']]/TYPE[./IDENT[@text='String']]", + + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathFinalParametersAnonymous']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='createClass']]/SLIST/" + + "VARIABLE_DEF[./IDENT[@text='obj']]/ASSIGN/EXPR" + + "/LITERAL_NEW[./IDENT[@text='AnonymousClass']]/OBJBLOCK" + + "/METHOD_DEF[./IDENT[@text='method']]/PARAMETERS" + + "/PARAMETER_DEF[./IDENT[@text='argOne']]/TYPE/IDENT[@text='String']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionGenericWhitespaceTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionGenericWhitespaceTest.java index 22b86a9cae1..796325a6412 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionGenericWhitespaceTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionGenericWhitespaceTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testProcessEnd() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceEnd.java")); + getPath("InputXpathGenericWhitespaceEnd.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -53,7 +53,7 @@ public void testProcessEnd() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionGenericWhitespaceEnd']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathGenericWhitespaceEnd']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='bad']]" + "/PARAMETERS/PARAMETER_DEF[./IDENT[@text='cls']]" + "/TYPE[./IDENT[@text='Class']]/TYPE_ARGUMENTS/GENERIC_END" @@ -66,7 +66,7 @@ public void testProcessEnd() throws Exception { @Test public void testProcessNestedGenericsOne() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceNestedGenericsOne.java")); + getPath("InputXpathGenericWhitespaceNestedOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -78,7 +78,7 @@ public void testProcessNestedGenericsOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionGenericWhitespaceNestedGenericsOne']]" + + "@text='InputXpathGenericWhitespaceNestedOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/TYPE_PARAMETERS" + "/TYPE_PARAMETER[./IDENT[@text='E']]" + "/TYPE_UPPER_BOUNDS[./IDENT[@text='Enum']]/TYPE_ARGUMENTS/GENERIC_END" @@ -91,7 +91,7 @@ public void testProcessNestedGenericsOne() throws Exception { @Test public void testProcessNestedGenericsTwo() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceNestedGenericsTwo.java")); + getPath("InputXpathGenericWhitespaceNestedTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -103,7 +103,7 @@ public void testProcessNestedGenericsTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionGenericWhitespaceNestedGenericsTwo']]" + + "@text='InputXpathGenericWhitespaceNestedTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/TYPE_PARAMETERS" + "/TYPE_PARAMETER[./IDENT[@text='E']]" + "/TYPE_UPPER_BOUNDS[./IDENT[@text='Enum']]/TYPE_ARGUMENTS/GENERIC_END" @@ -116,7 +116,7 @@ public void testProcessNestedGenericsTwo() throws Exception { @Test public void testProcessNestedGenericsThree() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceNestedGenericsThree.java")); + getPath("InputXpathGenericWhitespaceNestedThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -128,7 +128,7 @@ public void testProcessNestedGenericsThree() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionGenericWhitespaceNestedGenericsThree']]" + + "@text='InputXpathGenericWhitespaceNestedThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/TYPE_PARAMETERS" + "/TYPE_PARAMETER[./IDENT[@text='E']]" + "/TYPE_UPPER_BOUNDS[./IDENT[@text='Enum']]/TYPE_ARGUMENTS/GENERIC_END" @@ -141,7 +141,7 @@ public void testProcessNestedGenericsThree() throws Exception { @Test public void testProcessSingleGenericOne() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceSingleGenericOne.java")); + getPath("InputXpathGenericWhitespaceSingleOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -153,7 +153,7 @@ public void testProcessSingleGenericOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionGenericWhitespaceSingleGenericOne']]" + + "@text='InputXpathGenericWhitespaceSingleOne']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR/METHOD_CALL" + "/DOT[./IDENT[@text='Collections']]" + "/TYPE_ARGUMENTS/GENERIC_END" @@ -166,7 +166,7 @@ public void testProcessSingleGenericOne() throws Exception { @Test public void testProcessSingleGenericTwo() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceSingleGenericTwo.java")); + getPath("InputXpathGenericWhitespaceSingleTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -178,7 +178,7 @@ public void testProcessSingleGenericTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionGenericWhitespaceSingleGenericTwo']]" + + "@text='InputXpathGenericWhitespaceSingleTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/TYPE_PARAMETERS/GENERIC_END" ); @@ -189,7 +189,7 @@ public void testProcessSingleGenericTwo() throws Exception { @Test public void testProcessStartOne() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceStartOne.java")); + getPath("InputXpathGenericWhitespaceStartOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -201,10 +201,10 @@ public void testProcessStartOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionGenericWhitespaceStartOne']]" + + "[@text='InputXpathGenericWhitespaceStartOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/TYPE_PARAMETERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionGenericWhitespaceStartOne']]" + + "[@text='InputXpathGenericWhitespaceStartOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/TYPE_PARAMETERS/GENERIC_START" ); @@ -215,7 +215,7 @@ public void testProcessStartOne() throws Exception { @Test public void testProcessStartTwo() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceStartTwo.java")); + getPath("InputXpathGenericWhitespaceStartTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -227,12 +227,12 @@ public void testProcessStartTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionGenericWhitespaceStartTwo']]" + + "[@text='InputXpathGenericWhitespaceStartTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/PARAMETERS" + "/PARAMETER_DEF[./IDENT[@text='consumer']]" + "/TYPE[./IDENT[@text='Consumer']]/TYPE_ARGUMENTS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionGenericWhitespaceStartTwo']]" + + "[@text='InputXpathGenericWhitespaceStartTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/PARAMETERS" + "/PARAMETER_DEF[./IDENT[@text='consumer']]" + "/TYPE[./IDENT[@text='Consumer']]/TYPE_ARGUMENTS/GENERIC_START" @@ -245,7 +245,7 @@ public void testProcessStartTwo() throws Exception { @Test public void testProcessStartThree() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionGenericWhitespaceStartThree.java")); + getPath("InputXpathGenericWhitespaceStartThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(GenericWhitespaceCheck.class); @@ -257,16 +257,16 @@ public void testProcessStartThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionGenericWhitespaceStartThree']]" + + "[@text='InputXpathGenericWhitespaceStartThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionGenericWhitespaceStartThree']]" + + "[@text='InputXpathGenericWhitespaceStartThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionGenericWhitespaceStartThree']]" + + "[@text='InputXpathGenericWhitespaceStartThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/TYPE_PARAMETERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionGenericWhitespaceStartThree']]" + + "[@text='InputXpathGenericWhitespaceStartThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bad']]/TYPE_PARAMETERS/GENERIC_START" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionHiddenFieldTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionHiddenFieldTest.java index ad5d6dae131..59e846a9279 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionHiddenFieldTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionHiddenFieldTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testLambdaExpInMethodCall() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionHiddenFieldOne.java")); + new File(getPath("InputXpathHiddenFieldLambdaExpInMethodCall.java")); final DefaultConfiguration moduleConfig = createModuleConfig(HiddenFieldCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionHiddenFieldOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathHiddenFieldLambdaExpInMethodCall']]/OBJBLOCK" + "/INSTANCE_INIT/SLIST/EXPR/METHOD_CALL/ELIST/LAMBDA/PARAMETERS" + "/PARAMETER_DEF/IDENT[@text='value']" ); @@ -62,9 +62,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testMethodParam() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionHiddenFieldTwo.java")); + new File(getPath("InputXpathHiddenFieldMethodParam.java")); final DefaultConfiguration moduleConfig = createModuleConfig(HiddenFieldCheck.class); @@ -76,7 +76,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionHiddenFieldTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathHiddenFieldMethodParam']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='method']]/PARAMETERS/PARAMETER_DEF" + "/IDENT[@text='other']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalCatchTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalCatchTest.java index b6452250ab1..75c5988f867 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalCatchTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalCatchTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalCatchOne.java")); + new File(getPath("InputXpathIllegalCatchOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalCatchCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIllegalCatchOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathIllegalCatchOne']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='fun']]/SLIST" + "/LITERAL_TRY/LITERAL_CATCH" ); @@ -64,7 +64,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalCatchTwo.java")); + new File(getPath("InputXpathIllegalCatchTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalCatchCheck.class); @@ -76,7 +76,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIllegalCatchTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathIllegalCatchTwo']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='methodTwo']]/SLIST" + "/LITERAL_TRY/LITERAL_CATCH" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalIdentifierNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalIdentifierNameTest.java index 5fc2d0dd1e3..63282740728 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalIdentifierNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalIdentifierNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionIllegalIdentifierNameTestOne.java")); + "InputXpathIllegalIdentifierNameOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalIdentifierNameCheck.class); @@ -55,7 +55,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/RECORD_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIllegalIdentifierNameTestOne'" + + "[./IDENT[@text='InputXpathIllegalIdentifierNameOne'" + "]]/RECORD_COMPONENTS/RECORD_COMPONENT_DEF/IDENT[@text='yield']" ); @@ -66,7 +66,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionIllegalIdentifierNameTestTwo.java")); + "InputXpathIllegalIdentifierNameTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalIdentifierNameCheck.class); @@ -80,7 +80,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIllegalIdentifierNameTestTwo']" + + "[./IDENT[@text='InputXpathIllegalIdentifierNameTwo']" + "]/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/PARAMETERS/PARAMETER_DEF" + "/IDENT[@text='yield']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalImportTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalImportTest.java index 22cab115cbf..ac8e5490479 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalImportTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalImportTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalImportOne.java")); + new File(getPath("InputXpathIllegalImportDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalImportCheck.class); moduleConfig.addProperty("illegalPkgs", "java.util"); @@ -57,9 +57,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testStatic() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalImportTwo.java")); + new File(getPath("InputXpathIllegalImportStatic.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalImportCheck.class); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalInstantiationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalInstantiationTest.java new file mode 100644 index 00000000000..90fd3c93a3b --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalInstantiationTest.java @@ -0,0 +1,128 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.coding.IllegalInstantiationCheck.MSG_KEY; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.IllegalInstantiationCheck; + +public class XpathRegressionIllegalInstantiationTest extends AbstractXpathTestSupport { + @Override + protected String getCheckName() { + return IllegalInstantiationCheck.class.getSimpleName(); + } + + @Test + public void testSimple() throws Exception { + final String fileName = "InputXpathIllegalInstantiationSimple.java"; + final File fileToProcess = new File(getNonCompilablePath(fileName)); + + final DefaultConfiguration moduleConfig = + createModuleConfig(IllegalInstantiationCheck.class); + moduleConfig.addProperty("classes", "java.lang.Boolean"); + + final String[] expectedViolation = { + "8:21: " + getCheckMessage(IllegalInstantiationCheck.class, MSG_KEY, + "java.lang.Boolean"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathIllegalInstantiationSimple']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/" + + "VARIABLE_DEF[./IDENT[@text='x']]/ASSIGN/EXPR", + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathIllegalInstantiationSimple']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/VARIABLE_DEF" + + "[./IDENT[@text='x']]/ASSIGN/EXPR/LITERAL_NEW[./IDENT[@text='Boolean']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testAnonymous() throws Exception { + final String fileName = "InputXpathIllegalInstantiationAnonymous.java"; + final File fileToProcess = new File(getNonCompilablePath(fileName)); + + final DefaultConfiguration moduleConfig = + createModuleConfig(IllegalInstantiationCheck.class); + moduleConfig.addProperty("classes", "java.lang.Integer"); + + final String[] expectedViolation = { + "10:25: " + getCheckMessage(IllegalInstantiationCheck.class, MSG_KEY, + "java.lang.Integer"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathIllegalInstantiationAnonymous']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]/OBJBLOCK/METHOD_DEF" + + "[./IDENT[@text='test']]/SLIST/VARIABLE_DEF[./IDENT[@text='e']]/ASSIGN/EXPR", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathIllegalInstantiationAnonymous']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]/OBJBLOCK/METHOD_DEF" + + "[./IDENT[@text='test']]/SLIST/VARIABLE_DEF[./IDENT[@text='e']]" + + "/ASSIGN/EXPR/LITERAL_NEW[./IDENT[@text='Integer']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testInterface() throws Exception { + final String fileName = "InputXpathIllegalInstantiationInterface.java"; + final File fileToProcess = new File(getNonCompilablePath(fileName)); + + final DefaultConfiguration moduleConfig = + createModuleConfig(IllegalInstantiationCheck.class); + moduleConfig.addProperty("classes", "java.lang.String"); + + final String[] expectedViolation = { + "10:24: " + getCheckMessage(IllegalInstantiationCheck.class, MSG_KEY, + "java.lang.String"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathIllegalInstantiationInterface']]" + + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Inner']]/" + + "OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/" + + "VARIABLE_DEF[./IDENT[@text='s']]/ASSIGN/EXPR", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathIllegalInstantiationInterface']]" + + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Inner']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/VARIABLE_DEF" + + "[./IDENT[@text='s']]/ASSIGN/EXPR/LITERAL_NEW[./IDENT[@text='String']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalThrowsTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalThrowsTest.java index d71a6f13595..da8feb51f90 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalThrowsTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalThrowsTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testRuntimeException() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalThrowsOne.java")); + new File(getPath("InputXpathIllegalThrowsRuntimeException.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalThrowsCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIllegalThrowsOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathIllegalThrowsRuntimeException']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='sayHello']]/LITERAL_THROWS" + "/IDENT[@text='RuntimeException']" ); @@ -62,9 +62,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testError() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalThrowsTwo.java")); + new File(getPath("InputXpathIllegalThrowsError.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalThrowsCheck.class); @@ -76,7 +76,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIllegalThrowsTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathIllegalThrowsError']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='methodTwo']]/LITERAL_THROWS" + "/DOT[./IDENT[@text='Error']]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTokenTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTokenTest.java index 92a87f290d9..beeff2252a4 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTokenTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTokenTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testLabel() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalToken1.java")); + new File(getPath("InputXpathIllegalTokenLabel.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); final String[] expectedViolation = { @@ -49,7 +49,7 @@ public void testOne() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionIllegalToken1']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathIllegalTokenLabel']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myTest']]" + "/SLIST/LABELED_STAT[./IDENT[@text='outer']]" ); @@ -59,9 +59,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testNative() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalToken2.java")); + new File(getPath("InputXpathIllegalTokenNative.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -73,7 +73,7 @@ public void testTwo() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionIllegalToken2']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathIllegalTokenNative']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myTest']]" + "/MODIFIERS/LITERAL_NATIVE" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTokenTextTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTokenTextTest.java new file mode 100644 index 00000000000..7f53a95c913 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTokenTextTest.java @@ -0,0 +1,119 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.IllegalTokenTextCheck; + +public class XpathRegressionIllegalTokenTextTest extends AbstractXpathTestSupport { + + private final String checkName = IllegalTokenTextCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testField() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathIllegalTokenTextField.java")); + final DefaultConfiguration moduleConfig = + createModuleConfig(IllegalTokenTextCheck.class); + moduleConfig.addProperty("format", "12345"); + moduleConfig.addProperty("tokens", "NUM_INT"); + final String[] expectedViolation = { + "4:33: " + getCheckMessage(IllegalTokenTextCheck.class, + IllegalTokenTextCheck.MSG_KEY, "12345"), + }; + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text='InputXpathIllegalTokenTextField']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='illegalNumber']]" + + "/ASSIGN/EXPR[./NUM_INT[@text='12345']]", + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text='InputXpathIllegalTokenTextField']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='illegalNumber']]" + + "/ASSIGN/EXPR/NUM_INT[@text='12345']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testMethod() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathIllegalTokenTextMethod.java")); + final DefaultConfiguration moduleConfig = + createModuleConfig(IllegalTokenTextCheck.class); + moduleConfig.addProperty("format", "forbiddenText"); + moduleConfig.addProperty("tokens", "STRING_LITERAL"); + final String[] expectedViolation = { + "5:32: " + getCheckMessage(IllegalTokenTextCheck.class, + IllegalTokenTextCheck.MSG_KEY, "forbiddenText"), + }; + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text='InputXpathIllegalTokenTextMethod']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myMethod']]" + + "/SLIST/VARIABLE_DEF[./IDENT[@text='illegalString']]" + + "/ASSIGN/EXPR[./STRING_LITERAL[@text='forbiddenText']]", + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text='InputXpathIllegalTokenTextMethod']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myMethod']]" + + "/SLIST/VARIABLE_DEF[./IDENT[@text='illegalString']]" + + "/ASSIGN/EXPR/STRING_LITERAL[@text='forbiddenText']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testInterface() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathIllegalTokenTextInterface.java")); + final DefaultConfiguration moduleConfig = + createModuleConfig(IllegalTokenTextCheck.class); + moduleConfig.addProperty("format", "invalidIdentifier"); + moduleConfig.addProperty("tokens", "IDENT"); + final String[] expectedViolation = { + "4:10: " + getCheckMessage(IllegalTokenTextCheck.class, + IllegalTokenTextCheck.MSG_KEY, "invalidIdentifier"), + }; + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT" + + "/INTERFACE_DEF[./IDENT[@text='InputXpathIllegalTokenTextInterface']]" + + "/OBJBLOCK/METHOD_DEF/IDENT[@text='invalidIdentifier']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTypeTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTypeTest.java index 53118cecaf8..c05e828be7b 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTypeTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIllegalTypeTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalTypeOne.java")); + new File(getPath("InputXpathIllegalTypeOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTypeCheck.class); moduleConfig.addProperty("tokens", "METHOD_DEF"); @@ -50,7 +50,7 @@ public void testOne() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionIllegalTypeOne']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathIllegalTypeOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='typeParam']]/TYPE_PARAMETERS/TYPE_PARAMETER" + "[./IDENT[@text='T']]/TYPE_UPPER_BOUNDS/DOT" + "[./IDENT[@text='HashSet']]/DOT/IDENT[@text='java']" @@ -63,7 +63,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIllegalTypeTwo.java")); + new File(getPath("InputXpathIllegalTypeTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTypeCheck.class); @@ -74,7 +74,7 @@ public void testTwo() throws Exception { IllegalTypeCheck.MSG_KEY, "Boolean"), }; final List expectedXpathQueries = Collections.singletonList( - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionIllegalTypeTwo']" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathIllegalTypeTwo']" + "]/OBJBLOCK/METHOD_DEF[./IDENT[@text='typeParam']]/TYPE_PARAMETERS/" + "TYPE_PARAMETER[./IDENT[@text='T']]/TYPE_UPPER_BOUNDS/IDENT[@text='Boolean']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionImportControlTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionImportControlTest.java index 58415f33fcf..7f41212dd2e 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionImportControlTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionImportControlTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,12 +41,12 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportControlOne.java")); + new File(getPath("InputXpathImportControlOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportControlCheck.class); moduleConfig.addProperty("file", getPath( - "SuppressionXpathRegressionImportControlOne.xml")); + "InputXpathImportControlOne.xml")); final String[] expectedViolation = { "3:1: " + getCheckMessage(ImportControlCheck.class, @@ -64,12 +64,12 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportControlTwo.java")); + new File(getPath("InputXpathImportControlTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportControlCheck.class); moduleConfig.addProperty("file", getPath( - "SuppressionXpathRegressionImportControlTwo.xml")); + "InputXpathImportControlTwo.xml")); final String[] expectedViolation = { "1:1: " + getCheckMessage(ImportControlCheck.class, @@ -87,7 +87,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportControlThree.java")); + new File(getPath("InputXpathImportControlThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportControlCheck.class); @@ -108,12 +108,12 @@ public void testThree() throws Exception { @Test public void testFour() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportControlFour.java")); + new File(getPath("InputXpathImportControlFour.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportControlCheck.class); moduleConfig.addProperty("file", - getPath("SuppressionXpathRegressionImportControlFour.xml")); + getPath("InputXpathImportControlFour.xml")); final String[] expectedViolation = { "4:1: " + getCheckMessage(ImportControlCheck.class, diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionImportOrderTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionImportOrderTest.java index 27dd8182258..ee4139168cb 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionImportOrderTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionImportOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportOrderOne.java")); + new File(getPath("InputXpathImportOrderOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportOrderCheck.class); @@ -61,7 +61,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportOrderTwo.java")); + new File(getPath("InputXpathImportOrderTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportOrderCheck.class); @@ -82,7 +82,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportOrderThree.java")); + new File(getPath("InputXpathImportOrderThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportOrderCheck.class); @@ -105,7 +105,7 @@ public void testThree() throws Exception { @Test public void testFour() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportOrderFour.java")); + new File(getPath("InputXpathImportOrderFour.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportOrderCheck.class); @@ -127,7 +127,7 @@ public void testFour() throws Exception { @Test public void testFive() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionImportOrderFive.java")); + new File(getPath("InputXpathImportOrderFive.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ImportOrderCheck.class); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIndentationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIndentationTest.java index 56e463cc59c..1abe2690d49 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIndentationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionIndentationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIndentationTestOne.java")); + new File(getPath("InputXpathIndentationDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IndentationCheck.class); @@ -52,19 +52,19 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestOne']]" + + "[./IDENT[@text='InputXpathIndentationDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='wrongIntend']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestOne']]" + + "[./IDENT[@text='InputXpathIndentationDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='wrongIntend']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestOne']]" + + "[./IDENT[@text='InputXpathIndentationDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='wrongIntend']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestOne']]" + + "[./IDENT[@text='InputXpathIndentationDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='wrongIntend']]/TYPE/LITERAL_VOID" ); @@ -75,7 +75,7 @@ public void testOne() throws Exception { @Test public void testBasicOffset() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIndentationTestTwo.java")); + new File(getPath("InputXpathIndentationBasicOffset.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IndentationCheck.class); @@ -95,19 +95,19 @@ public void testBasicOffset() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestTwo']]" + + "[./IDENT[@text='InputXpathIndentationBasicOffset']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestTwo']]" + + "[./IDENT[@text='InputXpathIndentationBasicOffset']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestTwo']]" + + "[./IDENT[@text='InputXpathIndentationBasicOffset']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestTwo']]" + + "[./IDENT[@text='InputXpathIndentationBasicOffset']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/TYPE/LITERAL_VOID" ); @@ -118,7 +118,7 @@ public void testBasicOffset() throws Exception { @Test public void testCaseIndent() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIndentationTestThree.java")); + new File(getPath("InputXpathIndentationSwitchCase.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IndentationCheck.class); @@ -138,12 +138,12 @@ public void testCaseIndent() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestThree']]" + + "[./IDENT[@text='InputXpathIndentationSwitchCase']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_SWITCH/" + "CASE_GROUP", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationTestThree']]" + + "[./IDENT[@text='InputXpathIndentationSwitchCase']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_SWITCH/" + "CASE_GROUP/LITERAL_CASE" ); @@ -153,9 +153,9 @@ public void testCaseIndent() throws Exception { } @Test - public void testLambda() throws Exception { + public void testLambdaOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIndentationLambdaTest1.java")); + new File(getPath("InputXpathIndentationLambdaOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IndentationCheck.class); @@ -175,7 +175,7 @@ public void testLambda() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationLambdaTest1" + + "[./IDENT[@text='InputXpathIndentationLambdaOne" + "']]/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/VARIABLE_DEF" + "[./IDENT[@text='getA']]/ASSIGN/LAMBDA/LPAREN" ); @@ -185,9 +185,9 @@ public void testLambda() throws Exception { } @Test - public void testLambda2() throws Exception { + public void testLambdaTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIndentationLambdaTest2.java")); + new File(getPath("InputXpathIndentationLambdaTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IndentationCheck.class); @@ -207,7 +207,7 @@ public void testLambda2() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationLambdaTest2']]" + + "[./IDENT[@text='InputXpathIndentationLambdaTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/VARIABLE_DEF[" + "./IDENT[@text='div']]/ASSIGN/LAMBDA/SLIST/LITERAL_RETURN" ); @@ -219,7 +219,7 @@ public void testLambda2() throws Exception { @Test public void testIfWithNoCurlies() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIndentationIfWithoutCurly.java")); + new File(getPath("InputXpathIndentationIfWithoutCurly.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IndentationCheck.class); @@ -240,7 +240,7 @@ public void testIfWithNoCurlies() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationIfWithoutCurly']]" + + "[./IDENT[@text='InputXpathIndentationIfWithoutCurly']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_IF/EXPR/" + "METHOD_CALL/IDENT[@text='e']" ); @@ -252,7 +252,7 @@ public void testIfWithNoCurlies() throws Exception { @Test public void testElseWithNoCurlies() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionIndentationElseWithoutCurly.java")); + new File(getPath("InputXpathIndentationElseWithoutCurly.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IndentationCheck.class); @@ -273,7 +273,7 @@ public void testElseWithNoCurlies() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionIndentationElseWithoutCurly']]" + + "[./IDENT[@text='InputXpathIndentationElseWithoutCurly']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_IF/LITERAL_ELSE" + "/EXPR/METHOD_CALL/IDENT[@text='exp']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInnerAssignmentTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInnerAssignmentTest.java new file mode 100644 index 00000000000..603c6de0855 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInnerAssignmentTest.java @@ -0,0 +1,87 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.InnerAssignmentCheck; + +public class XpathRegressionInnerAssignmentTest extends AbstractXpathTestSupport { + + private final String checkName = InnerAssignmentCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testInnerAssignment() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathInnerAssignment.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(InnerAssignmentCheck.class); + + final String[] expectedViolation = { + "7:15: " + getCheckMessage(InnerAssignmentCheck.class, InnerAssignmentCheck.MSG_KEY), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text='InputXpathInnerAssignment']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testMethod']]" + + "/SLIST/EXPR/ASSIGN[./IDENT[@text='a']]/ASSIGN[./IDENT[@text='b']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testArrays() throws Exception { + final File fileToProcess = new + File(getPath("InputXpathInnerAssignmentArrays.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(InnerAssignmentCheck.class); + + final String[] expectedViolation = { + "6:55: " + getCheckMessage(InnerAssignmentCheck.class, InnerAssignmentCheck.MSG_KEY), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text='InputXpathInnerAssignmentArrays']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testMethod']]" + + "/SLIST/VARIABLE_DEF[./IDENT[@text='doubleArray']]" + + "/ASSIGN/EXPR/LITERAL_NEW/ARRAY_INIT/EXPR[./ASSIGN/IDENT[@text='myDouble']]", + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text='InputXpathInnerAssignmentArrays']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testMethod']]/" + + "SLIST/VARIABLE_DEF[./IDENT[@text='doubleArray']]" + + "/ASSIGN/EXPR/LITERAL_NEW/ARRAY_INIT/EXPR/ASSIGN[./IDENT[@text='myDouble']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInnerTypeLastTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInnerTypeLastTest.java new file mode 100644 index 00000000000..0aef626e054 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInnerTypeLastTest.java @@ -0,0 +1,141 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.design.InnerTypeLastCheck.MSG_KEY; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.design.InnerTypeLastCheck; + +public class XpathRegressionInnerTypeLastTest extends AbstractXpathTestSupport { + + private final String checkName = InnerTypeLastCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testOne() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathInnerTypeLastOne.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(InnerTypeLastCheck.class); + + final String[] expectedViolations = { + "8:5: " + getCheckMessage(InnerTypeLastCheck.class, MSG_KEY), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastOne']]" + + "/OBJBLOCK/CTOR_DEF" + + "[./IDENT[@text='InputXpathInnerTypeLastOne']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastOne']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastOne']]" + + "/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastOne']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastOne']]" + + "/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, + expectedXpathQueries); + } + + @Test + public void testTwo() throws Exception { + + final File fileToProcess = + new File(getPath("InputXpathInnerTypeLastTwo.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(InnerTypeLastCheck.class); + + final String[] expectedViolations = { + "11:9: " + getCheckMessage(InnerTypeLastCheck.class, MSG_KEY), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastTwo']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='innerMethod']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastTwo']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT" + + "[@text='innerMethod']]/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastTwo']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT" + + "[@text='innerMethod']]/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, + expectedXpathQueries); + + } + + @Test + public void testThree() throws Exception { + + final File fileToProcess = new File( + getPath("InputXpathInnerTypeLastThree.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(InnerTypeLastCheck.class); + + final String[] expectedViolations = { + "10:5: " + getCheckMessage(InnerTypeLastCheck.class, MSG_KEY), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastThree']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastThree']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastThree']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastThree']]" + + "/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastThree']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathInnerTypeLastThree']]" + + "/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, + expectedXpathQueries); + + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInterfaceIsTypeTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInterfaceIsTypeTest.java index 16110e0f7d0..fdbc451f70f 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInterfaceIsTypeTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInterfaceIsTypeTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testAllowMarker() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionInterfaceIsType1.java")); + "InputXpathInterfaceIsTypeAllowMarker.java")); final DefaultConfiguration moduleConfig = createModuleConfig(InterfaceIsTypeCheck.class); @@ -52,11 +52,11 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionInterfaceIsType1']]", + + "@text='InputXpathInterfaceIsTypeAllowMarker']]", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionInterfaceIsType1']]/MODIFIERS", + + "@text='InputXpathInterfaceIsTypeAllowMarker']]/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionInterfaceIsType1']]" + + "@text='InputXpathInterfaceIsTypeAllowMarker']]" + "/MODIFIERS/LITERAL_PUBLIC" ); @@ -65,9 +65,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testAllowMarkerFalse() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionInterfaceIsType2.java")); + "InputXpathInterfaceIsType.java")); final DefaultConfiguration moduleConfig = createModuleConfig(InterfaceIsTypeCheck.class); @@ -81,11 +81,11 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionInterfaceIsType2']]", + + "@text='InputXpathInterfaceIsType']]", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionInterfaceIsType2']]/MODIFIERS", + + "@text='InputXpathInterfaceIsType']]/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionInterfaceIsType2']]" + + "@text='InputXpathInterfaceIsType']]" + "/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInterfaceMemberImpliedModifierTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInterfaceMemberImpliedModifierTest.java index 269946f92b0..ed19e0b1b33 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInterfaceMemberImpliedModifierTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInterfaceMemberImpliedModifierTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -36,9 +36,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testField() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionInterfaceMemberImpliedModifier1.java") + getPath("InputXpathInterfaceMemberImpliedModifierField.java") ); final DefaultConfiguration moduleConfig = @@ -51,16 +51,16 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier1']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierField']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='str']]", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier1']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierField']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='str']]" + "/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier1']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierField']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='str']]" + "/MODIFIERS/LITERAL_PUBLIC" ); @@ -69,9 +69,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testMethod() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionInterfaceMemberImpliedModifier2.java") + getPath("InputXpathInterfaceMemberImpliedModifierMethod.java") ); final DefaultConfiguration moduleConfig = @@ -84,16 +84,16 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier2']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='setData']]", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier2']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='setData']]" + "/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier2']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='setData']]" + "/MODIFIERS/ABSTRACT" ); @@ -102,9 +102,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testInner() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionInterfaceMemberImpliedModifier3.java") + getPath("InputXpathInterfaceMemberImpliedModifierInner.java") ); final DefaultConfiguration moduleConfig = @@ -117,16 +117,16 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier3']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierInner']]" + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Data']]", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier3']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierInner']]" + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Data']]" + "/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInterfaceMemberImpliedModifier3']]" + + "[@text='InputXpathInterfaceMemberImpliedModifierInner']]" + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Data']]" + "/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInvalidJavadocPositionTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInvalidJavadocPositionTest.java index ddc9aaf5265..2cd24d78858 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInvalidJavadocPositionTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionInvalidJavadocPositionTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionInvalidJavadocPositionOne.java")); + new File(getPath("InputXpathInvalidJavadocPositionOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(InvalidJavadocPositionCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionInvalidJavadocPositionOne']]" + + "[./IDENT[@text='InputXpathInvalidJavadocPositionOne']]" + "/MODIFIERS/BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT" + "[@text='* // warn\\n * Javadoc Comment\\n ']]" ); @@ -64,7 +64,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionInvalidJavadocPositionTwo.java")); + new File(getPath("InputXpathInvalidJavadocPositionTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(InvalidJavadocPositionCheck.class); @@ -76,7 +76,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionInvalidJavadocPositionTwo']]" + + "[@text='InputXpathInvalidJavadocPositionTwo']]" + "/OBJBLOCK/BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT" + "[@text='* // warn\\n * Javadoc comment\\n ']]" ); @@ -88,7 +88,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionInvalidJavadocPositionThree.java")); + new File(getPath("InputXpathInvalidJavadocPositionThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(InvalidJavadocPositionCheck.class); @@ -100,7 +100,7 @@ public void testThree() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionInvalidJavadocPositionThree']]/" + + "[./IDENT[@text='InputXpathInvalidJavadocPositionThree']]/" + "OBJBLOCK/BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT" + "[@text='* // warn\\n * Javadoc comment\\n ']]" ); @@ -112,7 +112,7 @@ public void testThree() throws Exception { @Test public void testFour() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionInvalidJavadocPositionFour.java")); + new File(getPath("InputXpathInvalidJavadocPositionFour.java")); final DefaultConfiguration moduleConfig = createModuleConfig(InvalidJavadocPositionCheck.class); @@ -124,7 +124,7 @@ public void testFour() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionInvalidJavadocPositionFour']]" + + "[./IDENT[@text='InputXpathInvalidJavadocPositionFour']]" + "/OBJBLOCK/BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT" + "[@text='* // warn\\n * Javadoc Comment\\n ']]" ); @@ -136,7 +136,7 @@ public void testFour() throws Exception { @Test public void testFive() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionInvalidJavadocPositionFive.java")); + new File(getPath("InputXpathInvalidJavadocPositionFive.java")); final DefaultConfiguration moduleConfig = createModuleConfig(InvalidJavadocPositionCheck.class); @@ -148,7 +148,7 @@ public void testFive() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionInvalidJavadocPositionFive']]" + + "[./IDENT[@text='InputXpathInvalidJavadocPositionFive']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT" + "[@text='* // warn\\n * Javadoc comment\\n ']]" @@ -161,7 +161,7 @@ public void testFive() throws Exception { @Test public void testSix() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionInvalidJavadocPositionSix.java")); + new File(getPath("InputXpathInvalidJavadocPositionSix.java")); final DefaultConfiguration moduleConfig = createModuleConfig(InvalidJavadocPositionCheck.class); @@ -173,7 +173,7 @@ public void testSix() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionInvalidJavadocPositionSix']]" + + "[./IDENT[@text='InputXpathInvalidJavadocPositionSix']]" + "/OBJBLOCK/BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT" + "[@text='* // warn\\n * Javadoc Comment\\n ']]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavaNCSSTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavaNCSSTest.java new file mode 100644 index 00000000000..441af676ead --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavaNCSSTest.java @@ -0,0 +1,122 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck; + +// -@cs[AbbreviationAsWordInName] Test should be named as its main class. +public class XpathRegressionJavaNCSSTest extends AbstractXpathTestSupport { + + private final String checkName = JavaNCSSCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testOne() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathJavaNCSSOne.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(JavaNCSSCheck.class); + + final String[] expectedViolation = { + "5:5: " + getCheckMessage(JavaNCSSCheck.class, + JavaNCSSCheck.MSG_METHOD, 51, 50), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathJavaNCSSOne']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]", + + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathJavaNCSSOne']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", + + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathJavaNCSSOne']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testTwo() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathJavaNCSSTwo.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(JavaNCSSCheck.class); + + moduleConfig.addProperty("classMaximum", "50"); + + final String[] expectedViolation = { + "3:1: " + getCheckMessage(JavaNCSSCheck.class, + JavaNCSSCheck.MSG_CLASS, 51, 50), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathJavaNCSSTwo']]", + + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathJavaNCSSTwo']]/MODIFIERS", + + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathJavaNCSSTwo']]" + + "/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testThree() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathJavaNCSSThree.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(JavaNCSSCheck.class); + + moduleConfig.addProperty("fileMaximum", "50"); + + final String[] expectedViolation = { + "1:1: " + getCheckMessage(JavaNCSSCheck.class, + JavaNCSSCheck.MSG_FILE, 51, 50), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT", + "/COMPILATION_UNIT/PACKAGE_DEF" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocContentLocationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocContentLocationTest.java index eeb650ea07e..fc1f8fea74c 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocContentLocationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocContentLocationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocContentLocationOne.java")); + new File(getPath("InputXpathJavadocContentLocationOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocContentLocationCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/INTERFACE_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocContentLocationOne']]" + + "[./IDENT[@text='InputXpathJavadocContentLocationOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/TYPE/BLOCK_COMMENT_BEGIN" + "[./COMMENT_CONTENT[@text='* Text. // warn\\n ']]" ); @@ -64,7 +64,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocContentLocationTwo.java")); + new File(getPath("InputXpathJavadocContentLocationTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocContentLocationCheck.class); @@ -78,7 +78,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionJavadocContentLocationTwo']]" + + "[@text='InputXpathJavadocContentLocationTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/TYPE/BLOCK_COMMENT_BEGIN" + "[./COMMENT_CONTENT[@text='*\\n * Text.\\n ']]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocMethodTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocMethodTest.java index d0578470a51..0f22c8da1e8 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocMethodTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocMethodTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -44,7 +44,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocMethodOne.java")); + new File(getPath("InputXpathJavadocMethodOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocMethodCheck.class); @@ -55,13 +55,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocMethodOne']]" + + "[./IDENT[@text='InputXpathJavadocMethodOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='uninheritableMethod']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocMethodOne']]" + + "[./IDENT[@text='InputXpathJavadocMethodOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='uninheritableMethod']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocMethodOne']]" + + "[./IDENT[@text='InputXpathJavadocMethodOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='uninheritableMethod']]/MODIFIERS" + "/LITERAL_PRIVATE"); @@ -72,7 +72,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocMethodTwo.java")); + new File(getPath("InputXpathJavadocMethodTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocMethodCheck.class); @@ -84,7 +84,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocMethodTwo']]" + + "[./IDENT[@text='InputXpathJavadocMethodTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='checkParam']]/PARAMETERS" + "/PARAMETER_DEF/IDENT[@text='x']"); @@ -95,7 +95,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocMethodThree.java")); + new File(getPath("InputXpathJavadocMethodThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocMethodCheck.class); @@ -107,11 +107,11 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocMethodThree']]" + + "[./IDENT[@text='InputXpathJavadocMethodThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='checkTypeParam']]/TYPE_PARAMETERS" + "/TYPE_PARAMETER[./IDENT[@text='T']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocMethodThree']]" + + "[./IDENT[@text='InputXpathJavadocMethodThree']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='checkTypeParam']]/TYPE_PARAMETERS" + "/TYPE_PARAMETER/IDENT[@text='T']"); @@ -122,7 +122,7 @@ public void testThree() throws Exception { @Test public void testFour() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocMethodFour.java")); + new File(getPath("InputXpathJavadocMethodFour.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocMethodCheck.class); @@ -136,7 +136,7 @@ public void testFour() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocMethodFour']]" + + "[./IDENT[@text='InputXpathJavadocMethodFour']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/LITERAL_THROWS/IDENT[@text='Exception']"); @@ -147,7 +147,7 @@ public void testFour() throws Exception { @Test public void testFive() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocMethodFive.java")); + new File(getPath("InputXpathJavadocMethodFive.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocMethodCheck.class); @@ -161,7 +161,7 @@ public void testFive() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocMethodFive']]" + + "[./IDENT[@text='InputXpathJavadocMethodFive']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='bar']]/SLIST" + "/LITERAL_THROW/EXPR/LITERAL_NEW" + "/DOT[./IDENT[@text='BuildException']]" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocTypeTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocTypeTest.java index d218f920862..f09b0d1798c 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocTypeTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocTypeTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,9 +42,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testMissingTag() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocTypeOne.java")); + new File(getPath("InputXpathJavadocTypeMissingTag.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocTypeCheck.class); @@ -58,12 +58,12 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocTypeOne']]", + + "[./IDENT[@text='InputXpathJavadocTypeMissingTag']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocTypeOne']]" + + "[./IDENT[@text='InputXpathJavadocTypeMissingTag']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocTypeOne']]" + + "[./IDENT[@text='InputXpathJavadocTypeMissingTag']]" + "/MODIFIERS/LITERAL_PUBLIC"); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -71,9 +71,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testWrongFormat() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocTypeTwo.java")); + new File(getPath("InputXpathJavadocTypeWrongFormat.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocTypeCheck.class); @@ -87,11 +87,11 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionJavadocTypeTwo']]", + + "[@text='InputXpathJavadocTypeWrongFormat']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionJavadocTypeTwo']]/MODIFIERS", + + "[@text='InputXpathJavadocTypeWrongFormat']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionJavadocTypeTwo']]" + + "[@text='InputXpathJavadocTypeWrongFormat']]" + "/MODIFIERS/LITERAL_PUBLIC"); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -99,9 +99,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testIncomplete() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocTypeThree.java")); + new File(getPath("InputXpathJavadocTypeIncomplete.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocTypeCheck.class); @@ -113,12 +113,12 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocTypeThree']]", + + "[./IDENT[@text='InputXpathJavadocTypeIncomplete']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocTypeThree']]" + + "[./IDENT[@text='InputXpathJavadocTypeIncomplete']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocTypeThree']]" + + "[./IDENT[@text='InputXpathJavadocTypeIncomplete']]" + "/MODIFIERS/LITERAL_PUBLIC"); runVerifications(moduleConfig, fileToProcess, expectedViolation, diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocVariableTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocVariableTest.java index a7e0b143f90..3f90d4cb643 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocVariableTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionJavadocVariableTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testPrivateClassFields() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocVariableOne.java")); + new File(getPath("InputXpathJavadocVariablePrivateClassFields.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocVariableCheck.class); @@ -52,13 +52,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocVariableOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathJavadocVariablePrivateClassFields']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='age']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocVariableOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathJavadocVariablePrivateClassFields']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='age']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocVariableOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathJavadocVariablePrivateClassFields']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='age']]/MODIFIERS/LITERAL_PRIVATE" ); @@ -67,9 +67,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testInnerClassFields() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionJavadocVariableTwo.java")); + new File(getPath("InputXpathJavadocVariableInnerClassFields.java")); final DefaultConfiguration moduleConfig = createModuleConfig(JavadocVariableCheck.class); @@ -81,15 +81,15 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocVariableTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathJavadocVariableInnerClassFields']]/OBJBLOCK" + "/CLASS_DEF[./IDENT[@text='InnerInner2']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='fData']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocVariableTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathJavadocVariableInnerClassFields']]/OBJBLOCK" + "/CLASS_DEF[./IDENT[@text='InnerInner2']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='fData']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionJavadocVariableTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathJavadocVariableInnerClassFields']]/OBJBLOCK" + "/CLASS_DEF[./IDENT[@text='InnerInner2']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='fData']]/MODIFIERS" + "/LITERAL_PUBLIC" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLambdaBodyLengthTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLambdaBodyLengthTest.java index 2b98821dd09..2c9dec27152 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLambdaBodyLengthTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLambdaBodyLengthTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,9 +40,9 @@ protected String getCheckName() { } @Test - public void testDefault() throws Exception { + public void testDefaultMax() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionLambdaBodyLength1.java")); + "InputXpathLambdaBodyLengthDefaultMax.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); final String[] expectedViolation = { "7:48: " + getCheckMessage(CLASS, LambdaBodyLengthCheck.MSG_KEY, 11, 10), @@ -50,7 +50,7 @@ public void testDefault() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLambdaBodyLength1']]" + + "[./IDENT[@text='InputXpathLambdaBodyLengthDefaultMax']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST" + "/VARIABLE_DEF[./IDENT[@text='trimmer']]/ASSIGN/LAMBDA"); @@ -58,9 +58,9 @@ public void testDefault() throws Exception { } @Test - public void testMaxIsNotDefault() throws Exception { + public void testCustomMax() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionLambdaBodyLength2.java")); + "InputXpathLambdaBodyLengthCustomMax.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); moduleConfig.addProperty("max", "5"); final String[] expectedViolation = { @@ -69,7 +69,7 @@ public void testMaxIsNotDefault() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLambdaBodyLength2']]" + + "[./IDENT[@text='InputXpathLambdaBodyLengthCustomMax']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST" + "/VARIABLE_DEF[./IDENT[@text='r']]/ASSIGN/LAMBDA"); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLambdaParameterNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLambdaParameterNameTest.java index d6da3398766..405c8e37fec 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLambdaParameterNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLambdaParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,9 +40,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionLambdaParameterName1.java")); + new File(getPath("InputXpathLambdaParameterNameDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(LambdaParameterNameCheck.class); @@ -55,7 +55,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLambdaParameterName1']]" + + "[./IDENT[@text='InputXpathLambdaParameterNameDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/VARIABLE_DEF[" + "./IDENT[@text='trimmer']]/ASSIGN/LAMBDA/IDENT[@text='S']" ); @@ -65,9 +65,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testNonDefaultPattern() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionLambdaParameterName2.java")); + new File(getPath("InputXpathLambdaParameterNameNonDefaultPattern.java")); final String nonDefaultPattern = "^_[a-zA-Z0-9]*$"; @@ -82,30 +82,30 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLambdaParameterName2']]" + + "[./IDENT[@text='InputXpathLambdaParameterNameNonDefaultPattern']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/" + "VARIABLE_DEF[./IDENT[@text='trimmer']]/ASSIGN/LAMBDA/PARAMETERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLambdaParameterName2']]" + + "[./IDENT[@text='InputXpathLambdaParameterNameNonDefaultPattern']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/" + "VARIABLE_DEF[./IDENT[@text='trimmer']]/ASSIGN/LAMBDA/PARAMETERS" + "/PARAMETER_DEF[./IDENT[@text='s']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLambdaParameterName2']]" + + "[./IDENT[@text='InputXpathLambdaParameterNameNonDefaultPattern']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST" + "/VARIABLE_DEF[./IDENT[@text='trimmer']]/ASSIGN/LAMBDA/PARAMETERS" + "/PARAMETER_DEF[./IDENT[@text='s']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLambdaParameterName2']]" + + "[./IDENT[@text='InputXpathLambdaParameterNameNonDefaultPattern']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/" + "VARIABLE_DEF[./IDENT[@text='trimmer']]/ASSIGN/LAMBDA/PARAMETERS" + "/PARAMETER_DEF[./IDENT[@text='s']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLambdaParameterName2']]" + + "[./IDENT[@text='InputXpathLambdaParameterNameNonDefaultPattern']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/" + "VARIABLE_DEF[./IDENT[@text='trimmer']]/ASSIGN/LAMBDA/PARAMETERS" + "/PARAMETER_DEF/IDENT[@text='s']" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLeftCurlyTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLeftCurlyTest.java index 6b621ae6e5b..a94af219be7 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLeftCurlyTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLeftCurlyTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionLeftCurlyOne.java")); + new File(getPath("InputXpathLeftCurlyOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(LeftCurlyCheck.class); @@ -54,9 +54,9 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLeftCurlyOne']]/OBJBLOCK", + + "[./IDENT[@text='InputXpathLeftCurlyOne']]/OBJBLOCK", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLeftCurlyOne']]/OBJBLOCK/LCURLY" + + "[./IDENT[@text='InputXpathLeftCurlyOne']]/OBJBLOCK/LCURLY" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -66,22 +66,22 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionLeftCurlyTwo.java")); + new File(getPath("InputXpathLeftCurlyTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(LeftCurlyCheck.class); moduleConfig.addProperty("option", LeftCurlyOption.NL.toString()); final String[] expectedViolation = { - "3:53: " + getCheckMessage(LeftCurlyCheck.class, - LeftCurlyCheck.MSG_KEY_LINE_NEW, "{", 53), + "3:37: " + getCheckMessage(LeftCurlyCheck.class, + LeftCurlyCheck.MSG_KEY_LINE_NEW, "{", 37), }; final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLeftCurlyTwo']]/OBJBLOCK", + + "[./IDENT[@text='InputXpathLeftCurlyTwo']]/OBJBLOCK", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLeftCurlyTwo']]/OBJBLOCK/LCURLY" + + "[./IDENT[@text='InputXpathLeftCurlyTwo']]/OBJBLOCK/LCURLY" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -91,7 +91,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionLeftCurlyThree.java")); + new File(getPath("InputXpathLeftCurlyThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(LeftCurlyCheck.class); @@ -103,7 +103,7 @@ public void testThree() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionLeftCurlyThree']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathLeftCurlyThree']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='sample']]/SLIST/LITERAL_IF/SLIST" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLocalFinalVariableNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLocalFinalVariableNameTest.java new file mode 100644 index 00000000000..5b20c6b4ce1 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionLocalFinalVariableNameTest.java @@ -0,0 +1,115 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.naming.LocalFinalVariableNameCheck.MSG_INVALID_PATTERN; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.naming.LocalFinalVariableNameCheck; + +public class XpathRegressionLocalFinalVariableNameTest extends AbstractXpathTestSupport { + + private final String checkName = LocalFinalVariableNameCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testResource() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathLocalFinalVariableNameResource.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(LocalFinalVariableNameCheck.class); + moduleConfig.addProperty("format", "^[A-Z][A-Z0-9]*$"); + moduleConfig.addProperty("tokens", "PARAMETER_DEF,RESOURCE"); + + final String[] expectedViolation = { + "7:21: " + getCheckMessage(LocalFinalVariableNameCheck.class, + MSG_INVALID_PATTERN, "scanner", "^[A-Z][A-Z0-9]*$"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathLocalFinalVariableNameResource']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='MyMethod']]/SLIST/LITERAL_TRY" + + "/RESOURCE_SPECIFICATION/RESOURCES/RESOURCE/IDENT[@text='scanner']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testVariable() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathLocalFinalVariableNameVar.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(LocalFinalVariableNameCheck.class); + moduleConfig.addProperty("format", "^[A-Z][a-z0-9]*$"); + + final String[] expectedViolation = { + "5:19: " + getCheckMessage(LocalFinalVariableNameCheck.class, + MSG_INVALID_PATTERN, "VAR1", "^[A-Z][a-z0-9]*$"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathLocalFinalVariableNameVar']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='MyMethod']]/SLIST/VARIABLE_DEF" + + "/IDENT[@text='VAR1']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testInnerClass() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathLocalFinalVariableNameInner.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(LocalFinalVariableNameCheck.class); + moduleConfig.addProperty("format", "^[A-Z][a-z0-9]*$"); + + final String[] expectedViolation = { + "8:23: " + getCheckMessage(LocalFinalVariableNameCheck.class, + MSG_INVALID_PATTERN, "VAR1", "^[A-Z][a-z0-9]*$"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathLocalFinalVariableNameInner']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK" + + "/METHOD_DEF[./IDENT[@text='MyMethod']]/SLIST/VARIABLE_DEF" + + "/IDENT[@text='VAR1']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMagicNumberTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMagicNumberTest.java new file mode 100644 index 00000000000..9f74327746a --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMagicNumberTest.java @@ -0,0 +1,116 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck; + +public class XpathRegressionMagicNumberTest extends AbstractXpathTestSupport { + + @Override + protected String getCheckName() { + return MagicNumberCheck.class.getSimpleName(); + } + + @Test + public void testVariable() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathMagicNumberVariable.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MagicNumberCheck.class); + + final String[] expectedViolation = { + "5:13: " + getCheckMessage(MagicNumberCheck.class, MagicNumberCheck.MSG_KEY, "5"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathMagicNumberVariable']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='d']]" + + "/ASSIGN/EXPR[./NUM_INT[@text='5']]", + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathMagicNumberVariable']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='d']]" + + "/ASSIGN/EXPR/NUM_INT[@text='5']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testMethodDef() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathMagicNumberMethodDef.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MagicNumberCheck.class); + + final String[] expectedViolation = { + "5:17: " + getCheckMessage(MagicNumberCheck.class, MagicNumberCheck.MSG_KEY, "20"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathMagicNumberMethodDef']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodWithMagicNumber']]" + + "/SLIST/VARIABLE_DEF[./IDENT[@text='x']]/ASSIGN/EXPR[./" + + "NUM_INT[@text='20']]", + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathMagicNumberMethodDef']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodWithMagicNumber']]" + + "/SLIST/VARIABLE_DEF[./IDENT[@text='x']]/ASSIGN/EXPR/NU" + + "M_INT[@text='20']" + ); + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testAnotherVariable() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathMagicNumberAnotherVariable.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MagicNumberCheck.class); + + final String[] expectedViolation = { + "13:21: " + getCheckMessage(MagicNumberCheck.class, MagicNumberCheck.MSG_KEY, "20"), + }; + + final List expectedXpathQueries = List.of( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathMagicNumberAnotherVariable']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='performOperation']]" + + "/SLIST/LITERAL_TRY/LITERAL_CATCH/SLIST/LITERAL_IF" + + "/LITERAL_ELSE/SLIST/EXPR/ASSIGN" + + "[./IDENT[@text='a']]/NUM_INT[@text='20']" + ); + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMatchXpathTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMatchXpathTest.java index 182aea9a446..a01131fc02a 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMatchXpathTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMatchXpathTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathOne.java")); + new File(getPath("InputXpathMatchXpathOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MatchXpathCheck.class); @@ -53,11 +53,11 @@ public void testOne() throws Exception { }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionMatchXpathOne']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathMatchXpathOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionMatchXpathOne']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathMatchXpathOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionMatchXpathOne']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathMatchXpathOne']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -68,7 +68,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathTwo.java")); + new File(getPath("InputXpathMatchXpathTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MatchXpathCheck.class); @@ -81,7 +81,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathTwo']]" + + "[./IDENT[@text='InputXpathMatchXpathTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='func1']]" + "/LITERAL_THROWS[./IDENT[@text='RuntimeException']]" ); @@ -93,7 +93,7 @@ public void testTwo() throws Exception { @Test public void testEncodedQuoteString() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedQuoteString.java")); + new File(getPath("InputXpathMatchXpathEncodedQuoteString.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -106,11 +106,11 @@ public void testEncodedQuoteString() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedQuoteString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedQuoteString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='quoteChar']]/ASSIGN/EXPR" + "[./STRING_LITERAL[@text='\\"testOne\\"']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedQuoteString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedQuoteString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='quoteChar']]/ASSIGN/EXPR" + "/STRING_LITERAL[@text='\\"testOne\\"']" ); @@ -122,7 +122,7 @@ public void testEncodedQuoteString() throws Exception { @Test public void testEncodedLessString() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedLessString.java")); + new File(getPath("InputXpathMatchXpathEncodedLessString.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -135,11 +135,11 @@ public void testEncodedLessString() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedLessString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedLessString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='lessChar']]/ASSIGN/EXPR" + "[./STRING_LITERAL[@text='<testTwo']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedLessString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedLessString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='lessChar']]/ASSIGN/EXPR/" + "STRING_LITERAL[@text='<testTwo']" ); @@ -151,7 +151,7 @@ public void testEncodedLessString() throws Exception { @Test public void testEncodedNewLineString() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedNewLineString.java")); + new File(getPath("InputXpathMatchXpathEncodedNewLineString.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -164,11 +164,11 @@ public void testEncodedNewLineString() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedNewLineString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedNewLineString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='newLineChar']]/ASSIGN/EXPR" + "[./STRING_LITERAL[@text='testFive\\n']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedNewLineString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedNewLineString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='newLineChar']]/ASSIGN/EXPR" + "/STRING_LITERAL[@text='testFive\\n']" ); @@ -180,7 +180,7 @@ public void testEncodedNewLineString() throws Exception { @Test public void testGreaterString() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedGreaterString.java")); + new File(getPath("InputXpathMatchXpathEncodedGreaterString.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -193,11 +193,11 @@ public void testGreaterString() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedGreaterString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedGreaterString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='greaterChar']]/ASSIGN/EXPR" + "[./STRING_LITERAL[@text='>testFour']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedGreaterString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedGreaterString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='greaterChar']]/ASSIGN/EXPR" + "/STRING_LITERAL[@text='>testFour']" ); @@ -209,7 +209,7 @@ public void testGreaterString() throws Exception { @Test public void testEncodedAmpString() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedAmpString.java")); + new File(getPath("InputXpathMatchXpathEncodedAmpString.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -222,11 +222,11 @@ public void testEncodedAmpString() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedAmpString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedAmpString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='ampersandChar']]/ASSIGN/EXPR" + "[./STRING_LITERAL[@text='&testThree']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedAmpString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedAmpString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='ampersandChar']]/ASSIGN/EXPR" + "/STRING_LITERAL[@text='&testThree']" ); @@ -238,7 +238,7 @@ public void testEncodedAmpString() throws Exception { @Test public void testEncodedAposString() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedAposString.java")); + new File(getPath("InputXpathMatchXpathEncodedAposString.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -251,11 +251,11 @@ public void testEncodedAposString() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedAposString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedAposString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='aposChar']]/ASSIGN/EXPR" + "[./STRING_LITERAL[@text='''SingleQuoteOnBothSide''']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedAposString']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedAposString']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='aposChar']]/ASSIGN/EXPR" + "/STRING_LITERAL[@text='''SingleQuoteOnBothSide''']" ); @@ -267,7 +267,7 @@ public void testEncodedAposString() throws Exception { @Test public void testEncodedCarriageString() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedCarriageString.java")); + new File(getPath("InputXpathMatchXpathEncodedCarriageString.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -280,12 +280,12 @@ public void testEncodedCarriageString() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedCarriage" - + "String']]/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='carriageChar']]/ASSIGN" + + "[./IDENT[@text='InputXpathMatchXpathEncodedCarriageString" + + "']]/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='carriageChar']]/ASSIGN" + "/EXPR[./STRING_LITERAL[@text='carriageCharAtEnd\\r']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedCarriage" - + "String']]/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='carriageChar']]/ASSIGN" + + "[./IDENT[@text='InputXpathMatchXpathEncodedCarriageString" + + "']]/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='carriageChar']]/ASSIGN" + "/EXPR/STRING_LITERAL[@text='carriageCharAtEnd\\r']" ); @@ -296,7 +296,7 @@ public void testEncodedCarriageString() throws Exception { @Test public void testEncodedAmpersandChars() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedAmpChar.java")); + new File(getPath("InputXpathMatchXpathEncodedAmpChar.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -309,11 +309,11 @@ public void testEncodedAmpersandChars() throws Exception { final List expectedXpathQueriesForAmpersand = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedAmpChar']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedAmpChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='ampChar']]/ASSIGN/EXPR" + "[./CHAR_LITERAL[@text='''&''']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedAmpChar']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedAmpChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='ampChar']]/ASSIGN/EXPR" + "/CHAR_LITERAL[@text='''&''']" ); @@ -325,7 +325,7 @@ public void testEncodedAmpersandChars() throws Exception { @Test public void testEncodedQuoteChar() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedQuotChar.java")); + new File(getPath("InputXpathMatchXpathEncodedQuoteChar.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -338,11 +338,11 @@ public void testEncodedQuoteChar() throws Exception { final List expectedXpathQueriesForQuote = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedQuotChar']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedQuoteChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='quotChar']]/ASSIGN/EXPR" + "[./CHAR_LITERAL[@text='''\\"''']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedQuotChar']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedQuoteChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='quotChar']]/ASSIGN/EXPR/" + "CHAR_LITERAL[@text='''\\"''']" ); @@ -354,7 +354,7 @@ public void testEncodedQuoteChar() throws Exception { @Test public void testEncodedLessChar() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedLessChar.java")); + new File(getPath("InputXpathMatchXpathEncodedLessChar.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -367,11 +367,11 @@ public void testEncodedLessChar() throws Exception { final List expectedXpathQueriesForLess = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedLessChar']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedLessChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='lessChar']]/ASSIGN/EXPR" + "[./CHAR_LITERAL[@text='''<''']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedLessChar']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedLessChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='lessChar']]/ASSIGN/EXPR/" + "CHAR_LITERAL[@text='''<''']" ); @@ -383,7 +383,7 @@ public void testEncodedLessChar() throws Exception { @Test public void testEncodedAposChar() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedAposChar.java")); + new File(getPath("InputXpathMatchXpathEncodedAposChar.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -396,11 +396,11 @@ public void testEncodedAposChar() throws Exception { final List expectedXpathQueriesForApos = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedAposChar']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedAposChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='aposChar']]/ASSIGN/EXPR" + "[./CHAR_LITERAL[@text='''\\''''']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncodedAposChar']]/" + + "[./IDENT[@text='InputXpathMatchXpathEncodedAposChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='aposChar']]/ASSIGN/EXPR/" + "CHAR_LITERAL[@text='''\\''''']" ); @@ -412,7 +412,7 @@ public void testEncodedAposChar() throws Exception { @Test public void testEncodedGreaterChar() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathEncodedGreaterChar.java")); + new File(getPath("InputXpathMatchXpathEncodedGreaterChar.java")); final DefaultConfiguration moduleConfig = createModuleConfig(IllegalTokenCheck.class); @@ -425,13 +425,13 @@ public void testEncodedGreaterChar() throws Exception { final List expectedXpathQueriesForGreater = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncoded" - + "GreaterChar']]/" + + "[./IDENT[@text='" + + "InputXpathMatchXpathEncodedGreaterChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='greaterChar']]/ASSIGN/EXPR" + "[./CHAR_LITERAL[@text='''>''']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMatchXpathEncoded" - + "GreaterChar']]/" + + "[./IDENT[@text='" + + "InputXpathMatchXpathEncodedGreaterChar']]/" + "OBJBLOCK/VARIABLE_DEF[./IDENT[@text='greaterChar']]/ASSIGN/EXPR/" + "CHAR_LITERAL[@text='''>''']" ); @@ -443,7 +443,7 @@ public void testEncodedGreaterChar() throws Exception { @Test public void testFollowing() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMatchXpathThree.java")); + new File(getPath("InputXpathMatchXpathThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MatchXpathCheck.class); @@ -456,7 +456,7 @@ public void testFollowing() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionMatchXpathThree']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathMatchXpathThree']]" + "/OBJBLOCK/RCURLY" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMemberNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMemberNameTest.java index 88b74c37232..4c1e4f3137f 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMemberNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMemberNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void test1() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMemberName1.java")); + new File(getPath("InputXpathMemberNameDefault.java")); final String pattern = "^[a-z][a-zA-Z0-9]*$"; final DefaultConfiguration moduleConfig = @@ -55,7 +55,7 @@ public void test1() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionMemberName1']]" + + "='InputXpathMemberNameDefault']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='NUM2']" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -63,9 +63,9 @@ public void test1() throws Exception { } @Test - public void test2() throws Exception { + public void testIgnoreProtected() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMemberName2.java")); + new File(getPath("InputXpathMemberNameIgnoreProtected.java")); final String pattern = "^m[A-Z][a-zA-Z0-9]*$"; final DefaultConfiguration moduleConfig = @@ -82,7 +82,7 @@ public void test2() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionMemberName2']]" + + "='InputXpathMemberNameIgnoreProtected']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]" + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='NUM1']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodCountTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodCountTest.java index f9dea22d252..895d09ecc60 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodCountTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodCountTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -36,9 +36,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMethodCount1.java") + getPath("InputXpathMethodCountDefault.java") ); final DefaultConfiguration moduleConfig = @@ -52,14 +52,14 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount1']]", + + "[./IDENT[@text='InputXpathMethodCountDefault']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount1']]" + + "[./IDENT[@text='InputXpathMethodCountDefault']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount1']]" + + "[./IDENT[@text='InputXpathMethodCountDefault']]" + "/LITERAL_CLASS" ); @@ -67,9 +67,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testPrivate() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMethodCount2.java") + getPath("InputXpathMethodCountPrivate.java") ); final DefaultConfiguration moduleConfig = @@ -83,14 +83,14 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount2']]", + + "[./IDENT[@text='InputXpathMethodCountPrivate']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount2']]" + + "[./IDENT[@text='InputXpathMethodCountPrivate']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount2']]" + + "[./IDENT[@text='InputXpathMethodCountPrivate']]" + "/LITERAL_CLASS" ); @@ -98,9 +98,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testPackage() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMethodCount1.java") + getPath("InputXpathMethodCountDefault.java") ); final DefaultConfiguration moduleConfig = @@ -114,14 +114,14 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount1']]", + + "[./IDENT[@text='InputXpathMethodCountDefault']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount1']]" + + "[./IDENT[@text='InputXpathMethodCountDefault']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount1']]" + + "[./IDENT[@text='InputXpathMethodCountDefault']]" + "/LITERAL_CLASS" ); @@ -129,9 +129,9 @@ public void testThree() throws Exception { } @Test - public void testFour() throws Exception { + public void testProtected() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMethodCount3.java") + getPath("InputXpathMethodCountProtected.java") ); final DefaultConfiguration moduleConfig = @@ -145,14 +145,14 @@ public void testFour() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount3']]", + + "[./IDENT[@text='InputXpathMethodCountProtected']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount3']]" + + "[./IDENT[@text='InputXpathMethodCountProtected']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount3']]" + + "[./IDENT[@text='InputXpathMethodCountProtected']]" + "/LITERAL_CLASS" ); @@ -160,9 +160,9 @@ public void testFour() throws Exception { } @Test - public void testFive() throws Exception { + public void testPublic() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMethodCount4.java") + getPath("InputXpathMethodCountPublic.java") ); final DefaultConfiguration moduleConfig = @@ -176,14 +176,14 @@ public void testFive() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount4']]", + + "[./IDENT[@text='InputXpathMethodCountPublic']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount4']]" + + "[./IDENT[@text='InputXpathMethodCountPublic']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMethodCount4']]" + + "[./IDENT[@text='InputXpathMethodCountPublic']]" + "/LITERAL_CLASS" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodLengthTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodLengthTest.java new file mode 100644 index 00000000000..dafebfd929c --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodLengthTest.java @@ -0,0 +1,138 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.sizes.MethodLengthCheck.MSG_KEY; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.sizes.MethodLengthCheck; + +public class XpathRegressionMethodLengthTest extends AbstractXpathTestSupport { + + private final String checkName = MethodLengthCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testSimple() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathMethodLengthSimple.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(MethodLengthCheck.class); + moduleConfig.addProperty("max", "10"); + + final String[] expectedViolations = { + "4:5: " + getCheckMessage(MethodLengthCheck.class, MSG_KEY, + 11, 10, "InputXpathMethodLengthSimple"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSimple']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSimple']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSimple']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSimple']]/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSimple']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSimple']]" + + "/MODIFIERS/LITERAL_PROTECTED" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testNoEmptyLines() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathMethodLengthNoEmptyLines.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(MethodLengthCheck.class); + moduleConfig.addProperty("max", "5"); + moduleConfig.addProperty("countEmpty", "false"); + moduleConfig.addProperty("tokens", "METHOD_DEF"); + + final String[] expectedViolations = { + "15:5: " + getCheckMessage(MethodLengthCheck.class, MSG_KEY, 6, 5, "methodOne"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthNoEmptyLines']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodOne']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthNoEmptyLines']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodOne']]/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthNoEmptyLines']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodOne']]" + + "/MODIFIERS/LITERAL_PROTECTED" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testSingleToken() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathMethodLengthSingleToken.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(MethodLengthCheck.class); + moduleConfig.addProperty("max", "1"); + moduleConfig.addProperty("tokens", "METHOD_DEF"); + + final String[] expectedViolations = { + "9:9: " + getCheckMessage(MethodLengthCheck.class, MSG_KEY, 3, 1, "methodOne"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSingleToken']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a']]/ASSIGN/EXPR/LITERAL_NEW" + + "[./IDENT[@text='InputXpathMethodLengthSingleToken']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodOne']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSingleToken']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a']]/ASSIGN/EXPR/LITERAL_NEW" + + "[./IDENT[@text='InputXpathMethodLengthSingleToken']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodOne']]/MODIFIERS", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodLengthSingleToken']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a']]/ASSIGN/EXPR/LITERAL_NEW" + + "[./IDENT[@text='InputXpathMethodLengthSingleToken']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='methodOne']]" + + "/MODIFIERS/LITERAL_PUBLIC" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodNameTest.java index bc0ec2bfd08..5892d062882 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void test1() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMethodName1.java")); + new File(getPath("InputXpathMethodNameDefault.java")); final String pattern = "^[a-z][a-zA-Z0-9]*$"; final DefaultConfiguration moduleConfig = @@ -55,7 +55,7 @@ public void test1() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionMethodName1']]" + + "='InputXpathMethodNameDefault']]" + "/OBJBLOCK/METHOD_DEF/IDENT[@text='SecondMethod']" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -63,9 +63,9 @@ public void test1() throws Exception { } @Test - public void test2() throws Exception { + public void testInnerClass() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMethodName2.java")); + new File(getPath("InputXpathMethodNameInner.java")); final String pattern = "^[a-z](_?[a-zA-Z0-9]+)*$"; final DefaultConfiguration moduleConfig = @@ -80,7 +80,7 @@ public void test2() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionMethodName2']]" + + "='InputXpathMethodNameInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]" + "/OBJBLOCK/METHOD_DEF/IDENT[@text='MyMethod2']" ); @@ -89,9 +89,9 @@ public void test2() throws Exception { } @Test - public void test3() throws Exception { + public void testCustomProperties() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMethodName3.java")); + new File(getPath("InputXpathMethodNameCustomProperties.java")); final String pattern = "^[a-z](_?[a-zA-Z0-9]+)*$"; final DefaultConfiguration moduleConfig = diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodParamPadTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodParamPadTest.java index 07be430b5fd..fa761b4cf99 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodParamPadTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodParamPadTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMethodParamPadOne.java")); + new File(getPath("InputXpathMethodParamPadOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MethodParamPadCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMethodParamPadOne']]/OBJBLOCK" + + "[@text='InputXpathMethodParamPadOne']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='InputMethodParamPad']]/LPAREN" ); @@ -63,7 +63,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMethodParamPadTwo.java")); + new File(getPath("InputXpathMethodParamPadTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MethodParamPadCheck.class); @@ -75,7 +75,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMethodParamPadTwo']]/OBJBLOCK" + + "[@text='InputXpathMethodParamPadTwo']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='sayHello']]/LPAREN" ); @@ -86,7 +86,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMethodParamPadThree.java")); + new File(getPath("InputXpathMethodParamPadThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MethodParamPadCheck.class); @@ -99,7 +99,7 @@ public void testThree() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMethodParamPadThree']]/OBJBLOCK" + + "[@text='InputXpathMethodParamPadThree']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='sayHello']]/LPAREN" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodTypeParameterNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodTypeParameterNameTest.java new file mode 100644 index 00000000000..4ab22b258d1 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMethodTypeParameterNameTest.java @@ -0,0 +1,126 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck.MSG_INVALID_PATTERN; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck; + +public class XpathRegressionMethodTypeParameterNameTest extends AbstractXpathTestSupport { + + private final String checkName = MethodTypeParameterNameCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void test1() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathMethodTypeParameterNameDefault.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MethodTypeParameterNameCheck.class); + + final String[] expectedViolation = { + "4:11: " + getCheckMessage(MethodTypeParameterNameCheck.class, + MSG_INVALID_PATTERN, "TT", "^[A-Z]$"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./" + + "IDENT[@text='InputXpathMethodTypeParameterNameDefault']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/TYPE_PARAMETERS" + + "/TYPE_PARAMETER[./IDENT[@text='TT']]", "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[" + + "@text='InputXpathMethodTypeParameterNameDefault']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + + "/TYPE_PARAMETERS/TYPE_PARAMETER/IDENT[@text='TT']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void test2() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathMethodTypeParameterNameInner.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MethodTypeParameterNameCheck.class); + moduleConfig.addProperty("format", "^foo$"); + + final String[] expectedViolation = { + "6:10: " + getCheckMessage(MethodTypeParameterNameCheck.class, + MSG_INVALID_PATTERN, "fo_", "^foo$"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathMethodTypeParameterNameInner']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Junk']]/OBJBLOCK" + + "/METHOD_DEF[./IDENT[@text='foo']]/TYPE_PARAMETERS" + + "/TYPE_PARAMETER[./IDENT[@text='fo_']]", "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text=" + + "'InputXpathMethodTypeParameterNameInner']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Junk']]/OBJBLOCK" + + "/METHOD_DEF[./IDENT[@text='foo']]/TYPE_PARAMETERS" + + "/TYPE_PARAMETER/IDENT[@text='fo_']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void test3() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathMethodTypeParameterNameLowercase.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MethodTypeParameterNameCheck.class); + moduleConfig.addProperty("format", "^[a-z]$"); + + final String[] expectedViolation = { + "7:6: " + getCheckMessage(MethodTypeParameterNameCheck.class, + MSG_INVALID_PATTERN, "a_a", "^[a-z]$"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMethodTypeParameterNameLowercase']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myMethod']]/TYPE_PARAMETERS" + + "/TYPE_PARAMETER[./IDENT[@text='a_a']]", "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text=" + + "'InputXpathMethodTypeParameterNameLowercase']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myMethod']]" + + "/TYPE_PARAMETERS/TYPE_PARAMETER/IDENT[@text='a_a']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingCtorTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingCtorTest.java index e382799c7b5..dc0fb2d7114 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingCtorTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingCtorTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testMissingCtor() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingCtor1.java")); + "InputXpathMissingCtor.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingCtorCheck.class); @@ -52,11 +52,11 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingCtor1']]", + + "[./IDENT[@text='InputXpathMissingCtor']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingCtor1']]/MODIFIERS", + + "[./IDENT[@text='InputXpathMissingCtor']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMissingCtor1']]/MODIFIERS/LITERAL_PUBLIC" + + "@text='InputXpathMissingCtor']]/MODIFIERS/LITERAL_PUBLIC" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -64,9 +64,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testInnerClass() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingCtor2.java")); + "InputXpathMissingCtorInner.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingCtorCheck.class); @@ -78,13 +78,13 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMissingCtor2']]" + + "@text='InputXpathMissingCtorInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMissingCtor2']]" + + "@text='InputXpathMissingCtorInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMissingCtor2']]" + + "@text='InputXpathMissingCtorInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]/LITERAL_CLASS" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocMethodTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocMethodTest.java index b9da91959db..d8a546d8f88 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocMethodTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocMethodTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -36,9 +36,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testMissingJavadocMethodCtor() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMissingJavadocMethod1.java") + getPath("InputXpathMissingJavadocMethodCtor.java") ); final DefaultConfiguration moduleConfig = @@ -52,20 +52,20 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingJavadocMethod1']]" + + "[@text='InputXpathMissingJavadocMethodCtor']]" + "/OBJBLOCK/CTOR_DEF[." - + "/IDENT[@text='SuppressionXpathRegressionMissingJavadocMethod1']]", + + "/IDENT[@text='InputXpathMissingJavadocMethodCtor']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocMethod1']]" + + "[./IDENT[@text='InputXpathMissingJavadocMethodCtor']]" + "/OBJBLOCK/CTOR_DEF[." - + "/IDENT[@text='SuppressionXpathRegressionMissingJavadocMethod1']]" + + "/IDENT[@text='InputXpathMissingJavadocMethodCtor']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocMethod1']]" + + "[./IDENT[@text='InputXpathMissingJavadocMethodCtor']]" + "/OBJBLOCK/CTOR_DEF[." - + "/IDENT[@text='SuppressionXpathRegressionMissingJavadocMethod1']]" + + "/IDENT[@text='InputXpathMissingJavadocMethodCtor']]" + "/MODIFIERS/LITERAL_PUBLIC" ); @@ -73,9 +73,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testMissingJavadocMethod() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMissingJavadocMethod2.java") + getPath("InputXpathMissingJavadocMethod.java") ); final DefaultConfiguration moduleConfig = @@ -89,16 +89,16 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocMethod2']]" + + "[./IDENT[@text='InputXpathMissingJavadocMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocMethod2']]" + + "[./IDENT[@text='InputXpathMissingJavadocMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocMethod2']]" + + "[./IDENT[@text='InputXpathMissingJavadocMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocPackageTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocPackageTest.java index 2e1238ddc7e..3caadb6f6a2 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocPackageTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocPackageTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocTypeTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocTypeTest.java index f6853f293f1..f5917ae8521 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocTypeTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingJavadocTypeTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testClass() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingJavadocTypeClass.java" + "InputXpathMissingJavadocTypeClass.java" )); final DefaultConfiguration moduleConfig = @@ -54,12 +54,12 @@ public void testClass() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeClass']]", + + "[./IDENT[@text='InputXpathMissingJavadocTypeClass']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeClass']]" + + "[./IDENT[@text='InputXpathMissingJavadocTypeClass']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeClass']]" + + "[./IDENT[@text='InputXpathMissingJavadocTypeClass']]" + "/MODIFIERS/LITERAL_PUBLIC" ); @@ -69,7 +69,7 @@ public void testClass() throws Exception { @Test public void testScope() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingJavadocTypeScope.java" + "InputXpathMissingJavadocTypeScope.java" )); final DefaultConfiguration moduleConfig = @@ -84,13 +84,13 @@ public void testScope() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeScope']]" + + "[./IDENT[@text='InputXpathMissingJavadocTypeScope']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeScope']]" + + "[./IDENT[@text='InputXpathMissingJavadocTypeScope']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeScope']]" + + "[./IDENT[@text='InputXpathMissingJavadocTypeScope']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]/MODIFIERS/LITERAL_PRIVATE" ); @@ -100,7 +100,7 @@ public void testScope() throws Exception { @Test public void testExcluded() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingJavadocTypeExcluded.java" + "InputXpathMissingJavadocTypeExcluded.java" )); final DefaultConfiguration moduleConfig = @@ -116,13 +116,13 @@ public void testExcluded() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeExcluded']]" + + "[./IDENT[@text='InputXpathMissingJavadocTypeExcluded']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeExcluded']]" + + "[./IDENT[@text='InputXpathMissingJavadocTypeExcluded']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingJavadocTypeExcluded']]" + + "[./IDENT[@text='InputXpathMissingJavadocTypeExcluded']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Test']]/MODIFIERS/LITERAL_PRIVATE" ); @@ -132,7 +132,7 @@ public void testExcluded() throws Exception { @Test public void testAnnotation() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingJavadocTypeAnnotation.java" + "InputXpathMissingJavadocTypeAnnotation.java" )); final DefaultConfiguration moduleConfig = @@ -147,17 +147,17 @@ public void testAnnotation() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionMissingJavadocTypeAnnotation']]" + + "'InputXpathMissingJavadocTypeAnnotation']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='innerClass']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionMissingJavadocTypeAnnotation']]" + + "'InputXpathMissingJavadocTypeAnnotation']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='innerClass']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionMissingJavadocTypeAnnotation']]" + + "'InputXpathMissingJavadocTypeAnnotation']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='innerClass']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='TestAnnotation2']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionMissingJavadocTypeAnnotation']]" + + "'InputXpathMissingJavadocTypeAnnotation']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='innerClass']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='TestAnnotation2']]/AT" ); @@ -168,7 +168,7 @@ public void testAnnotation() throws Exception { @Test public void testToken() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingJavadocTypeToken.java" + "InputXpathMissingJavadocTypeToken.java" )); final DefaultConfiguration moduleConfig = @@ -183,12 +183,12 @@ public void testToken() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionMissingJavadocTypeToken']]", + + "'InputXpathMissingJavadocTypeToken']]", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionMissingJavadocTypeToken']]" + + "'InputXpathMissingJavadocTypeToken']]" + "/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionMissingJavadocTypeToken']]" + + "'InputXpathMissingJavadocTypeToken']]" + "/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingOverrideTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingOverrideTest.java index 0d6b4e0b5c7..58ca781698f 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingOverrideTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingOverrideTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testClass() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingOverrideClass.java")); + "InputXpathMissingOverrideClass.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingOverrideCheck.class); @@ -52,13 +52,13 @@ public void testClass() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingOverrideClass']]" + + "[./IDENT[@text='InputXpathMissingOverrideClass']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingOverrideClass']]" + + "[./IDENT[@text='InputXpathMissingOverrideClass']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingOverrideClass']]" + + "[./IDENT[@text='InputXpathMissingOverrideClass']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -71,7 +71,7 @@ public void testClass() throws Exception { @Test public void testInterface() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingOverrideInterface.java")); + "InputXpathMissingOverrideInterface.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingOverrideCheck.class); @@ -83,16 +83,16 @@ public void testInterface() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInterface']]" + + "[@text='InputXpathMissingOverrideInterface']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInterface']]" + + "[@text='InputXpathMissingOverrideInterface']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInterface']]" + + "[@text='InputXpathMissingOverrideInterface']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/TYPE", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInterface']]" + + "[@text='InputXpathMissingOverrideInterface']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/TYPE/LITERAL_BOOLEAN" ); @@ -105,7 +105,7 @@ public void testInterface() throws Exception { @Test public void testAnonymous() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingOverrideAnonymous.java")); + "InputXpathMissingOverrideAnonymous.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingOverrideCheck.class); @@ -117,17 +117,17 @@ public void testAnonymous() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideAnonymous']]" + + "[@text='InputXpathMissingOverrideAnonymous']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='r']]/ASSIGN/EXPR/" + "LITERAL_NEW[./IDENT[@text='Runnable']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='run']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingOverrideAnonymous']]" + + "[./IDENT[@text='InputXpathMissingOverrideAnonymous']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='r']]/ASSIGN/EXPR/" + "LITERAL_NEW[./IDENT[@text='Runnable']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='run']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingOverrideAnonymous']]" + + "[./IDENT[@text='InputXpathMissingOverrideAnonymous']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='r']]/ASSIGN/EXPR/" + "LITERAL_NEW[./IDENT[@text='Runnable']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='run']]/MODIFIERS/LITERAL_PUBLIC" @@ -140,9 +140,9 @@ public void testAnonymous() throws Exception { } @Test - public void testInheritDocInvalid1() throws Exception { + public void testInheritDocInvalidPrivateMethod() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingOverrideInheritDocInvalid1.java")); + "InputXpathMissingOverrideInheritDocInvalidPrivateMethod.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingOverrideCheck.class); @@ -154,13 +154,13 @@ public void testInheritDocInvalid1() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInheritDocInvalid1']]" + + "[@text='InputXpathMissingOverrideInheritDocInvalidPrivateMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInheritDocInvalid1']]" + + "[@text='InputXpathMissingOverrideInheritDocInvalidPrivateMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInheritDocInvalid1']]" + + "[@text='InputXpathMissingOverrideInheritDocInvalidPrivateMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS/LITERAL_PRIVATE" ); @@ -171,9 +171,9 @@ public void testInheritDocInvalid1() throws Exception { } @Test - public void testInheritDocInvalid2() throws Exception { + public void testInheritDocInvalidPublicMethod() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingOverrideInheritDocInvalid2.java")); + "InputXpathMissingOverrideInheritDocInvalidPublicMethod.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingOverrideCheck.class); @@ -185,13 +185,13 @@ public void testInheritDocInvalid2() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInheritDocInvalid2']]" + + "[@text='InputXpathMissingOverrideInheritDocInvalidPublicMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInheritDocInvalid2']]" + + "[@text='InputXpathMissingOverrideInheritDocInvalidPublicMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInheritDocInvalid2']]" + + "[@text='InputXpathMissingOverrideInheritDocInvalidPublicMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -202,9 +202,9 @@ public void testInheritDocInvalid2() throws Exception { } @Test - public void testJavaFiveCompatibility1() throws Exception { + public void testJavaFiveCompatibilityOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingOverrideClass.java")); + "InputXpathMissingOverrideClass.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingOverrideCheck.class); @@ -217,13 +217,13 @@ public void testJavaFiveCompatibility1() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingOverrideClass']]" + + "[./IDENT[@text='InputXpathMissingOverrideClass']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingOverrideClass']]" + + "[./IDENT[@text='InputXpathMissingOverrideClass']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingOverrideClass']]" + + "[./IDENT[@text='InputXpathMissingOverrideClass']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='equals']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -234,9 +234,9 @@ public void testJavaFiveCompatibility1() throws Exception { } @Test - public void testJavaFiveCompatibility2() throws Exception { + public void testJavaFiveCompatibilityTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionMissingOverrideInterface.java")); + "InputXpathMissingOverrideInterface.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MissingOverrideCheck.class); @@ -249,16 +249,16 @@ public void testJavaFiveCompatibility2() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInterface']]" + + "[@text='InputXpathMissingOverrideInterface']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInterface']]" + + "[@text='InputXpathMissingOverrideInterface']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInterface']]" + + "[@text='InputXpathMissingOverrideInterface']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/TYPE", "/COMPILATION_UNIT/INTERFACE_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionMissingOverrideInterface']]" + + "[@text='InputXpathMissingOverrideInterface']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/TYPE/LITERAL_BOOLEAN" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingSwitchDefaultTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingSwitchDefaultTest.java index d23e4418f59..bb1d58d0881 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingSwitchDefaultTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMissingSwitchDefaultTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testSimple() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMissingSwitchDefaultOne.java")); + new File(getPath("InputXpathMissingSwitchDefaultSimple.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clss); final String[] expectedViolation = { @@ -50,7 +50,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingSwitchDefaultOne']]" + + "[./IDENT[@text='InputXpathMissingSwitchDefaultSimple']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test1']]" + "/SLIST/LITERAL_SWITCH" ); @@ -59,9 +59,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testNested() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionMissingSwitchDefaultTwo.java")); + new File(getPath("InputXpathMissingSwitchDefaultNested.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clss); @@ -71,11 +71,11 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingSwitchDefaultTwo']]" + + "[./IDENT[@text='InputXpathMissingSwitchDefaultNested']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test2']]" + "/SLIST/LITERAL_SWITCH/CASE_GROUP/SLIST", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionMissingSwitchDefaultTwo']]" + + "[./IDENT[@text='InputXpathMissingSwitchDefaultNested']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test2']]" + "/SLIST/LITERAL_SWITCH/CASE_GROUP/SLIST/" + "LITERAL_SWITCH" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionModifierOrderTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionModifierOrderTest.java index 409f389cbad..70f2241e0a5 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionModifierOrderTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionModifierOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testMethod() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionModifierOrderMethod.java")); + getPath("InputXpathModifierOrderMethod.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -52,11 +52,11 @@ public void testMethod() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionModifierOrderMethod']]" + + "[@text='InputXpathModifierOrderMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/MODIFIERS" + "/ANNOTATION[./IDENT[@text='MethodAnnotation']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionModifierOrderMethod']]" + + "[@text='InputXpathModifierOrderMethod']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/MODIFIERS" + "/ANNOTATION[./IDENT[@text='MethodAnnotation']]/AT"); @@ -66,7 +66,7 @@ public void testMethod() throws Exception { @Test public void testVariable() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionModifierOrderVariable.java")); + getPath("InputXpathModifierOrderVariable.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -77,7 +77,7 @@ public void testVariable() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionModifierOrderVariable']]" + + "[@text='InputXpathModifierOrderVariable']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='var']]/MODIFIERS/LITERAL_PRIVATE"); runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); @@ -86,7 +86,7 @@ public void testVariable() throws Exception { @Test public void testAnnotation() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionModifierOrderAnnotation.java")); + getPath("InputXpathModifierOrderAnnotation.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -97,10 +97,10 @@ public void testAnnotation() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/ANNOTATION_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionModifierOrderAnnotation']]" + + "[@text='InputXpathModifierOrderAnnotation']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='InterfaceAnnotation']]", "/COMPILATION_UNIT/ANNOTATION_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionModifierOrderAnnotation']]" + + "[@text='InputXpathModifierOrderAnnotation']]" + "/MODIFIERS/ANNOTATION[./IDENT[@text='InterfaceAnnotation']]/AT"); runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMultipleStringLiteralsTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMultipleStringLiteralsTest.java new file mode 100644 index 00000000000..43f14d838b8 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMultipleStringLiteralsTest.java @@ -0,0 +1,147 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.coding.MultipleStringLiteralsCheck.MSG_KEY; + +import java.io.File; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.MultipleStringLiteralsCheck; + +public class XpathRegressionMultipleStringLiteralsTest extends AbstractXpathTestSupport { + + @Override + protected String getCheckName() { + + return MultipleStringLiteralsCheck.class.getSimpleName(); + } + + @Test + public void testDefault() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathMultipleStringLiteralsDefault.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MultipleStringLiteralsCheck.class); + + final String[] expectedViolations = { + "4:16: " + getCheckMessage(MultipleStringLiteralsCheck.class, + MSG_KEY, "\"StringContents\"", 2), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathMultipleStringLiteralsDefault']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a']]" + + "/ASSIGN/EXPR[./STRING_LITERAL[@text='StringContents']]", + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathMultipleStringLiteralsDefault']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a']]" + + "/ASSIGN/EXPR/STRING_LITERAL[@text='StringContents']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testAllowDuplicates() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathMultipleStringLiteralsAllowDuplicates.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MultipleStringLiteralsCheck.class); + moduleConfig.addProperty("allowedDuplicates", "2"); + + final String[] expectedViolations = { + "8:19: " + getCheckMessage(MultipleStringLiteralsCheck.class, + MSG_KEY, "\", \"", 3), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMultipleStringLiteralsAllowDuplicates']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myTest']]/SLIST/VARIABLE_DEF" + + "[./IDENT[@text='a5']]/ASSIGN/EXPR/PLUS[./STRING_LITERAL[@text=', ']]" + + "/PLUS/STRING_LITERAL[@text=', ']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testIgnoreRegexp() throws Exception { + final File fileToProcess = new File( + getPath("InputXpathMultipleStringLiteralsIgnoreRegexp.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MultipleStringLiteralsCheck.class); + moduleConfig.addProperty("ignoreStringsRegexp", "((\"\")|(\", \"))$"); + + final String[] expectedViolations = { + "7:19: " + getCheckMessage(MultipleStringLiteralsCheck.class, + MSG_KEY, "\"DoubleString\"", 2), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathMultipleStringLiteralsIgnoreRegexp']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myTest']]/SLIST/VARIABLE_DEF" + + "[./IDENT[@text='a3']]/ASSIGN/EXPR/PLUS/STRING_LITERAL[@text='DoubleString']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testIgnoreOccurrenceContext() throws Exception { + final String filePath = + "InputXpathMultipleStringLiteralsIgnoreOccurrenceContext.java"; + final File fileToProcess = new File(getPath(filePath)); + + final DefaultConfiguration moduleConfig = + createModuleConfig(MultipleStringLiteralsCheck.class); + moduleConfig.addProperty("ignoreOccurrenceContext", ""); + + final String[] expectedViolations = { + "5:17: " + getCheckMessage(MultipleStringLiteralsCheck.class, + MSG_KEY, "\"unchecked\"", 3), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" + + "'InputXpathMultipleStringLiteralsIgnoreOccurrenceContext']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a1']]" + + "/ASSIGN/EXPR[./STRING_LITERAL[@text='unchecked']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" + + "'InputXpathMultipleStringLiteralsIgnoreOccurrenceContext']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a1']]" + + "/ASSIGN/EXPR/STRING_LITERAL[@text='unchecked']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMultipleVariableDeclarationsTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMultipleVariableDeclarationsTest.java index 053e5f03681..8955720a1fc 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMultipleVariableDeclarationsTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionMultipleVariableDeclarationsTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testCommaSeparator() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMultipleVariableDeclarationsOne.java")); + getPath("InputXpathMultipleVariableDeclarationsCommaSeparator.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MultipleVariableDeclarationsCheck.class); @@ -52,28 +52,28 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsOne']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarationsCommaSeparator']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='i']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsOne']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarationsCommaSeparator']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='i']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsOne']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarationsCommaSeparator']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='i']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsOne']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarationsCommaSeparator']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='i']]/TYPE/LITERAL_INT", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsOne']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarationsCommaSeparator']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='j']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsOne']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarationsCommaSeparator']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='j']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsOne']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarationsCommaSeparator']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='j']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsOne']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarationsCommaSeparator']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='j']]/TYPE/LITERAL_INT" ); @@ -82,9 +82,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testMultipleVariableDeclarations() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionMultipleVariableDeclarationsTwo.java")); + getPath("InputXpathMultipleVariableDeclarations.java")); final DefaultConfiguration moduleConfig = createModuleConfig(MultipleVariableDeclarationsCheck.class); @@ -96,16 +96,16 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsTwo']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarations']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='i1']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsTwo']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarations']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='i1']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsTwo']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarations']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='i1']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionMultipleVariableDeclarationsTwo']]/OBJBLOCK" + + "@text='InputXpathMultipleVariableDeclarations']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='i1']]/TYPE/LITERAL_INT" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNPathComplexityTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNPathComplexityTest.java index ecdf28f718f..b791c19108a 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNPathComplexityTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNPathComplexityTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,9 +40,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testMethod() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNPathComplexityOne.java")); + new File(getPath("InputXpathNPathComplexityMethod.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NPathComplexityCheck.class); @@ -55,13 +55,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNPathComplexityOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNPathComplexityMethod']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNPathComplexityOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNPathComplexityMethod']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNPathComplexityOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNPathComplexityMethod']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -70,9 +70,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testStaticBlock() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNPathComplexityTwo.java")); + new File(getPath("InputXpathNPathComplexityStaticBlock.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NPathComplexityCheck.class); @@ -85,7 +85,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNPathComplexityTwo']]" + + "[./IDENT[@text='InputXpathNPathComplexityStaticBlock']]" + "/OBJBLOCK/STATIC_INIT" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNeedBracesTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNeedBracesTest.java index c6bd9c3640d..00c146c5579 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNeedBracesTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNeedBracesTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testDo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNeedBracesDo.java")); + "InputXpathNeedBracesDo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NeedBracesCheck.class); @@ -52,7 +52,7 @@ public void testDo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNeedBracesDo']]" + + "[./IDENT[@text='InputXpathNeedBracesDo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_DO" ); @@ -63,7 +63,7 @@ public void testDo() throws Exception { @Test public void testSingleLine() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNeedBracesSingleLine.java")); + "InputXpathNeedBracesSingleLine.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NeedBracesCheck.class); @@ -75,7 +75,7 @@ public void testSingleLine() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNeedBracesSingleLine']]" + + "[./IDENT[@text='InputXpathNeedBracesSingleLine']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_IF" ); @@ -86,7 +86,7 @@ public void testSingleLine() throws Exception { @Test public void testSingleLineLambda() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNeedBracesSingleLineLambda.java")); + "InputXpathNeedBracesSingleLineLambda.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NeedBracesCheck.class); @@ -99,7 +99,7 @@ public void testSingleLineLambda() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNeedBracesSingleLineLambda']]" + + "[./IDENT[@text='InputXpathNeedBracesSingleLineLambda']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='r3']]/ASSIGN/LAMBDA" ); @@ -110,7 +110,7 @@ public void testSingleLineLambda() throws Exception { @Test public void testEmptyLoopBody() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNeedBracesEmptyLoopBody.java")); + "InputXpathNeedBracesEmptyLoopBody.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NeedBracesCheck.class); @@ -121,7 +121,7 @@ public void testEmptyLoopBody() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNeedBracesEmptyLoopBody']]" + + "[./IDENT[@text='InputXpathNeedBracesEmptyLoopBody']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_WHILE" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedForDepthTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedForDepthTest.java index e9166e16404..55e7d299346 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedForDepthTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedForDepthTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testCorrect() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNestedForDepth.java")); + new File(getPath("InputXpathNestedForDepth.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NestedForDepthCheck.class); @@ -52,7 +52,7 @@ public void testCorrect() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNestedForDepth']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNestedForDepth']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_FOR" + "/SLIST/LITERAL_FOR/SLIST/LITERAL_FOR" ); @@ -64,7 +64,7 @@ public void testCorrect() throws Exception { @Test public void testMax() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNestedForDepthMax.java")); + new File(getPath("InputXpathNestedForDepthMax.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NestedForDepthCheck.class); @@ -77,7 +77,7 @@ public void testMax() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNestedForDepthMax']]" + + "[./IDENT[@text='InputXpathNestedForDepthMax']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/LITERAL_FOR/" + "SLIST/LITERAL_FOR/" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedIfDepthTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedIfDepthTest.java index 4977b550ab5..3f7f2246de2 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedIfDepthTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedIfDepthTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testCorrect() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNestedIfDepth.java")); + new File(getPath("InputXpathNestedIfDepth.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NestedIfDepthCheck.class); @@ -52,7 +52,7 @@ public void testCorrect() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNestedIfDepth']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNestedIfDepth']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_IF" + "/SLIST/LITERAL_IF/SLIST/LITERAL_IF" ); @@ -64,7 +64,7 @@ public void testCorrect() throws Exception { @Test public void testMax() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNestedIfDepthMax.java")); + new File(getPath("InputXpathNestedIfDepthMax.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NestedIfDepthCheck.class); @@ -77,7 +77,7 @@ public void testMax() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNestedIfDepthMax']]" + + "[./IDENT[@text='InputXpathNestedIfDepthMax']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/LITERAL_IF/" + "SLIST/LITERAL_IF/" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedTryDepthTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedTryDepthTest.java index 4f8a260db4c..0b809ce7cac 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedTryDepthTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNestedTryDepthTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testCorrect() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNestedTryDepth.java")); + new File(getPath("InputXpathNestedTryDepth.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NestedTryDepthCheck.class); @@ -52,7 +52,7 @@ public void testCorrect() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNestedTryDepth']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNestedTryDepth']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_TRY/SLIST" + "/LITERAL_TRY/SLIST/LITERAL_TRY" ); @@ -64,7 +64,7 @@ public void testCorrect() throws Exception { @Test public void testMax() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNestedTryDepthMax.java")); + new File(getPath("InputXpathNestedTryDepthMax.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NestedTryDepthCheck.class); @@ -77,7 +77,7 @@ public void testMax() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNestedTryDepthMax']]" + + "[./IDENT[@text='InputXpathNestedTryDepthMax']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/LITERAL_TRY" + "/SLIST/LITERAL_TRY" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoArrayTrailingCommaTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoArrayTrailingCommaTest.java index 0ec07ca862d..3244fb771ed 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoArrayTrailingCommaTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoArrayTrailingCommaTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoArrayTrailingCommaOne.java")); + new File(getPath("InputXpathNoArrayTrailingCommaOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoArrayTrailingCommaCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionNoArrayTrailingCommaOne']]" + + "[@text='InputXpathNoArrayTrailingCommaOne']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='t1']]/ASSIGN/EXPR" + "/LITERAL_NEW/ARRAY_INIT/COMMA[4]" ); @@ -64,7 +64,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoArrayTrailingCommaTwo.java")); + new File(getPath("InputXpathNoArrayTrailingCommaTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoArrayTrailingCommaCheck.class); @@ -76,7 +76,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoArrayTrailingCommaTwo']]" + + "[./IDENT[@text='InputXpathNoArrayTrailingCommaTwo']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='t4']]" + "/ASSIGN/EXPR/LITERAL_NEW/ARRAY_INIT/COMMA" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoCloneTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoCloneTest.java index 210619d68ba..bcea4e6bac8 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoCloneTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoCloneTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testMethod() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoCloneOne.java")); + new File(getPath("InputXpathNoCloneMethod.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoCloneCheck.class); @@ -51,13 +51,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoCloneOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNoCloneMethod']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='clone']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoCloneOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNoCloneMethod']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='clone']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoCloneOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNoCloneMethod']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='clone']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -68,7 +68,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoCloneTwo.java")); + new File(getPath("InputXpathNoCloneInnerClass.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoCloneCheck.class); @@ -78,15 +78,15 @@ public void testTwo() throws Exception { }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionNoCloneTwo']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathNoCloneInnerClass']]" + "/OBJBLOCK" + "/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='clone']]", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionNoCloneTwo']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathNoCloneInnerClass']]" + "/OBJBLOCK" + "/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='clone']]/MODIFIERS", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionNoCloneTwo']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathNoCloneInnerClass']]" + "/OBJBLOCK" + "/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='clone']]/MODIFIERS/LITERAL_PUBLIC" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoEnumTrailingCommaTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoEnumTrailingCommaTest.java index 830cf98ac11..b2a12ddca0f 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoEnumTrailingCommaTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoEnumTrailingCommaTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNoEnumTrailingCommaOne.java")); + "InputXpathNoEnumTrailingCommaOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoEnumTrailingCommaCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoEnumTrailingCommaOne']]" + + "[./IDENT[@text='InputXpathNoEnumTrailingCommaOne']]" + "/OBJBLOCK/ENUM_DEF[./IDENT[@text='Foo3']]/OBJBLOCK/COMMA[2]" ); @@ -62,7 +62,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNoEnumTrailingCommaTwo.java")); + "InputXpathNoEnumTrailingCommaTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoEnumTrailingCommaCheck.class); @@ -74,7 +74,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoEnumTrailingCommaTwo']]" + + "[./IDENT[@text='InputXpathNoEnumTrailingCommaTwo']]" + "/OBJBLOCK/ENUM_DEF[./IDENT[@text='Foo6']]/OBJBLOCK/COMMA[2]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoFinalizerTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoFinalizerTest.java index cd0bd5fba70..90dc6f46f30 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoFinalizerTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoFinalizerTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -36,9 +36,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testMain() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionNoFinalizer1.java")); + getPath("InputXpathNoFinalizerMain.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoFinalizerCheck.class); @@ -50,13 +50,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoFinalizer1']]" + + "[./IDENT[@text='InputXpathNoFinalizerMain']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='finalize']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoFinalizer1']]" + + "[./IDENT[@text='InputXpathNoFinalizerMain']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='finalize']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoFinalizer1']]" + + "[./IDENT[@text='InputXpathNoFinalizerMain']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='finalize']]/MODIFIERS/LITERAL_PROTECTED" ); @@ -65,9 +65,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testInner() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionNoFinalizer2.java")); + getPath("InputXpathNoFinalizerInner.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoFinalizerCheck.class); @@ -79,20 +79,20 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoFinalizer2']]" + + "[./IDENT[@text='InputXpathNoFinalizerInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='finalize']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoFinalizer2']]" + + "[./IDENT[@text='InputXpathNoFinalizerInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='finalize']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoFinalizer2']]" + + "[./IDENT[@text='InputXpathNoFinalizerInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='finalize']]/MODIFIERS/" + "ANNOTATION[./IDENT[@text='Override']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoFinalizer2']]" + + "[./IDENT[@text='InputXpathNoFinalizerInner']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='finalize']]/MODIFIERS/" + "ANNOTATION[./IDENT[@text='Override']]/AT" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoLineWrapTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoLineWrapTest.java index 63621e91753..86be6f22fac 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoLineWrapTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoLineWrapTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -36,9 +36,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionNoLineWrap1.java") + getPath("InputXpathNoLineWrapDefault.java") ); final DefaultConfiguration moduleConfig = @@ -57,9 +57,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testMethodDef() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionNoLineWrap2.java") + getPath("InputXpathNoLineWrapTokensMethodDef.java") ); final DefaultConfiguration moduleConfig = @@ -73,16 +73,16 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionNoLineWrap2']]" + + "[@text='InputXpathNoLineWrapTokensMethodDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test2']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionNoLineWrap2']]" + + "[@text='InputXpathNoLineWrapTokensMethodDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test2']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionNoLineWrap2']]" + + "[@text='InputXpathNoLineWrapTokensMethodDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test2']]" + "/MODIFIERS/LITERAL_PUBLIC" @@ -92,9 +92,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testTokensCtorDef() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionNoLineWrap3.java") + getPath("InputXpathNoLineWrapTokensCtorDef.java") ); final DefaultConfiguration moduleConfig = @@ -108,17 +108,17 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoLineWrap3']]" - + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='SuppressionXpathRegressionNoLineWrap3']]", + + "[./IDENT[@text='InputXpathNoLineWrapTokensCtorDef']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='InputXpathNoLineWrapTokensCtorDef']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoLineWrap3']]" - + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='SuppressionXpathRegressionNoLineWrap3']]" + + "[./IDENT[@text='InputXpathNoLineWrapTokensCtorDef']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='InputXpathNoLineWrapTokensCtorDef']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoLineWrap3']]" - + "/OBJBLOCK/CTOR_DEF/IDENT[@text='SuppressionXpathRegressionNoLineWrap3']" + + "[./IDENT[@text='InputXpathNoLineWrapTokensCtorDef']]" + + "/OBJBLOCK/CTOR_DEF/IDENT[@text='InputXpathNoLineWrapTokensCtorDef']" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceAfterTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceAfterTest.java index 175232a0b6e..fc7cbd4da5a 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceAfterTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceAfterTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testNoWhitespaceAfter() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoWhitespaceAfter.java")); + new File(getPath("InputXpathNoWhitespaceAfter.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceAfterCheck.class); @@ -53,10 +53,10 @@ public void testNoWhitespaceAfter() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceAfter']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNoWhitespaceAfter']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceAfter']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNoWhitespaceAfter']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR/UNARY_MINUS[" + "./NUM_INT[@text='1']]" ); @@ -68,7 +68,7 @@ public void testNoWhitespaceAfter() throws Exception { @Test public void testTokens() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoWhitespaceAfterTokens.java")); + new File(getPath("InputXpathNoWhitespaceAfterTokens.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceAfterCheck.class); @@ -81,7 +81,7 @@ public void testTokens() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceAfterTokens']]" + + "[./IDENT[@text='InputXpathNoWhitespaceAfterTokens']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/TYPE/DOT[./IDENT[@text='String']]" + "/DOT[./IDENT[@text='java']]" @@ -94,7 +94,7 @@ public void testTokens() throws Exception { @Test public void testAllowLineBreaks() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoWhitespaceAfterLineBreaks.java")); + new File(getPath("InputXpathNoWhitespaceAfterLineBreaks.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceAfterCheck.class); @@ -107,20 +107,20 @@ public void testAllowLineBreaks() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceAfterLineBreaks']]" + + "[./IDENT[@text='InputXpathNoWhitespaceAfterLineBreaks']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='s']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceAfterLineBreaks']]" + + "[./IDENT[@text='InputXpathNoWhitespaceAfterLineBreaks']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='s']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceAfterLineBreaks']]" + + "[./IDENT[@text='InputXpathNoWhitespaceAfterLineBreaks']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='s']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceAfterLineBreaks']]" + + "[./IDENT[@text='InputXpathNoWhitespaceAfterLineBreaks']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='s']]" + "/TYPE/DOT[./IDENT[@text='String']]" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceBeforeCaseDefaultColonTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceBeforeCaseDefaultColonTest.java index 96bf40cd534..57fbe7f115a 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceBeforeCaseDefaultColonTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceBeforeCaseDefaultColonTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { public void testOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonOne.java")); + "InputXpathNoWhitespaceBeforeCaseDefaultColonOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceBeforeCaseDefaultColonCheck.class); @@ -54,7 +54,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonOne']]" + + "'InputXpathNoWhitespaceBeforeCaseDefaultColonOne']]" + "/OBJBLOCK/INSTANCE_INIT/SLIST/LITERAL_SWITCH/CASE_GROUP/LITERAL_CASE/COLON" ); @@ -66,7 +66,7 @@ public void testOne() throws Exception { public void testTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonTwo.java")); + "InputXpathNoWhitespaceBeforeCaseDefaultColonTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceBeforeCaseDefaultColonCheck.class); @@ -78,7 +78,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonTwo']]" + + "'InputXpathNoWhitespaceBeforeCaseDefaultColonTwo']]" + "/OBJBLOCK/INSTANCE_INIT/SLIST/LITERAL_SWITCH/CASE_GROUP" + "/LITERAL_DEFAULT/COLON" ); @@ -91,7 +91,7 @@ public void testTwo() throws Exception { public void testThree() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonThree.java")); + "InputXpathNoWhitespaceBeforeCaseDefaultColonThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceBeforeCaseDefaultColonCheck.class); @@ -103,7 +103,7 @@ public void testThree() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonThree']]" + + "'InputXpathNoWhitespaceBeforeCaseDefaultColonThree']]" + "/OBJBLOCK/INSTANCE_INIT/SLIST/LITERAL_SWITCH/CASE_GROUP" + "/LITERAL_CASE/COLON" ); @@ -116,7 +116,7 @@ public void testThree() throws Exception { public void testFour() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonFour.java")); + "InputXpathNoWhitespaceBeforeCaseDefaultColonFour.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceBeforeCaseDefaultColonCheck.class); @@ -128,7 +128,7 @@ public void testFour() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonFour']]" + + "'InputXpathNoWhitespaceBeforeCaseDefaultColonFour']]" + "/OBJBLOCK/INSTANCE_INIT/SLIST/LITERAL_SWITCH/CASE_GROUP" + "/LITERAL_DEFAULT/COLON" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceBeforeTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceBeforeTest.java index 211c2a763d3..65816fd555b 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceBeforeTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionNoWhitespaceBeforeTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testNoWhitespaceBefore() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoWhitespaceBefore.java")); + new File(getPath("InputXpathNoWhitespaceBefore.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceBeforeCheck.class); @@ -52,7 +52,7 @@ public void testNoWhitespaceBefore() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceBefore']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathNoWhitespaceBefore']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/SEMI" ); @@ -63,7 +63,7 @@ public void testNoWhitespaceBefore() throws Exception { @Test public void testTokens() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoWhitespaceBeforeTokens.java")); + new File(getPath("InputXpathNoWhitespaceBeforeTokens.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceBeforeCheck.class); @@ -76,7 +76,7 @@ public void testTokens() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceBeforeTokens']]" + + "[./IDENT[@text='InputXpathNoWhitespaceBeforeTokens']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/TYPE/DOT[./IDENT[@text='String']]" + "/DOT[./IDENT[@text='java']]" @@ -89,7 +89,7 @@ public void testTokens() throws Exception { @Test public void testAllowLineBreaks() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionNoWhitespaceBeforeLineBreaks.java")); + new File(getPath("InputXpathNoWhitespaceBeforeLineBreaks.java")); final DefaultConfiguration moduleConfig = createModuleConfig(NoWhitespaceBeforeCheck.class); @@ -102,7 +102,7 @@ public void testAllowLineBreaks() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionNoWhitespaceBeforeLineBreaks']]" + + "[./IDENT[@text='InputXpathNoWhitespaceBeforeLineBreaks']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='array']]" + "/ASSIGN/ARRAY_INIT/COMMA" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOneStatementPerLineTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOneStatementPerLineTest.java index b36cf561348..d7af3fe0ccf 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOneStatementPerLineTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOneStatementPerLineTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testClassFields() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionOneStatementPerLineOne.java")); + new File(getPath("InputXpathOneStatementPerLineClassFields.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OneStatementPerLineCheck.class); @@ -52,7 +52,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionOneStatementPerLineOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathOneStatementPerLineClassFields']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='j']]/SEMI" ); @@ -61,9 +61,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testForLoopBlock() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionOneStatementPerLineTwo.java")); + new File(getPath("InputXpathOneStatementPerLineForLoopBlock.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OneStatementPerLineCheck.class); @@ -75,7 +75,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionOneStatementPerLineTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathOneStatementPerLineForLoopBlock']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='foo5']]/SLIST/LITERAL_FOR/SLIST/SEMI[2]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOneTopLevelClassTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOneTopLevelClassTest.java index 144ec2db537..9574853414b 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOneTopLevelClassTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOneTopLevelClassTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionOneTopLevelClassFirst.java")); + new File(getPath("InputXpathOneTopLevelClassFirst.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OneTopLevelClassCheck.class); @@ -63,7 +63,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionOneTopLevelClassSecond.java")); + new File(getPath("InputXpathOneTopLevelClassSecond.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OneTopLevelClassCheck.class); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOperatorWrapTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOperatorWrapTest.java index 34713562d1f..28f799392bd 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOperatorWrapTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOperatorWrapTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOperatorWrapNewLine() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionOperatorWrapNewLine.java")); + new File(getPath("InputXpathOperatorWrapNewLine.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OperatorWrapCheck.class); @@ -53,7 +53,7 @@ public void testOperatorWrapNewLine() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionOperatorWrapNewLine']]" + + "='InputXpathOperatorWrapNewLine']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='x']]" + "/ASSIGN/EXPR/MINUS[./NUM_INT[@text='4']]" @@ -67,7 +67,7 @@ public void testOperatorWrapNewLine() throws Exception { @Test public void testOperatorWrapPreviousLine() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionOperatorWrapPreviousLine.java")); + new File(getPath("InputXpathOperatorWrapPreviousLine.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OperatorWrapCheck.class); @@ -81,7 +81,7 @@ public void testOperatorWrapPreviousLine() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionOperatorWrapPreviousLine']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathOperatorWrapPreviousLine']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='b']]" + "/ASSIGN" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOuterTypeFilenameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOuterTypeFilenameTest.java index 95b287be431..b4cc2d80eda 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOuterTypeFilenameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOuterTypeFilenameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testNoPublic() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionOuterTypeFilename1.java")); + "InputXpathOuterTypeFilenameOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OuterTypeFilenameCheck.class); @@ -63,7 +63,7 @@ public void testNoPublic() throws Exception { @Test public void testNested() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionOuterTypeFilename2.java")); + "InputXpathOuterTypeFilenameTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OuterTypeFilenameCheck.class); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOuterTypeNumberTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOuterTypeNumberTest.java index e0637f4e3ef..4ad21fad172 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOuterTypeNumberTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOuterTypeNumberTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionOuterTypeNumberDefault.java")); + new File(getPath("InputXpathOuterTypeNumberDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OuterTypeNumberCheck.class); @@ -61,7 +61,7 @@ public void testDefault() throws Exception { @Test public void testMax() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionOuterTypeNumber.java")); + new File(getPath("InputXpathOuterTypeNumber.java")); final DefaultConfiguration moduleConfig = createModuleConfig(OuterTypeNumberCheck.class); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOverloadMethodsDeclarationOrderTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOverloadMethodsDeclarationOrderTest.java index 0245e3d9e18..170432f7933 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOverloadMethodsDeclarationOrderTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionOverloadMethodsDeclarationOrderTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionOverloadMethodsDeclarationOrder1.java")); + getPath("InputXpathOverloadMethodsDeclarationOrderDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -52,13 +52,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionOverloadMethodsDeclarationOrder1']]" + + "[@text='InputXpathOverloadMethodsDeclarationOrderDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='overloadMethod']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionOverloadMethodsDeclarationOrder1']]" + + "[@text='InputXpathOverloadMethodsDeclarationOrderDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='overloadMethod']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT" - + "[@text='SuppressionXpathRegressionOverloadMethodsDeclarationOrder1']]" + + "[@text='InputXpathOverloadMethodsDeclarationOrderDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='overloadMethod']]" + "/MODIFIERS/LITERAL_PUBLIC" ); @@ -67,9 +67,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testAnonymous() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionOverloadMethodsDeclarationOrder2.java")); + getPath("InputXpathOverloadMethodsDeclarationOrderAnonymous.java")); final DefaultConfiguration moduleConfig = createModuleConfig(clazz); @@ -80,19 +80,19 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionOverloadMethodsDeclarationOrder2']]" + + "'InputXpathOverloadMethodsDeclarationOrderAnonymous']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text=" - + "'MySuppressionXpathRegressionOverloadMethodsDeclarationOrder2']]" + + "'MyInputXpathOverloadMethodsDeclarationOrderAnonymous']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='overloadMethod']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionOverloadMethodsDeclarationOrder2']]" + + "'InputXpathOverloadMethodsDeclarationOrderAnonymous']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text=" - + "'MySuppressionXpathRegressionOverloadMethodsDeclarationOrder2']]" + + "'MyInputXpathOverloadMethodsDeclarationOrderAnonymous']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='overloadMethod']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionOverloadMethodsDeclarationOrder2']]" + + "'InputXpathOverloadMethodsDeclarationOrderAnonymous']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text=" - + "'MySuppressionXpathRegressionOverloadMethodsDeclarationOrder2']]" + + "'MyInputXpathOverloadMethodsDeclarationOrderAnonymous']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='overloadMethod']]" + "/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageAnnotationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageAnnotationTest.java index 016dddd58d8..72dc53cfc8c 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageAnnotationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageAnnotationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { public void testOne() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionPackageAnnotationOne.java")); + "InputXpathPackageAnnotationOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(PackageAnnotationCheck.class); @@ -62,7 +62,7 @@ public void testOne() throws Exception { public void testTwo() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionPackageAnnotationTwo.java")); + "InputXpathPackageAnnotationTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(PackageAnnotationCheck.class); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageDeclarationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageDeclarationTest.java index bf36bc68798..44d90d015e3 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageDeclarationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageDeclarationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void test1() throws Exception { + public void testWrongPackage() throws Exception { final File fileToProcess = - new File(getNonCompilablePath("SuppressionXpathRegression1.java")); + new File(getNonCompilablePath("InputXpathWrongPackage.java")); final DefaultConfiguration moduleConfig = createModuleConfig(PackageDeclarationCheck.class); @@ -59,9 +59,9 @@ public void test1() throws Exception { } @Test - public void test2() throws Exception { + public void testMissingPackage() throws Exception { final File fileToProcess = - new File(getNonCompilablePath("SuppressionXpathRegression2.java")); + new File(getNonCompilablePath("InputXpathMissingPackage.java")); final DefaultConfiguration moduleConfig = createModuleConfig(PackageDeclarationCheck.class); @@ -73,11 +73,11 @@ public void test2() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRegression2']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathMissingPackage']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegression2']]/MODIFIERS", + + "[./IDENT[@text='InputXpathMissingPackage']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegression2']]/MODIFIERS/LITERAL_PUBLIC" + + "[./IDENT[@text='InputXpathMissingPackage']]/MODIFIERS/LITERAL_PUBLIC" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageNameTest.java new file mode 100644 index 00000000000..11feafb1fef --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPackageNameTest.java @@ -0,0 +1,124 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck.MSG_KEY; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck; + +public class XpathRegressionPackageNameTest extends AbstractXpathTestSupport { + + private final String checkName = PackageNameCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testOne() throws Exception { + + final File fileToProcess = + new File(getPath("InputXpathPackageNameOne.java")); + + final String pattern = "[A-Z]+"; + + final DefaultConfiguration moduleConfig = createModuleConfig(PackageNameCheck.class); + moduleConfig.addProperty("format", pattern); + + final String[] expectedViolation = { + "1:9: " + getCheckMessage(PackageNameCheck.class, MSG_KEY, + "org.checkstyle.suppressionxpathfilter.packagename", + pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/PACKAGE_DEF/DOT" + + "[./IDENT[@text='packagename']]/DOT" + + "[./IDENT[@text='suppressionxpathfilter']]" + + "/DOT/IDENT[@text='org']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + + } + + @Test + public void testThree() throws Exception { + + final File fileToProcess = + new File(getNonCompilablePath("InputXpathPackageNameThree.java")); + + final String pattern = "^[a-z]+(\\.[a-z][a-z0-9]*)*$"; + + final DefaultConfiguration moduleConfig = createModuleConfig(PackageNameCheck.class); + moduleConfig.addProperty("format", pattern); + final String[] expectedViolations = { + "1:9: " + getCheckMessage(PackageNameCheck.class, MSG_KEY, + "org.checkstyle.suppressionxpathfilter.PACKAGENAME", + pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/PACKAGE_DEF/DOT[./IDENT" + + "[@text='PACKAGENAME']]/DOT[./IDENT" + + "[@text='suppressionxpathfilter']]" + + "/DOT/IDENT[@text='org']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, + expectedXpathQueries); + } + + @Test + public void testTwo() throws Exception { + + final File fileToProcess = + new File(getPath("InputXpathPackageNameTwo.java")); + + final String pattern = "[A-Z]+"; + + final DefaultConfiguration moduleConfig = createModuleConfig(PackageNameCheck.class); + moduleConfig.addProperty("format", pattern); + + final String[] expectedViolation = { + "2:9: " + getCheckMessage(PackageNameCheck.class, MSG_KEY, + "org.checkstyle.suppressionxpathfilter.packagename", + pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/PACKAGE_DEF/DOT" + + "[./IDENT[@text='packagename']]/DOT" + + "[./IDENT[@text='suppressionxpathfilter']]" + + "/DOT/IDENT[@text='org']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterAssignmentTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterAssignmentTest.java new file mode 100644 index 00000000000..578924da6e4 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterAssignmentTest.java @@ -0,0 +1,124 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.coding.ParameterAssignmentCheck.MSG_KEY; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.ParameterAssignmentCheck; + +public class XpathRegressionParameterAssignmentTest extends AbstractXpathTestSupport { + + @Override + protected String getCheckName() { + return ParameterAssignmentCheck.class.getSimpleName(); + } + + @Test + public void testMethods() throws Exception { + final String filePath = + getPath("InputXpathParameterAssignmentMethods.java"); + final File fileToProcess = new File(filePath); + + final DefaultConfiguration moduleConfig = + createModuleConfig(ParameterAssignmentCheck.class); + + final String[] expectedViolations = { + "9:15: " + getCheckMessage(ParameterAssignmentCheck.class, MSG_KEY, "field"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathParameterAssignmentMethods']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='Test1']]/SLIST/EXPR" + + "[./PLUS_ASSIGN/IDENT[@text='field']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathParameterAssignmentMethods']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='Test1']]" + + "/SLIST/EXPR/PLUS_ASSIGN[./IDENT[@text='field']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + + } + + @Test + public void testLambdas() throws Exception { + final String filePath = + getPath("InputXpathParameterAssignmentLambdas.java"); + final File fileToProcess = new File(filePath); + + final DefaultConfiguration moduleConfig = + createModuleConfig(ParameterAssignmentCheck.class); + + final String[] expectedViolations = { + "9:32: " + getCheckMessage(ParameterAssignmentCheck.class, MSG_KEY, "q"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathParameterAssignmentLambdas']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='obj1']]" + + "/ASSIGN/LAMBDA[./IDENT[@text='q']]/EXPR", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathParameterAssignmentLambdas']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='obj1']]/ASSIGN/LAMBDA[./IDENT[" + + "@text='q']]/EXPR/POST_INC[./IDENT[@text='q']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testCtor() throws Exception { + final String filePath = + getPath("InputXpathParameterAssignmentCtor.java"); + final File fileToProcess = new File(filePath); + + final DefaultConfiguration moduleConfig = + createModuleConfig(ParameterAssignmentCheck.class); + + final String[] expectedViolations = { + "9:15: " + getCheckMessage(ParameterAssignmentCheck.class, MSG_KEY, "field"), + }; + + final List expectedXpathQueries = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathParameterAssignmentCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathParameterAssignmentCtor']]" + + "/SLIST/EXPR[./PLUS_ASSIGN/IDENT[@text='field']]", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathParameterAssignmentCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[" + + "@text='InputXpathParameterAssignmentCtor']]" + + "/SLIST/EXPR/PLUS_ASSIGN[./IDENT[@text='field']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterNameTest.java index 9739fe18e37..9c58147781a 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testDefaultPattern() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionParameterNameDefaultPattern.java")); + new File(getPath("InputXpathParameterNameDefaultPattern.java")); final String pattern = "^[a-z][a-zA-Z0-9]*$"; final DefaultConfiguration moduleConfig = @@ -55,7 +55,7 @@ public void testDefaultPattern() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionParameterNameDefaultPattern']]" + + "='InputXpathParameterNameDefaultPattern']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method1']]" + "/PARAMETERS/PARAMETER_DEF/IDENT[@text='v_1']" ); @@ -66,7 +66,7 @@ public void testDefaultPattern() throws Exception { @Test public void testDifferentPattern() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionParameterNameDifferentPattern.java")); + new File(getPath("InputXpathParameterNameDifferentPattern.java")); final String pattern = "^[a-z][_a-zA-Z0-9]+$"; final DefaultConfiguration moduleConfig = @@ -81,7 +81,7 @@ public void testDifferentPattern() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionParameterNameDifferentPattern']]" + + "='InputXpathParameterNameDifferentPattern']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method2']]" + "/PARAMETERS/PARAMETER_DEF/IDENT[@text='V2']" ); @@ -92,7 +92,7 @@ public void testDifferentPattern() throws Exception { @Test public void testIgnoreOverridden() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionParameterNameIgnoreOverridden.java")); + new File(getPath("InputXpathParameterNameIgnoreOverridden.java")); final String pattern = "^[a-z][a-zA-Z0-9]*$"; final DefaultConfiguration moduleConfig = @@ -107,7 +107,7 @@ public void testIgnoreOverridden() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionParameterNameIgnoreOverridden']]" + + "='InputXpathParameterNameIgnoreOverridden']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method2']]" + "/PARAMETERS/PARAMETER_DEF/IDENT[@text='V2']" ); @@ -118,7 +118,7 @@ public void testIgnoreOverridden() throws Exception { @Test public void testAccessModifiers() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionParameterNameAccessModifier.java")); + new File(getPath("InputXpathParameterNameAccessModifier.java")); final String pattern = "^[a-z][a-z0-9][a-zA-Z0-9]*$"; final DefaultConfiguration moduleConfig = @@ -134,7 +134,7 @@ public void testAccessModifiers() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionParameterNameAccessModifier']]" + + "='InputXpathParameterNameAccessModifier']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method2']]" + "/PARAMETERS/PARAMETER_DEF/IDENT[@text='b']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterNumberTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterNumberTest.java new file mode 100644 index 00000000000..6e110fd7e2c --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParameterNumberTest.java @@ -0,0 +1,132 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.sizes.ParameterNumberCheck.MSG_KEY; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.sizes.ParameterNumberCheck; + +public class XpathRegressionParameterNumberTest extends AbstractXpathTestSupport { + + @Override + protected String getCheckName() { + return ParameterNumberCheck.class.getSimpleName(); + } + + @Test + public void testDefault() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathParameterNumberDefault.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(ParameterNumberCheck.class); + + final String[] expectedViolations = { + "5:10: " + getCheckMessage(ParameterNumberCheck.class, MSG_KEY, 7, 11), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathParameterNumberDefault']]" + + "/OBJBLOCK/METHOD_DEF/IDENT[@text='myMethod']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + + } + + @Test + public void testMethods() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathParameterNumberMethods.java")); + + final DefaultConfiguration moduleConfig = createModuleConfig(ParameterNumberCheck.class); + moduleConfig.addProperty("max", "10"); + moduleConfig.addProperty("tokens", "METHOD_DEF"); + + final String[] expectedViolations = { + "7:10: " + getCheckMessage(ParameterNumberCheck.class, MSG_KEY, 10, 11), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathParameterNumberMethods']]" + + "/OBJBLOCK/METHOD_DEF/IDENT[@text='myMethod']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testIgnoreOverriddenMethods() throws Exception { + final String filePath = + getPath("InputXpathParameterNumberIgnoreOverriddenMethods.java"); + final File fileToProcess = new File(filePath); + + final DefaultConfiguration moduleConfig = createModuleConfig(ParameterNumberCheck.class); + moduleConfig.addProperty("ignoreOverriddenMethods", "true"); + + final String[] expectedViolations = { + "6:13: " + getCheckMessage(ParameterNumberCheck.class, MSG_KEY, 7, 8), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathParameterNumberIgnoreOverriddenMethods']]" + + "/OBJBLOCK/CTOR_DEF/IDENT" + + "[@text='InputXpathParameterNumberIgnoreOverriddenMethods']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } + + @Test + public void testIgnoreAnnotatedBy() throws Exception { + final String filePath = + getPath("InputXpathParameterNumberIgnoreAnnotatedBy.java"); + final File fileToProcess = new File(filePath); + + final DefaultConfiguration moduleConfig = createModuleConfig(ParameterNumberCheck.class); + moduleConfig.addProperty("ignoreAnnotatedBy", "MyAnno"); + moduleConfig.addProperty("max", "2"); + + final String[] expectedViolations = { + "15:34: " + getCheckMessage(ParameterNumberCheck.class, MSG_KEY, 2, 3), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathParameterNumberIgnoreAnnotatedBy']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]" + + "/OBJBLOCK/STATIC_INIT/SLIST/EXPR/LITERAL_NEW[./IDENT[@text='Object']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]" + + "/SLIST/LITERAL_IF/SLIST/EXPR/LITERAL_NEW[./IDENT[@text='Object']]" + + "/OBJBLOCK/METHOD_DEF/IDENT[@text='checkedMethod']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParenPadTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParenPadTest.java index 9435a63a72e..4f8c22931e9 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParenPadTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionParenPadTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { @Test public void testLeftFollowed() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionParenPadLeftFollowed.java")); + new File(getPath("InputXpathParenPadLeftFollowed.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ParenPadCheck.class); @@ -54,7 +54,7 @@ public void testLeftFollowed() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionParenPadLeftFollowed']]" + + "[./IDENT[@text='InputXpathParenPadLeftFollowed']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_IF/LPAREN" ); @@ -65,7 +65,7 @@ public void testLeftFollowed() throws Exception { @Test public void testLeftNotFollowed() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionParenPadLeftNotFollowed.java")); + new File(getPath("InputXpathParenPadLeftNotFollowed.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ParenPadCheck.class); @@ -78,7 +78,7 @@ public void testLeftNotFollowed() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionParenPadLeftNotFollowed']]" + + "[./IDENT[@text='InputXpathParenPadLeftNotFollowed']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_IF/LPAREN" ); @@ -89,7 +89,7 @@ public void testLeftNotFollowed() throws Exception { @Test public void testRightPreceded() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionParenPadRightPreceded.java")); + new File(getPath("InputXpathParenPadRightPreceded.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ParenPadCheck.class); @@ -101,7 +101,7 @@ public void testRightPreceded() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionParenPadRightPreceded']]" + + "[./IDENT[@text='InputXpathParenPadRightPreceded']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_IF/RPAREN" ); @@ -112,7 +112,7 @@ public void testRightPreceded() throws Exception { @Test public void testRightNotPreceded() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionParenPadRightNotPreceded.java")); + new File(getPath("InputXpathParenPadRightNotPreceded.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ParenPadCheck.class); @@ -125,7 +125,7 @@ public void testRightNotPreceded() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionParenPadRightNotPreceded']]" + + "[./IDENT[@text='InputXpathParenPadRightNotPreceded']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='method']]/SLIST/LITERAL_IF/RPAREN" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPatternVariableNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPatternVariableNameTest.java index 5886fca71e3..4b71fc653ac 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPatternVariableNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionPatternVariableNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { public void testOne() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionPatternVariableName1.java")); + "InputXpathPatternVariableNameOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(PatternVariableNameCheck.class); @@ -56,7 +56,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionPatternVariableName1']]" + + "[./IDENT[@text='InputXpathPatternVariableNameOne']]" + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='MyClass']]/SLIST/LITERAL_IF/EXPR/" + "LITERAL_INSTANCEOF[./IDENT[@text='o1']]/PATTERN_VARIABLE_DEF/" + "IDENT[@text='STRING1']" @@ -70,7 +70,7 @@ public void testOne() throws Exception { public void testTwo() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionPatternVariableName2.java")); + "InputXpathPatternVariableNameTwo.java")); final String nonDefaultPattern = "^_[a-zA-Z0-9]*$"; @@ -85,7 +85,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionPatternVariableName2']]" + + "[./IDENT[@text='InputXpathPatternVariableNameTwo']]" + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='MyClass']]/SLIST/LITERAL_IF/EXPR/" + "LITERAL_INSTANCEOF[./IDENT[@text='o1']]/" + "PATTERN_VARIABLE_DEF/IDENT[@text='s']" @@ -99,7 +99,7 @@ public void testTwo() throws Exception { public void testThree() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionPatternVariableName3.java")); + "InputXpathPatternVariableNameThree.java")); final String nonDefaultPattern = "^[a-z](_?[a-zA-Z0-9]+)*$"; @@ -114,7 +114,7 @@ public void testThree() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionPatternVariableName3']]" + + "[./IDENT[@text='InputXpathPatternVariableNameThree']]" + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='MyClass']]/SLIST/LITERAL_IF/" + "EXPR/LITERAL_INSTANCEOF[./IDENT[@text='o1']]/" + "PATTERN_VARIABLE_DEF/IDENT[@text='STR']" @@ -128,7 +128,7 @@ public void testThree() throws Exception { public void testFour() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionPatternVariableName4.java")); + "InputXpathPatternVariableNameFour.java")); final String nonDefaultPattern = "^[a-z][_a-zA-Z0-9]{2,}$"; @@ -143,7 +143,7 @@ public void testFour() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionPatternVariableName1']]" + + "[./IDENT[@text='InputXpathPatternVariableNameFour']]" + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='MyClass']]/SLIST/LITERAL_IF/EXPR/" + "LITERAL_INSTANCEOF[./IDENT[@text='o1']]/" + "PATTERN_VARIABLE_DEF/IDENT[@text='st']" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordComponentNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordComponentNameTest.java index 561e3d2a7a4..29a365b56df 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordComponentNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordComponentNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRecordComponentName1.java")); + "InputXpathRecordComponentNameDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RecordComponentNameCheck.class); @@ -53,7 +53,7 @@ public void testOne() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( - "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='SuppressionXpathRecordComponentName1']]" + "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='InputXpathRecordComponentNameDefault']]" + "/RECORD_COMPONENTS/RECORD_COMPONENT_DEF/IDENT[@text='_value']" ); @@ -62,9 +62,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testFormat() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRecordComponentName2.java")); + "InputXpathRecordComponentNameFormat.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RecordComponentNameCheck.class); @@ -78,7 +78,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRecordComponentName2']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathRecordComponentNameFormat']]/OBJBLOCK" + "/RECORD_DEF[./IDENT[@text='MyRecord']]" + "/RECORD_COMPONENTS/RECORD_COMPONENT_DEF/IDENT[@text='otherValue']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordComponentNumberTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordComponentNumberTest.java index a87a7044018..7ccafe659e8 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordComponentNumberTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordComponentNumberTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRecordComponentNumber1.java")); + "InputXpathRecordComponentNumberDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RecordComponentNumberCheck.class); @@ -52,10 +52,10 @@ public void testOne() throws Exception { }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='SuppressionXpathRecordComponentNumber1']]", - "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='SuppressionXpathRecordComponentNumber1']]" + "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='InputXpathRecordComponentNumberDefault']]", + "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='InputXpathRecordComponentNumberDefault']]" + "/MODIFIERS", - "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='SuppressionXpathRecordComponentNumber1']]" + "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='InputXpathRecordComponentNumberDefault']]" + "/MODIFIERS/LITERAL_PUBLIC" ); @@ -64,9 +64,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testCustomMax() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRecordComponentNumber2.java")); + "InputXpathRecordComponentNumberCustomMax.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RecordComponentNumberCheck.class); @@ -79,11 +79,11 @@ public void testTwo() throws Exception { }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRecordComponentNumber2']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathRecordComponentNumberCustomMax']]" + "/OBJBLOCK/RECORD_DEF[./IDENT[@text='MyRecord']]", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRecordComponentNumber2']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathRecordComponentNumberCustomMax']]" + "/OBJBLOCK/RECORD_DEF[./IDENT[@text='MyRecord']]/MODIFIERS", - "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='SuppressionXpathRecordComponentNumber2']]" + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text='InputXpathRecordComponentNumberCustomMax']]" + "/OBJBLOCK/RECORD_DEF[./IDENT[@text='MyRecord']]/MODIFIERS" + "/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordTypeParameterNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordTypeParameterNameTest.java index b1562cacb84..441e96a20c2 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordTypeParameterNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRecordTypeParameterNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testTypeDeclared() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionRecordTypeParameterName1.java")); + "InputXpathRecordTypeParameterNameTypeDeclared.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RecordTypeParameterNameCheck.class); @@ -49,14 +49,16 @@ public void testOne() throws Exception { final String pattern = "^[A-Z]$"; final String[] expectedViolation = { - "7:15: " + getCheckMessage(RecordTypeParameterNameCheck.class, + "7:55: " + getCheckMessage(RecordTypeParameterNameCheck.class, AbstractNameCheck.MSG_INVALID_PATTERN, "foo", pattern), }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='Other']]/" + "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='" + + "InputXpathRecordTypeParameterNameTypeDeclared']]/" + "TYPE_PARAMETERS/TYPE_PARAMETER[./IDENT[@text='foo']]", - "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='Other']]/TYPE_PARAMETERS/" + "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='" + + "InputXpathRecordTypeParameterNameTypeDeclared']]/TYPE_PARAMETERS/" + "TYPE_PARAMETER/IDENT[@text='foo']" ); @@ -65,9 +67,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testTypeDefault() throws Exception { final File fileToProcess = new File(getNonCompilablePath( - "SuppressionXpathRegressionRecordTypeParameterName2.java")); + "InputXpathRecordTypeParameterNameTypeDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RecordTypeParameterNameCheck.class); @@ -75,14 +77,16 @@ public void testTwo() throws Exception { final String pattern = "^[A-Z]$"; final String[] expectedViolation = { - "4:44: " + getCheckMessage(RecordTypeParameterNameCheck.class, + "4:60: " + getCheckMessage(RecordTypeParameterNameCheck.class, AbstractNameCheck.MSG_INVALID_PATTERN, "t", pattern), }; final List expectedXpathQueries = Arrays.asList( - "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='InputRecordTypeParameterName']]" + "/COMPILATION_UNIT/RECORD_DEF[./IDENT" + + "[@text='InputXpathRecordTypeParameterNameTypeDefault']]" + "/TYPE_PARAMETERS/TYPE_PARAMETER[./IDENT[@text='t']]", - "/COMPILATION_UNIT/RECORD_DEF[./IDENT[@text='InputRecordTypeParameterName']]" + "/COMPILATION_UNIT/RECORD_DEF[./IDENT" + + "[@text='InputXpathRecordTypeParameterNameTypeDefault']]" + "/TYPE_PARAMETERS/TYPE_PARAMETER/IDENT[@text='t']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRedundantImportTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRedundantImportTest.java index 811a33c17af..92660e2b8ad 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRedundantImportTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRedundantImportTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,15 +38,15 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testInternal() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRedundantImport1.java")); + new File(getPath("InputXpathRedundantImportInternal.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RedundantImportCheck.class); final String[] expectedViolation = { "3:1: " + getCheckMessage(RedundantImportCheck.class, RedundantImportCheck.MSG_SAME, "org.checkstyle.suppressionxpathfilter" - + ".redundantimport.SuppressionXpathRegressionRedundantImport1"), + + ".redundantimport.InputXpathRedundantImportInternal"), }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/IMPORT"); @@ -56,9 +56,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testLibrary() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRedundantImport2.java")); + new File(getPath("InputXpathRedundantImportLibrary.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RedundantImportCheck.class); final String[] expectedViolation = { @@ -73,9 +73,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testDuplicate() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRedundantImport3.java")); + new File(getPath("InputXpathRedundantImportDuplicate.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RedundantImportCheck.class); final String[] expectedViolation = { diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRequireThisTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRequireThisTest.java index adae07eb709..44ddf2e7158 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRequireThisTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRequireThisTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRequireThisOne.java")); + new File(getPath("InputXpathRequireThisOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RequireThisCheck.class); @@ -53,7 +53,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionRequireThisOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathRequireThisOne']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='changeAge']]/SLIST/EXPR/ASSIGN" + "/IDENT[@text='age']" ); @@ -65,7 +65,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRequireThisTwo.java")); + new File(getPath("InputXpathRequireThisTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RequireThisCheck.class); @@ -78,7 +78,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionRequireThisTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathRequireThisTwo']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='method2']]/SLIST/EXPR" + "/METHOD_CALL/IDENT[@text='method1']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionReturnCountTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionReturnCountTest.java index 5e2fae8cd76..ebaa7c8bbab 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionReturnCountTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionReturnCountTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -36,9 +36,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testVoid() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionReturnCount1.java") + getPath("InputXpathReturnCountVoid.java") ); final DefaultConfiguration moduleConfig = @@ -51,16 +51,16 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount1']]" + + "[./IDENT[@text='InputXpathReturnCountVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testVoid']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount1']]" + + "[./IDENT[@text='InputXpathReturnCountVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testVoid']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount1']]" + + "[./IDENT[@text='InputXpathReturnCountVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testVoid']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount1']]" + + "[./IDENT[@text='InputXpathReturnCountVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testVoid']]/TYPE/LITERAL_VOID" ); @@ -68,9 +68,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testCustomMaxForVoid() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionReturnCount1.java") + getPath("InputXpathReturnCountVoid.java") ); final DefaultConfiguration moduleConfig = @@ -85,16 +85,16 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount1']]" + + "[./IDENT[@text='InputXpathReturnCountVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testVoid']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount1']]" + + "[./IDENT[@text='InputXpathReturnCountVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testVoid']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount1']]" + + "[./IDENT[@text='InputXpathReturnCountVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testVoid']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount1']]" + + "[./IDENT[@text='InputXpathReturnCountVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testVoid']]/TYPE/LITERAL_VOID" ); @@ -102,9 +102,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testNonVoid() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionReturnCount2.java") + getPath("InputXpathReturnCountNonVoid.java") ); final DefaultConfiguration moduleConfig = @@ -117,16 +117,16 @@ public void testThree() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount2']]" + + "[./IDENT[@text='InputXpathReturnCountNonVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testNonVoid']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount2']]" + + "[./IDENT[@text='InputXpathReturnCountNonVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testNonVoid']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount2']]" + + "[./IDENT[@text='InputXpathReturnCountNonVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testNonVoid']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount2']]" + + "[./IDENT[@text='InputXpathReturnCountNonVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testNonVoid']]/TYPE/LITERAL_BOOLEAN" ); @@ -134,9 +134,9 @@ public void testThree() throws Exception { } @Test - public void testFour() throws Exception { + public void testCustomMax() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionReturnCount2.java") + getPath("InputXpathReturnCountNonVoid.java") ); final DefaultConfiguration moduleConfig = @@ -151,16 +151,16 @@ public void testFour() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount2']]" + + "[./IDENT[@text='InputXpathReturnCountNonVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testNonVoid']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount2']]" + + "[./IDENT[@text='InputXpathReturnCountNonVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testNonVoid']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount2']]" + + "[./IDENT[@text='InputXpathReturnCountNonVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testNonVoid']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount2']]" + + "[./IDENT[@text='InputXpathReturnCountNonVoid']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testNonVoid']]/TYPE/LITERAL_BOOLEAN" ); @@ -168,9 +168,9 @@ public void testFour() throws Exception { } @Test - public void testFive() throws Exception { + public void testCtor() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionReturnCount3.java") + getPath("InputXpathReturnCountCtor.java") ); final DefaultConfiguration moduleConfig = @@ -183,24 +183,24 @@ public void testFive() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount3']]" - + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='SuppressionXpathRegressionReturnCount3']]", + + "[./IDENT[@text='InputXpathReturnCountCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='InputXpathReturnCountCtor']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount3']]" - + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='SuppressionXpathRegressionReturnCount3']]" + + "[./IDENT[@text='InputXpathReturnCountCtor']]" + + "/OBJBLOCK/CTOR_DEF[./IDENT[@text='InputXpathReturnCountCtor']]" + "/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount3']]" - + "/OBJBLOCK/CTOR_DEF/IDENT[@text='SuppressionXpathRegressionReturnCount3']" + + "[./IDENT[@text='InputXpathReturnCountCtor']]" + + "/OBJBLOCK/CTOR_DEF/IDENT[@text='InputXpathReturnCountCtor']" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); } @Test - public void testSix() throws Exception { + public void testLambda() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionReturnCount4.java") + getPath("InputXpathReturnCountLambda.java") ); final DefaultConfiguration moduleConfig = @@ -213,7 +213,7 @@ public void testSix() throws Exception { final List expectedXpathQueries = List.of( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionReturnCount4']]" + + "[./IDENT[@text='InputXpathReturnCountLambda']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testLambda']]/SLIST" + "/VARIABLE_DEF[./IDENT[@text='a']]/ASSIGN/LAMBDA[./IDENT[@text='i']]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRightCurlyTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRightCurlyTest.java index f379b3910f4..015aad489e0 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRightCurlyTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionRightCurlyTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRightCurlyOne.java")); + new File(getPath("InputXpathRightCurlyOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RightCurlyCheck.class); @@ -53,7 +53,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionRightCurlyOne']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathRightCurlyOne']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_IF/SLIST/RCURLY" ); @@ -64,7 +64,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRightCurlyTwo.java")); + new File(getPath("InputXpathRightCurlyTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RightCurlyCheck.class); @@ -77,7 +77,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionRightCurlyTwo']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathRightCurlyTwo']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='fooMethod']]/SLIST/LITERAL_TRY/SLIST/RCURLY" ); @@ -88,7 +88,7 @@ public void testTwo() throws Exception { @Test public void testThree() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRightCurlyThree.java")); + new File(getPath("InputXpathRightCurlyThree.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RightCurlyCheck.class); @@ -101,7 +101,7 @@ public void testThree() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionRightCurlyThree']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathRightCurlyThree']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='sample']]/SLIST/LITERAL_IF/SLIST/RCURLY" ); @@ -112,7 +112,7 @@ public void testThree() throws Exception { @Test public void testFour() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionRightCurlyFour.java")); + new File(getPath("InputXpathRightCurlyFour.java")); final DefaultConfiguration moduleConfig = createModuleConfig(RightCurlyCheck.class); @@ -125,7 +125,7 @@ public void testFour() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionRightCurlyFour']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathRightCurlyFour']]/OBJBLOCK" + "/METHOD_DEF[./IDENT[@text='sample']]/SLIST/LITERAL_IF/SLIST/RCURLY" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSimplifyBooleanExpressionTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSimplifyBooleanExpressionTest.java new file mode 100644 index 00000000000..6c92201aedc --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSimplifyBooleanExpressionTest.java @@ -0,0 +1,114 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck.MSG_KEY; + +import java.io.File; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck; + +public class XpathRegressionSimplifyBooleanExpressionTest extends AbstractXpathTestSupport { + + @Override + protected String getCheckName() { + return SimplifyBooleanExpressionCheck.class.getSimpleName(); + } + + @Test + public void testSimple() throws Exception { + final String fileName = "InputXpathSimplifyBooleanExpressionSimple.java"; + final File fileToProcess = new File(getPath(fileName)); + + final DefaultConfiguration moduleConfig = + createModuleConfig(SimplifyBooleanExpressionCheck.class); + + final String[] expectedViolations = { + "8:13: " + getCheckMessage(SimplifyBooleanExpressionCheck.class, MSG_KEY), + }; + + final List expectedXpathQuery = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathSimplifyBooleanExpressionSimple']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_IF/EXPR", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathSimplifyBooleanExpressionSimple']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]/SLIST/LITERAL_IF/EXPR/LNOT" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQuery); + } + + @Test + public void testAnonymous() throws Exception { + final String fileName = + "InputXpathSimplifyBooleanExpressionAnonymous.java"; + final File fileToProcess = new File(getPath(fileName)); + + final DefaultConfiguration moduleConfig = + createModuleConfig(SimplifyBooleanExpressionCheck.class); + + final String[] expectedViolations = { + "8:19: " + getCheckMessage(SimplifyBooleanExpressionCheck.class, MSG_KEY), + }; + + final List expectedXpathQuery = Arrays.asList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathSimplifyBooleanExpressionAnonymous']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]/OBJBLOCK/METHOD_DEF" + + "[./IDENT[@text='test']]/SLIST/LITERAL_IF/EXPR", + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathSimplifyBooleanExpressionAnonymous']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Inner']]/OBJBLOCK/METHOD_DEF" + + "[./IDENT[@text='test']]/SLIST/LITERAL_IF/EXPR/EQUAL[./IDENT[@text='a']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQuery); + } + + @Test + public void testInterface() throws Exception { + final String fileName = + "InputXpathSimplifyBooleanExpressionInterface.java"; + final File fileToProcess = new File(getPath(fileName)); + + final DefaultConfiguration moduleConfig = + createModuleConfig(SimplifyBooleanExpressionCheck.class); + + final String[] expectedViolations = { + "7:20: " + getCheckMessage(SimplifyBooleanExpressionCheck.class, MSG_KEY), + }; + + final List expectedXpathQuery = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + + "[@text='InputXpathSimplifyBooleanExpressionInterface']]" + + "/OBJBLOCK/INTERFACE_DEF[./IDENT[@text='Inner']]/OBJBLOCK/METHOD_DEF[./IDENT" + + "[@text='test']]/SLIST/LITERAL_IF/EXPR/LNOT/NOT_EQUAL[./IDENT[@text='b']]" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolations, expectedXpathQuery); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSimplifyBooleanReturnTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSimplifyBooleanReturnTest.java index 809805372a7..ded114ed26f 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSimplifyBooleanReturnTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSimplifyBooleanReturnTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -44,7 +44,7 @@ protected String getCheckName() { public void testIfBooleanEqualsBoolean() throws Exception { final File fileToProcess = new File( getPath( - "SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanEqualsBoolean.java")); + "InputXpathSimplifyBooleanReturnIfBooleanEqualsBoolean.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -54,7 +54,7 @@ public void testIfBooleanEqualsBoolean() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanEqualsBoolean']]" + + "'InputXpathSimplifyBooleanReturnIfBooleanEqualsBoolean']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='toTest']]/SLIST/LITERAL_IF" ); @@ -66,7 +66,7 @@ public void testIfBooleanEqualsBoolean() throws Exception { public void testIfBooleanReturnBoolean() throws Exception { final File fileToProcess = new File( getPath( - "SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanReturnBoolean.java" + "InputXpathSimplifyBooleanReturnIfBooleanReturnBoolean.java" )); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); @@ -77,7 +77,7 @@ public void testIfBooleanReturnBoolean() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanReturnBoolean']]" + + "'InputXpathSimplifyBooleanReturnIfBooleanReturnBoolean']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='toTest']]/SLIST/EXPR/METHOD_CALL/ELIST" + "/LAMBDA[./IDENT[@text='statement']]/SLIST/LITERAL_IF" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSingleSpaceSeparatorTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSingleSpaceSeparatorTest.java index 145646de771..e5ce112504f 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSingleSpaceSeparatorTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSingleSpaceSeparatorTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testSingleSpaceSeparator() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionSingleSpaceSeparator.java")); + new File(getPath("InputXpathSingleSpaceSeparator.java")); final DefaultConfiguration moduleConfig = createModuleConfig(SingleSpaceSeparatorCheck.class); @@ -52,7 +52,7 @@ public void testSingleSpaceSeparator() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionSingleSpaceSeparator']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathSingleSpaceSeparator']]/OBJBLOCK" + "/VARIABLE_DEF/IDENT[@text='bad']" ); @@ -63,7 +63,7 @@ public void testSingleSpaceSeparator() throws Exception { @Test public void testValidateComments() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionSingleSpaceSeparatorValidateComments.java" + "InputXpathSingleSpaceSeparatorValidateComments.java" )); final DefaultConfiguration moduleConfig = @@ -77,7 +77,7 @@ public void testValidateComments() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[." - + "/IDENT[@text='SuppressionXpathRegressionSingleSpaceSeparatorValidateComments']]" + + "/IDENT[@text='InputXpathSingleSpaceSeparatorValidateComments']]" + "/OBJBLOCK/SINGLE_LINE_COMMENT[./COMMENT_CONTENT" + "[@text=' an invalid comment // warn\\n']]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionStaticVariableNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionStaticVariableNameTest.java new file mode 100644 index 00000000000..f52d8c7dbf3 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionStaticVariableNameTest.java @@ -0,0 +1,117 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.naming.AbstractNameCheck; +import com.puppycrawl.tools.checkstyle.checks.naming.StaticVariableNameCheck; + +public class XpathRegressionStaticVariableNameTest extends AbstractXpathTestSupport { + + private final String checkName = StaticVariableNameCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testStaticVariableName() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathStaticVariableName.java")); + + final String pattern = "^[a-z][a-zA-Z0-9]*$"; + final DefaultConfiguration moduleConfig = + createModuleConfig(StaticVariableNameCheck.class); + + final String[] expectedViolation = { + "6:24: " + getCheckMessage(StaticVariableNameCheck.class, + AbstractNameCheck.MSG_INVALID_PATTERN, "NUM2", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text" + + "='InputXpathStaticVariableName']]" + + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='NUM2']" + + ); + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testInnerClassField() throws Exception { + final File fileToProcess = + new File(getNonCompilablePath( + "InputXpathStaticVariableNameInnerClassField.java")); + + final String pattern = "^[a-z][a-zA-Z0-9]*$"; + final DefaultConfiguration moduleConfig = + createModuleConfig(StaticVariableNameCheck.class); + + final String[] expectedViolation = { + "14:24: " + getCheckMessage(StaticVariableNameCheck.class, + AbstractNameCheck.MSG_INVALID_PATTERN, "NUM3", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text" + + "='InputXpathStaticVariableNameInnerClassField']]" + + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='outerMethod']]" + + "/SLIST/CLASS_DEF[./IDENT[@text='MyLocalClass']]" + + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='NUM3']" + ); + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testNoAccessModifier() throws Exception { + final File fileToProcess = + new File(getNonCompilablePath( + "InputXpathStaticVariableNameNoAccessModifier.java")); + + final String pattern = "^[a-z][a-zA-Z0-9]*$"; + final DefaultConfiguration moduleConfig = + createModuleConfig(StaticVariableNameCheck.class); + + final String[] expectedViolation = { + "6:19: " + getCheckMessage(StaticVariableNameCheck.class, + AbstractNameCheck.MSG_INVALID_PATTERN, "NUM3", pattern), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT" + + "/CLASS_DEF[./IDENT[@text" + + "='InputXpathStaticVariableNameNoAccessModifier']]" + + "/OBJBLOCK/INSTANCE_INIT/SLIST/VARIABLE_DEF/IDENT[@text='NUM3']" + ); + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionStringLiteralEqualityTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionStringLiteralEqualityTest.java index 289dd0c0572..9a742742bf8 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionStringLiteralEqualityTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionStringLiteralEqualityTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testEqualityTrue() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionStringLiteralEquality.java")); + new File(getPath("InputXpathStringLiteralEqualityTrue.java")); final DefaultConfiguration moduleConfig = createModuleConfig(StringLiteralEqualityCheck.class); final String[] expectedViolation = { @@ -50,11 +50,11 @@ public void testOne() throws Exception { }; final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionStringLiteralEquality']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathStringLiteralEqualityTrue']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myFunction']]" + "/SLIST/LITERAL_IF/EXPR", "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionStringLiteralEquality']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathStringLiteralEqualityTrue']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myFunction']]" + "/SLIST/LITERAL_IF/EXPR/EQUAL[./IDENT[@text='foo']]" @@ -65,9 +65,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testEqualityFalse() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionStringLiteralEquality1.java")); + new File(getPath("InputXpathStringLiteralEqualityFalse.java")); final DefaultConfiguration moduleConfig = createModuleConfig(StringLiteralEqualityCheck.class); final String[] expectedViolation = { @@ -76,11 +76,11 @@ public void testTwo() throws Exception { }; final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionStringLiteralEquality1']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathStringLiteralEqualityFalse']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myFunction']]" + "/SLIST/LITERAL_WHILE/EXPR", "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionStringLiteralEquality1']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathStringLiteralEqualityFalse']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myFunction']]" + "/SLIST/LITERAL_WHILE/EXPR/NOT_EQUAL[./IDENT[@text='foo']]" @@ -91,9 +91,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testEqualityExp() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionStringLiteralEquality2.java")); + new File(getPath("InputXpathStringLiteralEqualityExp.java")); final DefaultConfiguration moduleConfig = createModuleConfig(StringLiteralEqualityCheck.class); final String[] expectedViolation = { @@ -102,7 +102,7 @@ public void testThree() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionStringLiteralEquality2']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathStringLiteralEqualityExp']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myFunction']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='flag']]" + "/ASSIGN/EXPR/EQUAL[./IDENT[@text='foo']]" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSuperCloneTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSuperCloneTest.java new file mode 100644 index 00000000000..0e06c358ebf --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionSuperCloneTest.java @@ -0,0 +1,106 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheck; +import com.puppycrawl.tools.checkstyle.checks.coding.SuperCloneCheck; + +public class XpathRegressionSuperCloneTest extends AbstractXpathTestSupport { + + @Override + protected String getCheckName() { + return SuperCloneCheck.class.getSimpleName(); + } + + @Test + public void testInnerClone() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathSuperCloneInnerClone.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(SuperCloneCheck.class); + + final String[] expectedViolation = { + "6:23: " + getCheckMessage(SuperCloneCheck.class, AbstractSuperCheck.MSG_KEY, "clone"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathSuperCloneInnerClone']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClone']]" + + "/OBJBLOCK/METHOD_DEF/IDENT[@text='clone']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testNoSuperClone() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathSuperCloneNoSuperClone.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(SuperCloneCheck.class); + + final String[] expectedViolation = { + "6:23: " + getCheckMessage(SuperCloneCheck.class, AbstractSuperCheck.MSG_KEY, "clone"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathSuperCloneNoSuperClone']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='NoSuperClone']]" + + "/OBJBLOCK/METHOD_DEF/IDENT[@text='clone']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } + + @Test + public void testPlainAndSubclasses() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathSuperClonePlainAndSubclasses.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(SuperCloneCheck.class); + + final String[] expectedViolation = { + "4:19: " + getCheckMessage(SuperCloneCheck.class, AbstractSuperCheck.MSG_KEY, "clone"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF" + + "[./IDENT[@text='InputXpathSuperClonePlainAndSubclasses']]" + + "/OBJBLOCK/METHOD_DEF/IDENT[@text='clone']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, + expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionThrowsCountTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionThrowsCountTest.java index f9f2c28c20b..7a107eef2d0 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionThrowsCountTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionThrowsCountTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionThrowsCount1.java")); + new File(getPath("InputXpathThrowsCountDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ThrowsCountCheck.class); final String[] expectedViolation = { @@ -49,7 +49,7 @@ public void testOne() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionThrowsCount1']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathThrowsCountDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myFunction']]" + "/LITERAL_THROWS[./IDENT[@text='CloneNotSupportedException']]" @@ -60,9 +60,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testCustomMax() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionThrowsCount2.java")); + new File(getPath("InputXpathThrowsCountCustomMax.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ThrowsCountCheck.class); @@ -74,7 +74,7 @@ public void testTwo() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/INTERFACE_DEF[./IDENT[@text='SuppressionXpathRegressionThrowsCount2']]" + + "/INTERFACE_DEF[./IDENT[@text='InputXpathThrowsCountCustomMax']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myFunction']]" + "/LITERAL_THROWS[./IDENT[@text='IllegalStateException']]" @@ -85,9 +85,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testPrivateMethods() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionThrowsCount3.java")); + new File(getPath("InputXpathThrowsCountPrivateMethods.java")); final DefaultConfiguration moduleConfig = createModuleConfig(ThrowsCountCheck.class); @@ -99,7 +99,7 @@ public void testThree() throws Exception { }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" - + "/CLASS_DEF[./IDENT[@text='SuppressionXpathRegressionThrowsCount3']]" + + "/CLASS_DEF[./IDENT[@text='InputXpathThrowsCountPrivateMethods']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='myFunc']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='foo']]" + "/ASSIGN/EXPR/LITERAL_NEW[./IDENT[@text='myClass']]" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTodoCommentTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTodoCommentTest.java index 98e99995656..00d612b4c1a 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTodoCommentTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTodoCommentTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testSingleLine() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionTodoCommentOne.java")); + new File(getPath("InputXpathTodoCommentSingleLine.java")); final DefaultConfiguration moduleConfig = createModuleConfig(TodoCommentCheck.class); @@ -53,7 +53,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionTodoCommentOne']]/OBJBLOCK/" + + "'InputXpathTodoCommentSingleLine']]/OBJBLOCK/" + "SINGLE_LINE_COMMENT/COMMENT_CONTENT[@text=' warn FIXME:\\n']"); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -61,9 +61,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testBlock() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionTodoCommentTwo.java")); + new File(getPath("InputXpathTodoCommentBlock.java")); final DefaultConfiguration moduleConfig = createModuleConfig(TodoCommentCheck.class); @@ -75,7 +75,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionTodoCommentTwo']]/" + + "'InputXpathTodoCommentBlock']]/" + "OBJBLOCK/BLOCK_COMMENT_BEGIN/COMMENT_CONTENT" + "[@text=' // warn\\n * FIXME:\\n * TODO\\n ']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTrailingCommentTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTrailingCommentTest.java index 4682a4bfe7c..cf2f64c3736 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTrailingCommentTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTrailingCommentTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -37,9 +37,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testSingleLine() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionTrailingComment1.java")); + "InputXpathTrailingCommentSingleLine.java")); final DefaultConfiguration moduleConfig = createModuleConfig(TrailingCommentCheck.class); @@ -51,7 +51,7 @@ public void testOne() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionTrailingComment1']]/" + + "[./IDENT[@text='InputXpathTrailingCommentSingleLine']]/" + "OBJBLOCK/SINGLE_LINE_COMMENT[./COMMENT_CONTENT[@text=' don'" + "'t use trailing comments :) // warn\\n']]" ); @@ -61,9 +61,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testBlock() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionTrailingComment2.java")); + "InputXpathTrailingCommentBlock.java")); final DefaultConfiguration moduleConfig = createModuleConfig(TrailingCommentCheck.class); @@ -75,7 +75,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionTrailingComment2']]" + + "[./IDENT[@text='InputXpathTrailingCommentBlock']]" + "/OBJBLOCK/SINGLE_LINE_COMMENT[./COMMENT_CONTENT[@text=' warn\\n']]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTypeNameTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTypeNameTest.java index 8c9c9b6e976..4d32dda1cf1 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTypeNameTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTypeNameTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void test1() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionTypeName1.java")); + new File(getPath("InputXpathTypeNameDefault.java")); final String pattern = "^[A-Z][a-zA-Z0-9]*$"; final DefaultConfiguration moduleConfig = @@ -55,7 +55,7 @@ public void test1() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionTypeName1']]" + + "='InputXpathTypeNameDefault']]" + "/OBJBLOCK/CLASS_DEF/IDENT[@text='SecondName_']" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, @@ -63,9 +63,9 @@ public void test1() throws Exception { } @Test - public void test2() throws Exception { + public void testInterfaceDef() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionTypeName2.java")); + new File(getPath("InputXpathTypeNameInterfaceDef.java")); final String pattern = "^I_[a-zA-Z0-9]*$"; final DefaultConfiguration moduleConfig = @@ -81,7 +81,7 @@ public void test2() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT" + "/CLASS_DEF[./IDENT[@text" - + "='SuppressionXpathRegressionTypeName2']]" + + "='InputXpathTypeNameInterfaceDef']]" + "/OBJBLOCK/INTERFACE_DEF/IDENT[@text='SecondName']" ); runVerifications(moduleConfig, fileToProcess, expectedViolation, diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTypecastParenPadTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTypecastParenPadTest.java index e844579d33f..2aaa3b68848 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTypecastParenPadTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionTypecastParenPadTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -43,7 +43,7 @@ protected String getCheckName() { @Test public void testLeftFollowed() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionTypecastParenPadLeftFollowed.java")); + new File(getPath("InputXpathTypecastParenPadLeftFollowed.java")); final DefaultConfiguration moduleConfig = createModuleConfig(TypecastParenPadCheck.class); @@ -55,10 +55,10 @@ public void testLeftFollowed() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionTypecastParenPadLeftFollowed']]" + + "[./IDENT[@text='InputXpathTypecastParenPadLeftFollowed']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionTypecastParenPadLeftFollowed']]" + + "[./IDENT[@text='InputXpathTypecastParenPadLeftFollowed']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR/TYPECAST" ); @@ -69,7 +69,7 @@ public void testLeftFollowed() throws Exception { @Test public void testLeftNotFollowed() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionTypecastParenPadLeftNotFollowed.java")); + new File(getPath("InputXpathTypecastParenPadLeftNotFollowed.java")); final DefaultConfiguration moduleConfig = createModuleConfig(TypecastParenPadCheck.class); @@ -82,10 +82,10 @@ public void testLeftNotFollowed() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionTypecastParenPadLeftNotFollowed']]" + + "[./IDENT[@text='InputXpathTypecastParenPadLeftNotFollowed']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionTypecastParenPadLeftNotFollowed']]" + + "[./IDENT[@text='InputXpathTypecastParenPadLeftNotFollowed']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR/TYPECAST" ); @@ -96,7 +96,7 @@ public void testLeftNotFollowed() throws Exception { @Test public void testRightPreceded() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionTypecastParenPadRightPreceded.java")); + new File(getPath("InputXpathTypecastParenPadRightPreceded.java")); final DefaultConfiguration moduleConfig = createModuleConfig(TypecastParenPadCheck.class); @@ -108,7 +108,7 @@ public void testRightPreceded() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionTypecastParenPadRightPreceded']]" + + "[./IDENT[@text='InputXpathTypecastParenPadRightPreceded']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR/TYPECAST/RPAREN" ); @@ -119,7 +119,7 @@ public void testRightPreceded() throws Exception { @Test public void testRightNotPreceded() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionTypecastParenPadRightNotPreceded.java")); + getPath("InputXpathTypecastParenPadRightNotPreceded.java")); final DefaultConfiguration moduleConfig = createModuleConfig(TypecastParenPadCheck.class); @@ -132,7 +132,7 @@ public void testRightNotPreceded() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionTypecastParenPadRightNotPreceded']]" + + "@text='InputXpathTypecastParenPadRightNotPreceded']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR/TYPECAST/RPAREN" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUncommentedMainTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUncommentedMainTest.java index 5cc11af187f..f85d40b8e36 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUncommentedMainTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUncommentedMainTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testDefault() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionUncommentedMain.java")); + new File(getPath("InputXpathUncommentedMainDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UncommentedMainCheck.class); @@ -53,13 +53,13 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUncommentedMain']]" + + "[./IDENT[@text='InputXpathUncommentedMainDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='main']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUncommentedMain']]" + + "[./IDENT[@text='InputXpathUncommentedMainDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='main']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUncommentedMain']]" + + "[./IDENT[@text='InputXpathUncommentedMainDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='main']]/MODIFIERS/LITERAL_PUBLIC" ); @@ -68,9 +68,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testInStaticClass() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionUncommentedMainTwo.java")); + new File(getPath("InputXpathUncommentedMainInStaticClass.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UncommentedMainCheck.class); @@ -82,15 +82,15 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUncommentedMainTwo']]" + + "[./IDENT[@text='InputXpathUncommentedMainInStaticClass']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Launcher']" + "]/OBJBLOCK/METHOD_DEF[./IDENT[@text='main']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUncommentedMainTwo']]" + + "[./IDENT[@text='InputXpathUncommentedMainInStaticClass']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Launcher']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='main']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUncommentedMainTwo']]" + + "[./IDENT[@text='InputXpathUncommentedMainInStaticClass']]" + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='Launcher']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='main']]/MODIFIERS/LITERAL_PUBLIC" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessaryParenthesesTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessaryParenthesesTest.java index 0fcb550d8da..8b12a683d97 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessaryParenthesesTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessaryParenthesesTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -37,9 +37,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testClassFields() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessaryParentheses1.java") + getPath("InputXpathUnnecessaryParenthesesClassFields.java") ); final DefaultConfiguration moduleConfig = @@ -52,12 +52,12 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses1']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesClassFields']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a']]" + "/ASSIGN/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses1']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesClassFields']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='a']]" + "/ASSIGN/EXPR/LPAREN" ); @@ -66,9 +66,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testConditionals() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessaryParentheses2.java") + getPath("InputXpathUnnecessaryParenthesesConditionals.java") ); final DefaultConfiguration moduleConfig = @@ -81,12 +81,12 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses2']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesConditionals']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/LITERAL_IF/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses2']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesConditionals']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/LITERAL_IF/EXPR/LPAREN" ); @@ -95,9 +95,9 @@ public void testTwo() throws Exception { } @Test - public void testThree() throws Exception { + public void testLambdas() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessaryParentheses3.java") + getPath("InputXpathUnnecessaryParenthesesLambdas.java") ); final DefaultConfiguration moduleConfig = @@ -110,7 +110,7 @@ public void testThree() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses3']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesLambdas']]" + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='predicate']]" + "/ASSIGN/LAMBDA" ); @@ -119,9 +119,9 @@ public void testThree() throws Exception { } @Test - public void testFour() throws Exception { + public void testLocalVariables() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessaryParentheses4.java") + getPath("InputXpathUnnecessaryParenthesesLocalVariables.java") ); final DefaultConfiguration moduleConfig = @@ -134,7 +134,7 @@ public void testFour() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses4']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesLocalVariables']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='b']]" + "/ASSIGN/EXPR/PLUS/IDENT[@text='a']" @@ -144,9 +144,9 @@ public void testFour() throws Exception { } @Test - public void testFive() throws Exception { + public void testStringLiteral() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessaryParentheses5.java") + getPath("InputXpathUnnecessaryParenthesesStringLiteral.java") ); final DefaultConfiguration moduleConfig = @@ -159,7 +159,7 @@ public void testFive() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses5']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesStringLiteral']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='str']]" + "/ASSIGN/EXPR/PLUS/STRING_LITERAL[@text='Checkstyle']" @@ -169,9 +169,9 @@ public void testFive() throws Exception { } @Test - public void testSix() throws Exception { + public void testMethodDef() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessaryParentheses6.java") + getPath("InputXpathUnnecessaryParenthesesMethodDef.java") ); final DefaultConfiguration moduleConfig = @@ -184,7 +184,7 @@ public void testSix() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses6']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesMethodDef']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='a']]" + "/ASSIGN/EXPR/PLUS/NUM_INT[@text='10']" @@ -194,9 +194,9 @@ public void testSix() throws Exception { } @Test - public void testSeven() throws Exception { + public void testReturnExpr() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessaryParentheses7.java") + getPath("InputXpathUnnecessaryParenthesesReturnExpr.java") ); final DefaultConfiguration moduleConfig = @@ -209,12 +209,12 @@ public void testSeven() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses7']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesReturnExpr']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/LITERAL_RETURN/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses7']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesReturnExpr']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/LITERAL_RETURN/EXPR/LPAREN" ); @@ -223,9 +223,9 @@ public void testSeven() throws Exception { } @Test - public void testEight() throws Exception { + public void testExprWithMethodParam() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessaryParentheses8.java") + getPath("InputXpathUnnecessaryParenthesesExprWithMethodParam.java") ); final DefaultConfiguration moduleConfig = @@ -238,13 +238,13 @@ public void testEight() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses8']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesExprWithMethodParam']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='c']]" + "/ASSIGN/EXPR", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUnnecessaryParentheses8']]" + + "[./IDENT[@text='InputXpathUnnecessaryParenthesesExprWithMethodParam']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='c']]" + "/ASSIGN/EXPR/LPAREN" diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationTest.java index 938eec46e88..43e2eb212fe 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,9 +40,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testSimple() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclaration.java")); + "InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationSimple.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); final String[] expectedViolation = { "5:2: " + getCheckMessage(CLASS, @@ -56,9 +56,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testInnerTypes() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes" + "InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes" + ".java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); final String[] expectedViolation = { diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTest.java index 332c70d1212..71d5fb1a40c 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ protected String getCheckName() { @Test public void testDefault() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclaration.java")); + "InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); final String[] expectedViolation = { "4:20: " + getCheckMessage(CLASS, @@ -52,7 +52,7 @@ public void testDefault() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT" + "[@text=" - + "'SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclaration']]" + + "'InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationDefault']]" + "/OBJBLOCK/SEMI" ); @@ -62,7 +62,7 @@ public void testDefault() throws Exception { @Test public void testTokens() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTokens" + "InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationTokens" + ".java")); final DefaultConfiguration moduleConfig = createModuleConfig(CLASS); moduleConfig.addProperty("tokens", "METHOD_DEF"); @@ -74,7 +74,7 @@ public void testTokens() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[." - + "/IDENT[@text='SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMember" + + "/IDENT[@text='InputXpathUnnecessarySemicolonAfterTypeMember" + "DeclarationTokens']]" + "/OBJBLOCK/SEMI[1]" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonInEnumerationTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonInEnumerationTest.java index ccffd3a8821..022428d1f52 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonInEnumerationTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonInEnumerationTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,9 +40,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testSimple() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessarySemicolonInEnumeration.java")); + getPath("InputXpathUnnecessarySemicolonInEnumerationSimple.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UnnecessarySemicolonInEnumerationCheck.class); @@ -60,9 +60,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testAll() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionUnnecessarySemicolonInEnumerationAll.java" + "InputXpathUnnecessarySemicolonInEnumerationAll.java" )); final DefaultConfiguration moduleConfig = @@ -75,7 +75,7 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/ENUM_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionUnnecessarySemicolonInEnumerationAll']]" + + "'InputXpathUnnecessarySemicolonInEnumerationAll']]" + "/OBJBLOCK/SEMI" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonInTryWithResourcesTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonInTryWithResourcesTest.java index 08f2d01f1d1..68d0f716ccf 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonInTryWithResourcesTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnnecessarySemicolonInTryWithResourcesTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,18 +42,16 @@ protected String getCheckName() { @Test public void testDefault() throws Exception { final File fileToProcess = new File( - getPath("SuppressionXpathRegressionUnnecessarySemicolonInTryWithResources.java")); + getPath("InputXpathUnnecessarySemicolonInTryWithResourcesDefault.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UnnecessarySemicolonInTryWithResourcesCheck.class); final String[] expectedViolation = { - "11:43: " + getCheckMessage(UnnecessarySemicolonInTryWithResourcesCheck.class, - UnnecessarySemicolonInTryWithResourcesCheck.MSG_SEMI), - "12:76: " + getCheckMessage(UnnecessarySemicolonInTryWithResourcesCheck.class, + "11:76: " + getCheckMessage(UnnecessarySemicolonInTryWithResourcesCheck.class, UnnecessarySemicolonInTryWithResourcesCheck.MSG_SEMI), }; final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionUnnecessarySemicolonInTryWithResources']]" + + "'InputXpathUnnecessarySemicolonInTryWithResourcesDefault']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='m']]/SLIST/LITERAL_TRY" + "/RESOURCE_SPECIFICATION/SEMI" ); @@ -61,9 +59,9 @@ public void testDefault() throws Exception { } @Test - public void testAllowWhenNoBraceAfterSemicolon() throws Exception { + public void testNoBrace() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionUnnecessarySemicolonInTryWithResourcesNoBrace.java" + "InputXpathUnnecessarySemicolonInTryWithResourcesNoBrace.java" )); final DefaultConfiguration moduleConfig = @@ -77,7 +75,7 @@ public void testAllowWhenNoBraceAfterSemicolon() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionUnnecessarySemicolonInTryWithResourcesNoBrace']]" + + "'InputXpathUnnecessarySemicolonInTryWithResourcesNoBrace']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/LITERAL_TRY/RESOURCE_SPECIFICATION/SEMI" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnusedImportsTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnusedImportsTest.java index b63d65adbb5..4e0ecc79226 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnusedImportsTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnusedImportsTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,9 +38,9 @@ protected String getCheckName() { } @Test - public void testOne() throws Exception { + public void testUnusedImports() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionUnusedImportsOne.java")); + new File(getPath("InputXpathUnusedImports.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UnusedImportsCheck.class); @@ -58,9 +58,9 @@ public void testOne() throws Exception { } @Test - public void testTwo() throws Exception { + public void testStatic() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionUnusedImportsTwo.java")); + new File(getPath("InputXpathUnusedImportsStatic.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UnusedImportsCheck.class); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnusedLocalVariableTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnusedLocalVariableTest.java index 50b22a9416b..3302803d9c5 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnusedLocalVariableTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUnusedLocalVariableTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,7 +39,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionUnusedLocalVariableOne.java")); + "InputXpathUnusedLocalVariableOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UnusedLocalVariableCheck.class); @@ -51,18 +51,18 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionUnusedLocalVariableOne']]/OBJBLOCK/" + + "@text='InputXpathUnusedLocalVariableOne']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF[./IDENT[@text='a']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionUnusedLocalVariableOne']]/OBJBLOCK/" + + "@text='InputXpathUnusedLocalVariableOne']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF[" + "./IDENT[@text='a']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionUnusedLocalVariableOne']]/OBJBLOCK/" + + "@text='InputXpathUnusedLocalVariableOne']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF[" + "./IDENT[@text='a']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionUnusedLocalVariableOne']]/OBJBLOCK/" + + "@text='InputXpathUnusedLocalVariableOne']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF[" + "./IDENT[@text='a']]/TYPE/LITERAL_INT" ); @@ -74,7 +74,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionUnusedLocalVariableTwo.java")); + "InputXpathUnusedLocalVariableTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UnusedLocalVariableCheck.class); @@ -86,17 +86,17 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionUnusedLocalVariableTwo']]/OBJBLOCK/" + + "@text='InputXpathUnusedLocalVariableTwo']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF[./IDENT[@text='b']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionUnusedLocalVariableTwo']]/OBJBLOCK/" + + "@text='InputXpathUnusedLocalVariableTwo']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF[" + "./IDENT[@text='b']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionUnusedLocalVariableTwo']]/OBJBLOCK/" + + "@text='InputXpathUnusedLocalVariableTwo']]/OBJBLOCK/" + "METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF[" + "./IDENT[@text='b']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF[" - + "./IDENT[@text='SuppressionXpathRegressionUnusedLocalVariableTwo']]/" + + "./IDENT[@text='InputXpathUnusedLocalVariableTwo']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='foo']]/SLIST/VARIABLE_DEF[" + "./IDENT[@text='b']]/TYPE/LITERAL_INT" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUpperEllTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUpperEllTest.java index 361a7834219..c5d640d38df 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUpperEllTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionUpperEllTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testUpperEllOne() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionUpperEllFirst.java")); + new File(getPath("InputXpathUpperEllOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UpperEllCheck.class); @@ -52,10 +52,10 @@ public void testUpperEllOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUpperEllFirst']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathUpperEllOne']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR[./NUM_LONG[@text='0l']]", "/COMPILATION_UNIT/CLASS_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUpperEllFirst']]/OBJBLOCK" + + "[./IDENT[@text='InputXpathUpperEllOne']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR" + "/NUM_LONG[@text='0l']" ); @@ -67,7 +67,7 @@ public void testUpperEllOne() throws Exception { @Test public void testUpperEllTwo() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionUpperEllSecond.java")); + new File(getPath("InputXpathUpperEllTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(UpperEllCheck.class); @@ -79,11 +79,11 @@ public void testUpperEllTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/INTERFACE_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUpperEllSecond']]/OBJBLOCK/METHOD_DEF" + + "[./IDENT[@text='InputXpathUpperEllTwo']]/OBJBLOCK/METHOD_DEF" + "[./IDENT[@text='test']]/SLIST/VARIABLE_DEF[./IDENT[@text='var2']]/ASSIGN/EXPR" + "[./NUM_LONG[@text='508987l']]", "/COMPILATION_UNIT/INTERFACE_DEF" - + "[./IDENT[@text='SuppressionXpathRegressionUpperEllSecond']]/OBJBLOCK/METHOD_DEF" + + "[./IDENT[@text='InputXpathUpperEllTwo']]/OBJBLOCK/METHOD_DEF" + "[./IDENT[@text='test']]/SLIST/VARIABLE_DEF[./IDENT[@text='var2']]/ASSIGN/EXPR" + "/NUM_LONG[@text='508987l']" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionVariableDeclarationUsageDistanceTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionVariableDeclarationUsageDistanceTest.java index dca8b14968c..07d70a1879b 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionVariableDeclarationUsageDistanceTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionVariableDeclarationUsageDistanceTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,7 +39,7 @@ protected String getCheckName() { @Test public void testOne() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionVariableDeclarationUsageDistance1.java")); + "InputXpathVariableDeclarationUsageDistanceOne.java")); final DefaultConfiguration moduleConfig = createModuleConfig(VariableDeclarationUsageDistanceCheck.class); @@ -55,19 +55,19 @@ public void testOne() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionVariableDeclarationUsageDistance1']]/" + + "'InputXpathVariableDeclarationUsageDistanceOne']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='temp']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionVariableDeclarationUsageDistance1']]/" + + "'InputXpathVariableDeclarationUsageDistanceOne']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='temp']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionVariableDeclarationUsageDistance1']]/" + + "'InputXpathVariableDeclarationUsageDistanceOne']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='temp']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionVariableDeclarationUsageDistance1']]/" + + "'InputXpathVariableDeclarationUsageDistanceOne']]/" + "OBJBLOCK/METHOD_DEF[./IDENT[@text='test']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='temp']]/TYPE/LITERAL_INT" ); @@ -79,7 +79,7 @@ public void testOne() throws Exception { @Test public void testTwo() throws Exception { final File fileToProcess = new File(getPath( - "SuppressionXpathRegressionVariableDeclarationUsageDistance2.java")); + "InputXpathVariableDeclarationUsageDistanceTwo.java")); final DefaultConfiguration moduleConfig = createModuleConfig(VariableDeclarationUsageDistanceCheck.class); @@ -96,19 +96,19 @@ public void testTwo() throws Exception { final List expectedXpathQueries = Arrays.asList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionVariableDeclarationUsageDistance2']]" + + "'InputXpathVariableDeclarationUsageDistanceTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testMethod2']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='count']]", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionVariableDeclarationUsageDistance2']]" + + "'InputXpathVariableDeclarationUsageDistanceTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testMethod2']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='count']]/MODIFIERS", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionVariableDeclarationUsageDistance2']]" + + "'InputXpathVariableDeclarationUsageDistanceTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testMethod2']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='count']]/TYPE", "/COMPILATION_UNIT/CLASS_DEF[./IDENT[@text=" - + "'SuppressionXpathRegressionVariableDeclarationUsageDistance2']]" + + "'InputXpathVariableDeclarationUsageDistanceTwo']]" + "/OBJBLOCK/METHOD_DEF[./IDENT[@text='testMethod2']]" + "/SLIST/VARIABLE_DEF[./IDENT[@text='count']]/TYPE/LITERAL_INT" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionVisibilityModifierTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionVisibilityModifierTest.java new file mode 100644 index 00000000000..181e5ff8b48 --- /dev/null +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionVisibilityModifierTest.java @@ -0,0 +1,130 @@ +/////////////////////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code and other text files for adherence to a set of rules. +// Copyright (C) 2001-2024 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter; + +import static com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck.MSG_KEY; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck; + +public class XpathRegressionVisibilityModifierTest extends AbstractXpathTestSupport { + + private final String checkName = VisibilityModifierCheck.class.getSimpleName(); + + @Override + protected String getCheckName() { + return checkName; + } + + @Test + public void testDefaultModifier() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathVisibilityModifierDefault.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(VisibilityModifierCheck.class); + + final String[] expectedViolation = { + "6:9: " + getCheckMessage(VisibilityModifierCheck.class, MSG_KEY, "field"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathVisibilityModifierDefault']]" + + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='field']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testAnnotation() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathVisibilityModifierAnnotation.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(VisibilityModifierCheck.class); + moduleConfig.addProperty("ignoreAnnotationCanonicalNames", "Deprecated"); + + final String[] expectedViolation = { + "5:12: " + getCheckMessage(VisibilityModifierCheck.class, MSG_KEY, + "annotatedString"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathVisibilityModifierAnnotation']]" + + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='annotatedString']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testAnonymousClass() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathVisibilityModifierAnonymous.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(VisibilityModifierCheck.class); + + final String[] expectedViolation = { + "6:23: " + getCheckMessage(VisibilityModifierCheck.class, MSG_KEY, "field1"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathVisibilityModifierAnonymous']]" + + "/OBJBLOCK/VARIABLE_DEF[./IDENT[@text='runnable']]" + + "/ASSIGN/EXPR/LITERAL_NEW[./IDENT[@text='Runnable']]" + + "/OBJBLOCK/VARIABLE_DEF/IDENT[@text='field1']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } + + @Test + public void testInnerClass() throws Exception { + final File fileToProcess = + new File(getPath("InputXpathVisibilityModifierInner.java")); + + final DefaultConfiguration moduleConfig = + createModuleConfig(VisibilityModifierCheck.class); + + final String[] expectedViolation = { + "7:20: " + getCheckMessage(VisibilityModifierCheck.class, MSG_KEY, "field2"), + }; + + final List expectedXpathQueries = Collections.singletonList( + "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" + + "@text='InputXpathVisibilityModifierInner']]" + + "/OBJBLOCK/CLASS_DEF[./IDENT[@text='InnerClass']]/OBJBLOCK/" + + "VARIABLE_DEF/IDENT[@text='field2']" + ); + + runVerifications(moduleConfig, fileToProcess, expectedViolation, expectedXpathQueries); + } +} diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionWhitespaceAfterTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionWhitespaceAfterTest.java index 91af949f296..2fe07e74e42 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionWhitespaceAfterTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionWhitespaceAfterTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testWhitespaceAfterTypecast() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionWhitespaceAfterTypecast.java")); + new File(getPath("InputXpathWhitespaceAfterTypecast.java")); final DefaultConfiguration moduleConfig = createModuleConfig(WhitespaceAfterCheck.class); @@ -52,7 +52,7 @@ public void testWhitespaceAfterTypecast() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionWhitespaceAfterTypecast']]/OBJBLOCK" + + "@text='InputXpathWhitespaceAfterTypecast']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/EXPR/TYPECAST/RPAREN" ); @@ -63,7 +63,7 @@ public void testWhitespaceAfterTypecast() throws Exception { @Test public void testWhitespaceAfterNotFollowed() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionWhitespaceAfterNotFollowed.java")); + new File(getPath("InputXpathWhitespaceAfterNotFollowed.java")); final DefaultConfiguration moduleConfig = createModuleConfig(WhitespaceAfterCheck.class); @@ -75,7 +75,7 @@ public void testWhitespaceAfterNotFollowed() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionWhitespaceAfterNotFollowed']]/OBJBLOCK" + + "@text='InputXpathWhitespaceAfterNotFollowed']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN/ARRAY_INIT/COMMA" ); diff --git a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionWhitespaceAroundTest.java b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionWhitespaceAroundTest.java index 2166a8072d8..03457f1b5d2 100644 --- a/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionWhitespaceAroundTest.java +++ b/src/it/java/org/checkstyle/suppressionxpathfilter/XpathRegressionWhitespaceAroundTest.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,7 +40,7 @@ protected String getCheckName() { @Test public void testWhitespaceAroundNotPreceded() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionWhitespaceAroundNotPreceded.java")); + new File(getPath("InputXpathWhitespaceAroundNotPreceded.java")); final DefaultConfiguration moduleConfig = createModuleConfig(WhitespaceAroundCheck.class); @@ -52,7 +52,7 @@ public void testWhitespaceAroundNotPreceded() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionWhitespaceAroundNotPreceded']]/OBJBLOCK" + + "@text='InputXpathWhitespaceAroundNotPreceded']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN" ); @@ -63,7 +63,7 @@ public void testWhitespaceAroundNotPreceded() throws Exception { @Test public void testWhitespaceAroundNotFollowed() throws Exception { final File fileToProcess = - new File(getPath("SuppressionXpathRegressionWhitespaceAroundNotFollowed.java")); + new File(getPath("InputXpathWhitespaceAroundNotFollowed.java")); final DefaultConfiguration moduleConfig = createModuleConfig(WhitespaceAroundCheck.class); @@ -75,7 +75,7 @@ public void testWhitespaceAroundNotFollowed() throws Exception { final List expectedXpathQueries = Collections.singletonList( "/COMPILATION_UNIT/CLASS_DEF[./IDENT[" - + "@text='SuppressionXpathRegressionWhitespaceAroundNotFollowed']]/OBJBLOCK" + + "@text='InputXpathWhitespaceAroundNotFollowed']]/OBJBLOCK" + "/VARIABLE_DEF[./IDENT[@text='bad']]/ASSIGN" ); diff --git a/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule526parameternames/InputRecordComponentName.java b/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule526parameternames/InputRecordComponentName.java index 77e64cac15e..43689309e20 100644 --- a/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule526parameternames/InputRecordComponentName.java +++ b/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule526parameternames/InputRecordComponentName.java @@ -1,4 +1,4 @@ -//non-compiled with javac: Compilable with Java14 +//non-compiled with javac: Compilable with Java17 package com.puppycrawl.tools.checkstyle.checks.naming.recordcomponentname; /* Config: diff --git a/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/InputPatternVariableNameEnhancedInstanceofTestDefault.java b/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/InputPatternVariableNameEnhancedInstanceofTestDefault.java index f294a515bfe..697aa0cc3fe 100644 --- a/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/InputPatternVariableNameEnhancedInstanceofTestDefault.java +++ b/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule527localvariablenames/InputPatternVariableNameEnhancedInstanceofTestDefault.java @@ -1,7 +1,7 @@ -//non-compiled with javac: Compilable with Java14 +//non-compiled with javac: Compilable with Java17 package com.google.checkstyle.test.chapter5naming.rule527localvariablenames; -import java.util.ArrayList; +import java.util.*; import java.util.Locale; public class InputPatternVariableNameEnhancedInstanceofTestDefault { @@ -42,7 +42,7 @@ public void t(Object o1, Object o2) { } b = ((VoidPredicate) () -> o1 instanceof String s).get(); - ArrayList arrayList = new ArrayList(); + List arrayList = new ArrayList(); if (arrayList instanceof ArrayList ai) { System.out.println("Blah"); } diff --git a/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/InputRecordTypeParameterName.java b/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/InputRecordTypeParameterName.java index fe5c31fe0c1..b621aa06886 100644 --- a/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/InputRecordTypeParameterName.java +++ b/src/it/resources-noncompilable/com/google/checkstyle/test/chapter5naming/rule528typevariablenames/InputRecordTypeParameterName.java @@ -1,4 +1,4 @@ -//non-compiled with javac: Compilable with Java14 +//non-compiled with javac: Compilable with Java17 package com.puppycrawl.tools.checkstyle.checks.naming.recordtypeparametername; import java.io.Serializable; diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingRecords.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingRecords.java new file mode 100644 index 00000000000..bf12fe5fd82 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingRecords.java @@ -0,0 +1,16 @@ +//non-compiled with javac: Compilable with Java14 + +package org.checkstyle.suppressionxpathfilter.constructorsdeclarationgrouping; + +public class InputXpathConstructorsDeclarationGroupingRecords { + public record MyRecord(int x, int y) { + + public MyRecord(int a) { + this(a,a); + } + + void foo() {} + + public MyRecord {} // warn + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInRecord.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInRecord.java new file mode 100644 index 00000000000..7083a132464 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInRecord.java @@ -0,0 +1,11 @@ +//non-compiled with javac: Compilable with Java17 + +package org.checkstyle.suppressionxpathfilter.covariantequals; + +public record InputXpathCovariantEqualsInRecord() { + + public boolean equals(String str) { // warn + return str.equals(this); + } + +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInRecord.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInRecord.java deleted file mode 100644 index 34171e75b51..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInRecord.java +++ /dev/null @@ -1,11 +0,0 @@ -//non-compiled with javac: Compilable with Java14 - -package org.checkstyle.suppressionxpathfilter.covariantequals; - -public record SuppressionXpathRegressionCovariantEqualsInRecord() { - - public boolean equals(String str) { // warn - return str.equals(this); - } - -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/InputXpathIllegalIdentifierNameOne.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/InputXpathIllegalIdentifierNameOne.java new file mode 100644 index 00000000000..d64db415bee --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/InputXpathIllegalIdentifierNameOne.java @@ -0,0 +1,12 @@ +//non-compiled with javac: Compilable with Java17 +package org.checkstyle.suppressionxpathfilter.illegalidentifiername; + +/* Config: + * + * default + */ +public record InputXpathIllegalIdentifierNameOne + (String string, + String yield, // warn + String otherString){ +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/InputXpathIllegalIdentifierNameTwo.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/InputXpathIllegalIdentifierNameTwo.java new file mode 100644 index 00000000000..49629d72d67 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/InputXpathIllegalIdentifierNameTwo.java @@ -0,0 +1,17 @@ +//non-compiled with javac: Compilable with Java17 +package org.checkstyle.suppressionxpathfilter.illegalidentifiername; + +/* Config: + * + * default + */ +public class InputXpathIllegalIdentifierNameTwo { + int foo(int yield) { // warn + return switch (yield) { + case 1 -> 2; + case 2 -> 3; + case 3 -> 4; + default -> 5; + }; + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/SuppressionXpathRegressionIllegalIdentifierNameTestOne.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/SuppressionXpathRegressionIllegalIdentifierNameTestOne.java deleted file mode 100644 index 24417eaf730..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/SuppressionXpathRegressionIllegalIdentifierNameTestOne.java +++ /dev/null @@ -1,12 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package org.checkstyle.suppressionxpathfilter.illegalidentifiername; - -/* Config: - * - * default - */ -public record SuppressionXpathRegressionIllegalIdentifierNameTestOne - (String string, - String yield, // warn - String otherString){ -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/SuppressionXpathRegressionIllegalIdentifierNameTestTwo.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/SuppressionXpathRegressionIllegalIdentifierNameTestTwo.java deleted file mode 100644 index 966376ded91..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalidentifiername/SuppressionXpathRegressionIllegalIdentifierNameTestTwo.java +++ /dev/null @@ -1,17 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package org.checkstyle.suppressionxpathfilter.illegalidentifiername; - -/* Config: - * - * default - */ -public class SuppressionXpathRegressionIllegalIdentifierNameTestTwo { - int foo(int yield) { // warn - return switch (yield) { - case 1 -> 2; - case 2 -> 3; - case 3 -> 4; - default -> 5; - }; - } -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationAnonymous.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationAnonymous.java new file mode 100644 index 00000000000..fd102f38a0d --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationAnonymous.java @@ -0,0 +1,13 @@ +//non-compiled with javac: compiling on jdk before 9 + +package org.checkstyle.suppressionxpathfilter.illegalinstantiation; + +public class InputXpathIllegalInstantiationAnonymous { + int b = 5; // ok + class Inner{ + public void test() { + Boolean x = new Boolean(true); // ok + Integer e = new Integer(b); // warn + } + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationInterface.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationInterface.java new file mode 100644 index 00000000000..bc77bc3d394 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationInterface.java @@ -0,0 +1,13 @@ +//non-compiled with javac: compiling on jdk before 9 + +package org.checkstyle.suppressionxpathfilter.illegalinstantiation; + +public class InputXpathIllegalInstantiationInterface { + interface Inner { + default void test() { + Boolean x = new Boolean(true); // ok + Integer e = new Integer(5); // ok + String s = new String(); // warn + } + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationSimple.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationSimple.java new file mode 100644 index 00000000000..3f5d3121c78 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/illegalinstantiation/InputXpathIllegalInstantiationSimple.java @@ -0,0 +1,11 @@ +//non-compiled with javac: compiling on jdk before 9 + +package org.checkstyle.suppressionxpathfilter.illegalinstantiation; + +public class InputXpathIllegalInstantiationSimple { + int b = 5; // ok + public void test() { + Boolean x = new Boolean(true); // warn + Integer e = new Integer(b); // ok + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/InputXpathPackageAnnotationOne.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/InputXpathPackageAnnotationOne.java new file mode 100644 index 00000000000..ebdc152242f --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/InputXpathPackageAnnotationOne.java @@ -0,0 +1,8 @@ +//non-compiled with javac: compiling on jdk before 8 +//more details at https://github.com/checkstyle/checkstyle/issues/7846 +@Deprecated +package com.puppycrawl.tools.checkstyle.checks.annotation.packageannotation; // warn + +public class InputXpathPackageAnnotationOne { + +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/InputXpathPackageAnnotationTwo.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/InputXpathPackageAnnotationTwo.java new file mode 100644 index 00000000000..62dcd55063d --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/InputXpathPackageAnnotationTwo.java @@ -0,0 +1,10 @@ +//non-compiled with javac: compiling on jdk before 8 +//more details at https://github.com/checkstyle/checkstyle/issues/7846 +@Deprecated @Generated("foo") +package com.puppycrawl.tools.checkstyle.checks.annotation.packageannotation.two; // warn + +import javax.annotation.Generated; + +public class InputXpathPackageAnnotationTwo { + +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/SuppressionXpathRegressionPackageAnnotationOne.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/SuppressionXpathRegressionPackageAnnotationOne.java deleted file mode 100644 index 389588cf9ef..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/SuppressionXpathRegressionPackageAnnotationOne.java +++ /dev/null @@ -1,8 +0,0 @@ -//non-compiled with javac: compiling on jdk before 8 -//more details at https://github.com/checkstyle/checkstyle/issues/7846 -@Deprecated -package com.puppycrawl.tools.checkstyle.checks.annotation.packageannotation; // warn - -public class SuppressionXpathRegressionPackageAnnotationOne { - -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/SuppressionXpathRegressionPackageAnnotationTwo.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/SuppressionXpathRegressionPackageAnnotationTwo.java deleted file mode 100644 index 377d6614107..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packageannotation/SuppressionXpathRegressionPackageAnnotationTwo.java +++ /dev/null @@ -1,10 +0,0 @@ -//non-compiled with javac: compiling on jdk before 8 -//more details at https://github.com/checkstyle/checkstyle/issues/7846 -@Deprecated @Generated("foo") -package com.puppycrawl.tools.checkstyle.checks.annotation.packageannotation.two; // warn - -import javax.annotation.Generated; - -public class SuppressionXpathRegressionPackageAnnotationOne { - -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/InputXpathMissingPackage.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/InputXpathMissingPackage.java new file mode 100644 index 00000000000..39c32922a5e --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/InputXpathMissingPackage.java @@ -0,0 +1,5 @@ +// non-compiled with javac: missing package. Used for Testing purpose. +// package is missing. +public class InputXpathMissingPackage { // warn + // code +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/InputXpathWrongPackage.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/InputXpathWrongPackage.java new file mode 100644 index 00000000000..e99f4c59afd --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/InputXpathWrongPackage.java @@ -0,0 +1,6 @@ +// non-compiled with javac: wrong package. Used for Testing purpose. +package my.packagename.mismatch.with.folder; // warn + +public class InputXpathWrongPackage { + // code +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/SuppressionXpathRegression1.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/SuppressionXpathRegression1.java deleted file mode 100644 index f0b5261b516..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/SuppressionXpathRegression1.java +++ /dev/null @@ -1,6 +0,0 @@ -// non-compiled with javac: wrong package. Used for Testing purpose. -package my.packagename.mismatch.with.folder; // warn - -public class SuppressionXpathRegression1 { - // code -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/SuppressionXpathRegression2.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/SuppressionXpathRegression2.java deleted file mode 100644 index b3c4f5b13e3..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagedeclaration/SuppressionXpathRegression2.java +++ /dev/null @@ -1,5 +0,0 @@ -// non-compiled with javac: missing package. Used for Testing purpose. -// package is missing. -public class SuppressionXpathRegression2 { // warn - // code -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameThree.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameThree.java new file mode 100644 index 00000000000..9bc1d0519f9 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameThree.java @@ -0,0 +1,4 @@ +package org.checkstyle.suppressionxpathfilter.PACKAGENAME; // warn + +public class InputXpathPackageNameThree { +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameFour.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameFour.java new file mode 100644 index 00000000000..9cdd56c688d --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameFour.java @@ -0,0 +1,9 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.naming; + +public class InputXpathPatternVariableNameFour { + MyClass(Object o1){ + if (o1 instanceof String st) { // warning + } + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameOne.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameOne.java new file mode 100644 index 00000000000..10c43a800da --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameOne.java @@ -0,0 +1,9 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.naming; + +public class InputXpathPatternVariableNameOne { + MyClass(Object o1){ + if (o1 instanceof String STRING1) { // warning + } + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameThree.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameThree.java new file mode 100644 index 00000000000..5b3c90fbf83 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameThree.java @@ -0,0 +1,9 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.naming; + +public class InputXpathPatternVariableNameThree { + MyClass(Object o1){ + if (o1 instanceof String STR) { // warning + } + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameTwo.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameTwo.java new file mode 100644 index 00000000000..4d051f13e61 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/InputXpathPatternVariableNameTwo.java @@ -0,0 +1,9 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.naming; + +public class InputXpathPatternVariableNameTwo { + MyClass(Object o1){ + if (o1 instanceof String s) { // warning + } + } +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName1.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName1.java deleted file mode 100644 index cb084cd2100..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName1.java +++ /dev/null @@ -1,9 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.naming; - -public class SuppressionXpathRegressionPatternVariableName1 { - MyClass(Object o1){ - if (o1 instanceof String STRING1) { // warning - } - } -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName2.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName2.java deleted file mode 100644 index 1475ca2e97f..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName2.java +++ /dev/null @@ -1,9 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.naming; - -public class SuppressionXpathRegressionPatternVariableName2 { - MyClass(Object o1){ - if (o1 instanceof String s) { // warning - } - } -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName3.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName3.java deleted file mode 100644 index 8915ded5185..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName3.java +++ /dev/null @@ -1,9 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.naming; - -public class SuppressionXpathRegressionPatternVariableName3 { - MyClass(Object o1){ - if (o1 instanceof String STR) { // warning - } - } -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName4.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName4.java deleted file mode 100644 index 8eeffc210f1..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/patternvariablename/SuppressionXpathRegressionPatternVariableName4.java +++ /dev/null @@ -1,9 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.naming; - -public class SuppressionXpathRegressionPatternVariableName1 { - MyClass(Object o1){ - if (o1 instanceof String st) { // warning - } - } -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/InputXpathRecordComponentNameDefault.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/InputXpathRecordComponentNameDefault.java new file mode 100644 index 00000000000..47723e0ff48 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/InputXpathRecordComponentNameDefault.java @@ -0,0 +1,8 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.sizes.recordcomponentname; + +/* Config: default + */ +public record InputXpathRecordComponentNameDefault(int _value) { // warn + +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/InputXpathRecordComponentNameFormat.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/InputXpathRecordComponentNameFormat.java new file mode 100644 index 00000000000..80b7e9f3ba2 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/InputXpathRecordComponentNameFormat.java @@ -0,0 +1,10 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.sizes.recordcomponentname; + +/* Config: + * format = ^[a-z][a-zA-Z0-9]*$ + */ +public class InputXpathRecordComponentNameFormat { + public record MyRecord(int _underscoreValue, // ok + int otherValue) { } // warn +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/SuppressionXpathRecordComponentName1.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/SuppressionXpathRecordComponentName1.java deleted file mode 100644 index 236ca74f1a4..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/SuppressionXpathRecordComponentName1.java +++ /dev/null @@ -1,8 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.sizes.recordcomponentname; - -/* Config: default - */ -public record SuppressionXpathRecordComponentName1(int _value) { // warn - -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/SuppressionXpathRecordComponentName2.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/SuppressionXpathRecordComponentName2.java deleted file mode 100644 index a22ff3cd765..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentname/SuppressionXpathRecordComponentName2.java +++ /dev/null @@ -1,10 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.sizes.recordcomponentname; - -/* Config: - * format = ^[a-z][a-zA-Z0-9]*$ - */ -public class SuppressionXpathRecordComponentName2 { - public record MyRecord(int _underscoreValue, // ok - int otherValue) { } // warn -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/InputXpathRecordComponentNumberCustomMax.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/InputXpathRecordComponentNumberCustomMax.java new file mode 100644 index 00000000000..d1c28158498 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/InputXpathRecordComponentNumberCustomMax.java @@ -0,0 +1,10 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.sizes.recordcomponentnumber; + +/* Config: + * + * max = 1 + */ +public class InputXpathRecordComponentNumberCustomMax { + public record MyRecord(int x, int y) { } // warn +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/InputXpathRecordComponentNumberDefault.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/InputXpathRecordComponentNumberDefault.java new file mode 100644 index 00000000000..2ac74b62092 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/InputXpathRecordComponentNumberDefault.java @@ -0,0 +1,15 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.sizes.recordcomponentnumber; + +/* Config: + * + * max = 8 + */ +public record InputXpathRecordComponentNumberDefault(int x, int y, int z, // warn + int a, int b, int c, + int d, int e, int f, + int g, int h, int i, + int j, int k, + String... myVarargs) { + +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/SuppressionXpathRecordComponentNumber1.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/SuppressionXpathRecordComponentNumber1.java deleted file mode 100644 index 3ca4490d4d9..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/SuppressionXpathRecordComponentNumber1.java +++ /dev/null @@ -1,15 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.sizes.recordcomponentnumber; - -/* Config: - * - * max = 8 - */ -public record SuppressionXpathRecordComponentNumber1(int x, int y, int z, // warn - int a, int b, int c, - int d, int e, int f, - int g, int h, int i, - int j, int k, - String... myVarargs) { - -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/SuppressionXpathRecordComponentNumber2.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/SuppressionXpathRecordComponentNumber2.java deleted file mode 100644 index 63dd71b3c36..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordcomponentnumber/SuppressionXpathRecordComponentNumber2.java +++ /dev/null @@ -1,10 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.sizes.recordcomponentnumber; - -/* Config: - * - * max = 1 - */ -public class SuppressionXpathRecordComponentNumber2 { - public record MyRecord(int x, int y) { } // warn -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/InputXpathRecordTypeParameterNameTypeDeclared.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/InputXpathRecordTypeParameterNameTypeDeclared.java new file mode 100644 index 00000000000..6327eec7606 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/InputXpathRecordTypeParameterNameTypeDeclared.java @@ -0,0 +1,11 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.naming.classtypeparametername; + +import java.io.Serializable; +import java.util.LinkedHashMap; + +record InputXpathRecordTypeParameterNameTypeDeclared // warn +(LinkedHashMap linkedHashMap) { + +} + diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/InputXpathRecordTypeParameterNameTypeDefault.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/InputXpathRecordTypeParameterNameTypeDefault.java new file mode 100644 index 00000000000..fec0e5c52cb --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/InputXpathRecordTypeParameterNameTypeDefault.java @@ -0,0 +1,6 @@ +//non-compiled with javac: Compilable with Java17 +package com.puppycrawl.tools.checkstyle.checks.naming.classtypeparametername; + +public record InputXpathRecordTypeParameterNameTypeDefault(Integer x, String str) { // warn + +} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/SuppressionXpathRegressionRecordTypeParameterName1.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/SuppressionXpathRegressionRecordTypeParameterName1.java deleted file mode 100644 index 4f1bdf32bb9..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/SuppressionXpathRegressionRecordTypeParameterName1.java +++ /dev/null @@ -1,11 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.naming.classtypeparametername; - -import java.io.Serializable; -import java.util.LinkedHashMap; - -record Other // warn -(LinkedHashMap linkedHashMap) { - -} - diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/SuppressionXpathRegressionRecordTypeParameterName2.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/SuppressionXpathRegressionRecordTypeParameterName2.java deleted file mode 100644 index b63183064c9..00000000000 --- a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/recordtypeparametername/SuppressionXpathRegressionRecordTypeParameterName2.java +++ /dev/null @@ -1,6 +0,0 @@ -//non-compiled with javac: Compilable with Java14 -package com.puppycrawl.tools.checkstyle.checks.naming.classtypeparametername; - -public record InputRecordTypeParameterName(Integer x, String str) { // warn - -} diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableNameInnerClassField.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableNameInnerClassField.java new file mode 100644 index 00000000000..071f5147483 --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableNameInnerClassField.java @@ -0,0 +1,18 @@ +//non-compiled with javac: Compilable with Java17 +package org.checkstyle.suppressionxpathfilter.staticvariablename; + +public class InputXpathStaticVariableNameInnerClassField { + + public int num1; + + protected int NUM2; + + public void outerMethod() { + + class MyLocalClass { + + static int NUM3; //warn + + } + } + } diff --git a/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableNameNoAccessModifier.java b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableNameNoAccessModifier.java new file mode 100644 index 00000000000..701069fb11c --- /dev/null +++ b/src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableNameNoAccessModifier.java @@ -0,0 +1,8 @@ +//non-compiled with javac: Compilable with Java17 +package org.checkstyle.suppressionxpathfilter.staticvariablename; + +public class InputXpathStaticVariableNameNoAccessModifier { + { + static int NUM3; //warn + } + } diff --git a/src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/InputOverloadMethodsDeclarationOrderPrivateAndStaticMethods.java b/src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/InputOverloadMethodsDeclarationOrderPrivateAndStaticMethods.java new file mode 100644 index 00000000000..073e921e8c4 --- /dev/null +++ b/src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/InputOverloadMethodsDeclarationOrderPrivateAndStaticMethods.java @@ -0,0 +1,18 @@ +package com.google.checkstyle.test.chapter3filestructure.rule3421overloadsplit; + +public class InputOverloadMethodsDeclarationOrderPrivateAndStaticMethods { + public void testing() { + } + + private void testing(int a) { + } + + public void testing(int a, int b) { + } + + public static void testing(String a) { + } + + public void testing(String a, String b) { + } +} diff --git a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/InputRightCurlySwitchCasesBlocks.java b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/InputRightCurlySwitchCasesBlocks.java new file mode 100644 index 00000000000..04ca58b82d3 --- /dev/null +++ b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule412nonemptyblocks/InputRightCurlySwitchCasesBlocks.java @@ -0,0 +1,60 @@ +package com.google.checkstyle.test.chapter4formatting.rule412nonemptyblocks; + +public class InputRightCurlySwitchCasesBlocks { + + public static void test0() { + int mode = 0; + switch (mode) { + case 1: { + int x = 1; + break; + } + case 2: { + int x = 0; + break; + } + } + } + + public static void test() { + int mode = 0; + switch (mode) { + case 1:{ + int x = 1; + break; + } default : // warn + int x = 0; + } + } + + public static void test1() { + int k = 0; + switch (k) { + case 1:{ + int x = 1;} // warn + case 2: + int x = 2; + break; + } + } + + public static void test2() { + int mode = 0; + switch (mode) { + case 1: int x = 1; + case 2: { + break; + } + } + } + + public static void test3() { + int k = 0; + switch (k) { + case 1:{ + int x = 1; + } + case 2: { int x = 2;} // warn + } + } +} diff --git a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4822variabledistance/InputVariableDeclarationUsageDistanceCheck.java b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4822variabledistance/InputVariableDeclarationUsageDistanceCheck.java index a40cebc136e..b283f38f77b 100644 --- a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4822variabledistance/InputVariableDeclarationUsageDistanceCheck.java +++ b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4822variabledistance/InputVariableDeclarationUsageDistanceCheck.java @@ -505,7 +505,7 @@ public void testIssue32_10() { public int testIssue32_11(String toDir) throws Exception { - int count = 0; + int count = 0; // warn String[] files = {}; System.identityHashCode("Data archival started"); diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameAnnotation.java new file mode 100644 index 00000000000..0937e6e5f54 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameAnnotation.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public class InputXpathAbbreviationAsWordInNameAnnotation { + + @interface ANNOTATION { // warn + + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameAnnotationField.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameAnnotationField.java new file mode 100644 index 00000000000..b718b6917f3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameAnnotationField.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public @interface InputXpathAbbreviationAsWordInNameAnnotationField { + + String ANNOTATION_FIELD(); // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameClass.java new file mode 100644 index 00000000000..4f30ade2da5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameClass.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public class InputXpathAbbreviationAsWordInNameClass { + + class CLASS { // warn + + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameEnum.java new file mode 100644 index 00000000000..7d6dd276151 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameEnum.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public class InputXpathAbbreviationAsWordInNameEnum { + + enum ENUMERATION { // warn + + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameField.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameField.java new file mode 100644 index 00000000000..57e43f8a7a3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameField.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public class InputXpathAbbreviationAsWordInNameField { + + int FIELD; // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameInterface.java new file mode 100644 index 00000000000..05b7c86f9bf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameInterface.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public class InputXpathAbbreviationAsWordInNameInterface { + + interface INTERFACE { // warn + + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameMethod.java new file mode 100644 index 00000000000..b501fd88b55 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameMethod.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public interface InputXpathAbbreviationAsWordInNameMethod { + + void METHOD(); // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameParameter.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameParameter.java new file mode 100644 index 00000000000..32fe570cf6c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameParameter.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public interface InputXpathAbbreviationAsWordInNameParameter { + + void method(int PARAMETER); // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameVariable.java new file mode 100644 index 00000000000..198d1c24cb2 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/InputXpathAbbreviationAsWordInNameVariable.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; + +public class InputXpathAbbreviationAsWordInNameVariable { + + void method() { + int VARIABLE; // warn + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameAnnotation.java deleted file mode 100644 index e4b615a5017..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameAnnotation.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public class SuppressionXpathRegressionAbbreviationAsWordInNameAnnotation { - - @interface ANNOTATION { // warn - - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameAnnotationField.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameAnnotationField.java deleted file mode 100644 index 13b121dfcc8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameAnnotationField.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public @interface SuppressionXpathRegressionAbbreviationAsWordInNameAnnotationField { - - String ANNOTATION_FIELD(); // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameClass.java deleted file mode 100644 index f3f4ee78da8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameClass.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public class SuppressionXpathRegressionAbbreviationAsWordInNameClass { - - class CLASS { // warn - - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameEnum.java deleted file mode 100644 index 7b3c8bfd271..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameEnum.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public class SuppressionXpathRegressionAbbreviationAsWordInNameEnum { - - enum ENUMERATION { // warn - - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameField.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameField.java deleted file mode 100644 index ef3f4b72ee9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameField.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public class SuppressionXpathRegressionAbbreviationAsWordInNameField { - - int FIELD; // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameInterface.java deleted file mode 100644 index 3a9fd12ffd8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameInterface.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public class SuppressionXpathRegressionAbbreviationAsWordInNameInterface { - - interface INTERFACE { // warn - - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameMethod.java deleted file mode 100644 index a9d269c868b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameMethod.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public interface SuppressionXpathRegressionAbbreviationAsWordInNameMethod { - - void METHOD(); // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameParameter.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameParameter.java deleted file mode 100644 index 99231cc3d67..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameParameter.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public interface SuppressionXpathRegressionAbbreviationAsWordInNameParameter { - - void method(int PARAMETER); // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameVariable.java deleted file mode 100644 index d212b18be5a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abbreviationaswordinname/SuppressionXpathRegressionAbbreviationAsWordInNameVariable.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abbreviationaswordinname; - -public class SuppressionXpathRegressionAbbreviationAsWordInNameVariable { - - void method() { - int VARIABLE; // warn - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameInner.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameInner.java new file mode 100644 index 00000000000..e0b114df63a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameInner.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.abstractclassname; + +public class InputXpathAbstractClassNameInner { + abstract class MyClass { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameNoModifier.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameNoModifier.java new file mode 100644 index 00000000000..33651a0cffc --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameNoModifier.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.abstractclassname; + +public class InputXpathAbstractClassNameNoModifier { + class AbstractMyClass { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameTop.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameTop.java new file mode 100644 index 00000000000..9d7ea667f81 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/InputXpathAbstractClassNameTop.java @@ -0,0 +1,4 @@ +package org.checkstyle.suppressionxpathfilter.abstractclassname; + +public abstract class InputXpathAbstractClassNameTop { // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameInner.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameInner.java deleted file mode 100644 index 421ad21f3bf..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameInner.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abstractclassname; - -public class SuppressionXpathRegressionAbstractClassNameInner { - abstract class MyClass { // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameNoModifier.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameNoModifier.java deleted file mode 100644 index a690d379943..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameNoModifier.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abstractclassname; - -public class SuppressionXpathRegressionAbstractClassNameNoModifier { - class AbstractMyClass { // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameTop.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameTop.java deleted file mode 100644 index bda9ac7903a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/abstractclassname/SuppressionXpathRegressionAbstractClassNameTop.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.abstractclassname; - -public abstract class SuppressionXpathRegressionAbstractClassNameTop { // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationAnnotation.java new file mode 100644 index 00000000000..5a2bb56da66 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationAnnotation.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.annotationlocation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; + +@Annotation("bar") @interface InputXpathAnnotationLocationAnnotation {//warn + +} + +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD}) +@interface Annotation { + + String value() default ""; + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationCTOR.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationCTOR.java new file mode 100644 index 00000000000..48011d5a5f1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationCTOR.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.annotationlocation; + +public class InputXpathAnnotationLocationCTOR { + @CTORAnnotation(value = "") public InputXpathAnnotationLocationCTOR()//warn + { + // comment + } +} + +@interface CTORAnnotation { + String value(); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationClass.java new file mode 100644 index 00000000000..20f3720a4e6 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationClass.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.annotationlocation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; + +@ClassAnnotation("bar") class InputXpathAnnotationLocationClass { //warn + +} + +@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.TYPE}) +@interface ClassAnnotation { + + String value() default ""; + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationEnum.java new file mode 100644 index 00000000000..570afc65e08 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationEnum.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.annotationlocation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; + +@EnumAnnotation("bar") enum InputXpathAnnotationLocationEnum { //warn + + SuppressionXpathRegressionAnnotationLocationEnum() { + } + +} + +@Target({ElementType.FIELD, ElementType.TYPE}) +@interface EnumAnnotation { + + String value() default ""; + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationInterface.java new file mode 100644 index 00000000000..e9c1edbd440 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationInterface.java @@ -0,0 +1,25 @@ +package org.checkstyle.suppressionxpathfilter.annotationlocation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Repeatable; +import java.lang.annotation.Target; + +@InterfaceAnnotation("bar") interface InputXpathAnnotationLocationInterface { //warn + +} + +@Repeatable(InterfaceAnnotations.class) +@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE}) +@interface InterfaceAnnotation { + + String value() default ""; + +} + +@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE}) +@interface InterfaceAnnotations { + + InterfaceAnnotation[] value(); + +} + diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationMethod.java new file mode 100644 index 00000000000..66c51b2327a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationMethod.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.annotationlocation; + +public class InputXpathAnnotationLocationMethod { + @MethodAnnotation("foo") void foo1() {}//warn +} +@interface MethodAnnotation { + String value(); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationVariable.java new file mode 100644 index 00000000000..d8bc41bcfa0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/InputXpathAnnotationLocationVariable.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.annotationlocation; + +public class InputXpathAnnotationLocationVariable { + @VariableAnnotation(value = "") public int b; //warn +} +@interface VariableAnnotation { + String value(); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationAnnotation.java deleted file mode 100644 index 3bf5265ae22..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationAnnotation.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationlocation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Target; - -@Annotation("bar") @interface SuppressionXpathRegressionAnnotationLocationAnnotation {//warn - -} - -@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD}) -@interface Annotation { - - String value() default ""; - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationCTOR.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationCTOR.java deleted file mode 100644 index 55b1041aec2..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationCTOR.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationlocation; - -public class SuppressionXpathRegressionAnnotationLocationCTOR { - @CTORAnnotation(value = "") public SuppressionXpathRegressionAnnotationLocationCTOR()//warn - { - // comment - } -} - -@interface CTORAnnotation { - String value(); -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationClass.java deleted file mode 100644 index 10d5357350c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationClass.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationlocation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Target; - -@ClassAnnotation("bar") class SuppressionXpathRegressionAnnotationLocationClass { //warn - -} - -@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.TYPE}) -@interface ClassAnnotation { - - String value() default ""; - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationEnum.java deleted file mode 100644 index bb5266efc6c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationEnum.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationlocation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Target; - -@EnumAnnotation("bar") enum SuppressionXpathRegressionAnnotationLocationEnum { //warn - - SuppressionXpathRegressionAnnotationLocationEnum() { - } - -} - -@Target({ElementType.FIELD, ElementType.TYPE}) -@interface EnumAnnotation { - - String value() default ""; - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationInterface.java deleted file mode 100644 index 36e6e5728ef..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationInterface.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationlocation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Repeatable; -import java.lang.annotation.Target; - -@InterfaceAnnotation("bar") interface SuppressionXpathRegressionAnnotationLocationInterface { //warn - -} - -@Repeatable(InterfaceAnnotations.class) -@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE}) -@interface InterfaceAnnotation { - - String value() default ""; - -} - -@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE}) -@interface InterfaceAnnotations { - - InterfaceAnnotation[] value(); - -} - diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationMethod.java deleted file mode 100644 index 624247d91c0..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationMethod.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationlocation; - -public class SuppressionXpathRegressionAnnotationLocationMethod { - @MethodAnnotation("foo") void foo1() {}//warn -} -@interface MethodAnnotation { - String value(); -} - - diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationVariable.java deleted file mode 100644 index 926318c4322..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationlocation/SuppressionXpathRegressionAnnotationLocationVariable.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationlocation; - -public class SuppressionXpathRegressionAnnotationLocationVariable { - @VariableAnnotation(value = "") public int b; //warn -} -@interface VariableAnnotation { - String value(); -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineField.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineField.java new file mode 100644 index 00000000000..cb652991f02 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineField.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.annotationonsameline; + +import java.util.ArrayList; +import java.util.List; + +public class InputXpathAnnotationOnSameLineField { + @Deprecated //warn + private List names = new ArrayList<>(); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineInterface.java new file mode 100644 index 00000000000..6dcc7ffd526 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineInterface.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.annotationonsameline; + +@Deprecated //warn +interface InputXpathAnnotationOnSameLineInterface { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineMethod.java new file mode 100644 index 00000000000..ab070e0929b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/InputXpathAnnotationOnSameLineMethod.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.annotationonsameline; + +public class InputXpathAnnotationOnSameLineMethod { + @Deprecated int x; + + @Deprecated //warn + public int getX() { + return (int) x; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineOne.java deleted file mode 100644 index 329e01a5232..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineOne.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationonsameline; - -public class SuppressionXpathRegressionAnnotationOnSameLineOne { - @Deprecated int x; - - @Deprecated //warn - public int getX() { - return (int) x; - } -} - diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineThree.java deleted file mode 100644 index 6f947db192c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineThree.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationonsameline; - -@Deprecated //warn -interface SuppressionXpathRegressionAnnotationOnSameLineThree { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineTwo.java deleted file mode 100644 index c9162d849da..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationonsameline/SuppressionXpathRegressionAnnotationOnSameLineTwo.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationonsameline; - -import java.util.ArrayList; -import java.util.List; - -public class SuppressionXpathRegressionAnnotationOnSameLineTwo { - @Deprecated //warn - private List names = new ArrayList<>(); -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleEight.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleEight.java new file mode 100644 index 00000000000..b8950ec7ab1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleEight.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.annotationusestyle; + +@SuppressWarnings({"something",}) //warn +public class InputXpathAnnotationUseStyleEight { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleFive.java new file mode 100644 index 00000000000..05bc97e2dd0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleFive.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.annotationusestyle; + +@SuppressWarnings(value={"foo", "bar"}) //warn +public class InputXpathAnnotationUseStyleFive { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleFour.java new file mode 100644 index 00000000000..3c0e4d2360f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleFour.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.annotationusestyle; + +@SuppressWarnings({}) //warn +public class InputXpathAnnotationUseStyleFour { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleOne.java new file mode 100644 index 00000000000..875e7f4112a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleOne.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.annotationusestyle; + +@Deprecated +@SuppressWarnings({""}) //warn +public class InputXpathAnnotationUseStyleOne { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleSeven.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleSeven.java new file mode 100644 index 00000000000..53ed92235b8 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleSeven.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.annotationusestyle; + +@Deprecated +@SuppressWarnings(value={"foo"}) //warn +public class InputXpathAnnotationUseStyleSeven { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleSix.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleSix.java new file mode 100644 index 00000000000..919573828d1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleSix.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.annotationusestyle; + +@SuppressWarnings({"foo", "bar"}) //warn +public class InputXpathAnnotationUseStyleSix { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleThree.java new file mode 100644 index 00000000000..6563b281986 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleThree.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.annotationusestyle; + +public class InputXpathAnnotationUseStyleThree { + @SuppressWarnings({"common",}) //warn + public void foo() { + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleTwo.java new file mode 100644 index 00000000000..5932ff6c020 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/InputXpathAnnotationUseStyleTwo.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.annotationusestyle; + +@Deprecated //warn +public class InputXpathAnnotationUseStyleTwo { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleEight.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleEight.java deleted file mode 100644 index 11546e6b9f8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleEight.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationusestyle; - -@SuppressWarnings({"something",}) //warn -public class SuppressionXpathRegressionAnnotationUseStyleEight { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleFive.java deleted file mode 100644 index a6888344ea2..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleFive.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationusestyle; - -@SuppressWarnings(value={"foo", "bar"}) //warn -public class SuppressionXpathRegressionAnnotationUseStyleFive { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleFour.java deleted file mode 100644 index 4aa1c92d31f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleFour.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationusestyle; - -@SuppressWarnings({}) //warn -public class SuppressionXpathRegressionAnnotationUseStyleFour { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleOne.java deleted file mode 100644 index 7810c3ff28a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleOne.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationusestyle; - -@Deprecated -@SuppressWarnings({""}) //warn -public class SuppressionXpathRegressionAnnotationUseStyleOne { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleSeven.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleSeven.java deleted file mode 100644 index 0f2b8b72f3c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleSeven.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationusestyle; - -@Deprecated -@SuppressWarnings(value={"foo"}) //warn -public class SuppressionXpathRegressionAnnotationUseStyleSeven { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleSix.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleSix.java deleted file mode 100644 index b604edb86ba..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleSix.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationusestyle; - -@SuppressWarnings({"foo", "bar"}) //warn -public class SuppressionXpathRegressionAnnotationUseStyleSix { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleThree.java deleted file mode 100644 index 17d99624853..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleThree.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationusestyle; - -public class SuppressionXpathRegressionAnnotationUseStyleThree { - @SuppressWarnings({"common",}) //warn - public void foo() { - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleTwo.java deleted file mode 100644 index 0d382fd8e2f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/annotationusestyle/SuppressionXpathRegressionAnnotationUseStyleTwo.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.annotationusestyle; - -@Deprecated //warn -public class SuppressionXpathRegressionAnnotationUseStyleTwo { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/InputXpathAnonInnerLength.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/InputXpathAnonInnerLength.java new file mode 100644 index 00000000000..1ccacd68401 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/InputXpathAnonInnerLength.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.anoninnerlength; + +import java.util.Comparator; + +public class InputXpathAnonInnerLength { + public int compare(String v1, String v2) { + Comparator comp = new Comparator() { // warn: inner class is 6 lines (max=5) + @Override + public int compare(String s1, String s2) { + return s1.compareTo(s2); + } + }; + return comp.compare(v1, v2); + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/InputXpathAnonInnerLengthDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/InputXpathAnonInnerLengthDefault.java new file mode 100644 index 00000000000..2c5df7d522e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/InputXpathAnonInnerLengthDefault.java @@ -0,0 +1,34 @@ +package org.checkstyle.suppressionxpathfilter.anoninnerlength; + +import java.util.Comparator; + +public class InputXpathAnonInnerLengthDefault { + public void test() { + Runnable runnable = new Runnable() { // warn: inner class is 26 lines (max=20) + @Override + public void run() { + int x = 10; + String s = ""; + switch (x) { + case 1: + s = "A"; + break; + case 2: + s = "B"; + break; + case 3: + s = "C"; + break; + case 4: + s = "D"; + break; + case 5: + s = "E"; + break; + default: + s = "X"; + } + } + }; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/SuppressionXpathRegressionAnonInnerLength.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/SuppressionXpathRegressionAnonInnerLength.java deleted file mode 100644 index 35d19b502c4..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/SuppressionXpathRegressionAnonInnerLength.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.anoninnerlength; - -import java.util.Comparator; - -public class SuppressionXpathRegressionAnonInnerLength { - public int compare(String v1, String v2) { - Comparator comp = new Comparator() { // warn: inner class is 6 lines (max=5) - @Override - public int compare(String s1, String s2) { - return s1.compareTo(s2); - } - }; - return comp.compare(v1, v2); - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/SuppressionXpathRegressionAnonInnerLengthDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/SuppressionXpathRegressionAnonInnerLengthDefault.java deleted file mode 100644 index e1bf8c704b9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/anoninnerlength/SuppressionXpathRegressionAnonInnerLengthDefault.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.anoninnerlength; - -import java.util.Comparator; - -public class SuppressionXpathRegressionAnonInnerLengthDefault { - public void test() { - Runnable runnable = new Runnable() { // warn: inner class is 26 lines (max=20) - @Override - public void run() { - int x = 10; - String s = ""; - switch (x) { - case 1: - s = "A"; - break; - case 2: - s = "B"; - break; - case 3: - s = "C"; - break; - case 4: - s = "D"; - break; - case 5: - s = "E"; - break; - default: - s = "X"; - } - } - }; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/InputXpathArrayTrailingCommaLinear.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/InputXpathArrayTrailingCommaLinear.java new file mode 100644 index 00000000000..9509f333bf2 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/InputXpathArrayTrailingCommaLinear.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.arraytrailingcomma; + +public class InputXpathArrayTrailingCommaLinear +{ + int[] a1 = new int[] + { + 1, + 2, + 3, + }; + + int[] a2 = new int[] + { + 1, + 2, + 3 // warn + }; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/InputXpathArrayTrailingCommaMatrix.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/InputXpathArrayTrailingCommaMatrix.java new file mode 100644 index 00000000000..3b05778da78 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/InputXpathArrayTrailingCommaMatrix.java @@ -0,0 +1,20 @@ +package org.checkstyle.suppressionxpathfilter.arraytrailingcomma; + +public class InputXpathArrayTrailingCommaMatrix +{ + int[][] d1 = new int[][] + { + {1, 2,}, + {3, 3,}, + {5, 6,}, + }; + + int[][] d2 = new int[][] + { + {1, + 2}, + {3, 3,}, + {5, 6,} // warn + }; + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/SuppressionXpathRegressionArrayTrailingCommaOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/SuppressionXpathRegressionArrayTrailingCommaOne.java deleted file mode 100644 index e60a014373c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/SuppressionXpathRegressionArrayTrailingCommaOne.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.arraytrailingcomma; - -public class SuppressionXpathRegressionArrayTrailingCommaOne -{ - int[] a1 = new int[] - { - 1, - 2, - 3, - }; - - int[] a2 = new int[] - { - 1, - 2, - 3 // warn - }; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/SuppressionXpathRegressionArrayTrailingCommaTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/SuppressionXpathRegressionArrayTrailingCommaTwo.java deleted file mode 100644 index 3b00c2f10bf..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytrailingcomma/SuppressionXpathRegressionArrayTrailingCommaTwo.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.arraytrailingcomma; - -public class SuppressionXpathRegressionArrayTrailingCommaTwo -{ - int[][] d1 = new int[][] - { - {1, 2,}, - {3, 3,}, - {5, 6,}, - }; - - int[][] d2 = new int[][] - { - {1, - 2}, - {3, 3,}, - {5, 6,} // warn - }; - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/InputXpathArrayTypeStyleMethodDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/InputXpathArrayTypeStyleMethodDef.java new file mode 100644 index 00000000000..ec4e8bafad0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/InputXpathArrayTypeStyleMethodDef.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.arraytypestyle; + +public class InputXpathArrayTypeStyleMethodDef { + byte getData()[] { // warn + return null; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/InputXpathArrayTypeStyleVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/InputXpathArrayTypeStyleVariable.java new file mode 100644 index 00000000000..02ec7765a93 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/InputXpathArrayTypeStyleVariable.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.arraytypestyle; + +public class InputXpathArrayTypeStyleVariable { + String strings[]; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/SuppressionXpathRegressionArrayTypeStyleMethodDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/SuppressionXpathRegressionArrayTypeStyleMethodDef.java deleted file mode 100644 index 4b6c0958c8f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/SuppressionXpathRegressionArrayTypeStyleMethodDef.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.arraytypestyle; - -public class SuppressionXpathRegressionArrayTypeStyleMethodDef { - byte getData()[] { // warn - return null; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/SuppressionXpathRegressionArrayTypeStyleVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/SuppressionXpathRegressionArrayTypeStyleVariable.java deleted file mode 100644 index 053f033b867..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/arraytypestyle/SuppressionXpathRegressionArrayTypeStyleVariable.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.arraytypestyle; - -public class SuppressionXpathRegressionArrayTypeStyleVariable { - String strings[]; // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/InputXpathAvoidDoubleBraceInitializationClassFields.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/InputXpathAvoidDoubleBraceInitializationClassFields.java new file mode 100644 index 00000000000..c7f1366fe0d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/InputXpathAvoidDoubleBraceInitializationClassFields.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.avoiddoublebraceinitialization; + +import java.util.*; + +public class InputXpathAvoidDoubleBraceInitializationClassFields { + List list = new ArrayList() { //warn + {} + }; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/InputXpathAvoidDoubleBraceInitializationMethodDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/InputXpathAvoidDoubleBraceInitializationMethodDef.java new file mode 100644 index 00000000000..dc9588336c0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/InputXpathAvoidDoubleBraceInitializationMethodDef.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.avoiddoublebraceinitialization; + +import java.util.HashSet; + +public class InputXpathAvoidDoubleBraceInitializationMethodDef { + public void test() { + new HashSet() {{ /** warn */ + add("foo"); + add("bar"); + }}; + } + + enum InnerEnum { + ; + {} + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/SuppressionXpathRegressionAvoidDoubleBraceInitialization.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/SuppressionXpathRegressionAvoidDoubleBraceInitialization.java deleted file mode 100644 index ed128f0141b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/SuppressionXpathRegressionAvoidDoubleBraceInitialization.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoiddoublebraceinitialization; - -import java.util.*; - -public class SuppressionXpathRegressionAvoidDoubleBraceInitialization { - List list = new ArrayList() { //warn - {} - }; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/SuppressionXpathRegressionAvoidDoubleBraceInitializationTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/SuppressionXpathRegressionAvoidDoubleBraceInitializationTwo.java deleted file mode 100644 index 44cce2d161e..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoiddoublebraceinitialization/SuppressionXpathRegressionAvoidDoubleBraceInitializationTwo.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoiddoublebraceinitialization; - -import java.util.HashSet; - -public class SuppressionXpathRegressionAvoidDoubleBraceInitializationTwo { - public void test() { - new HashSet() {{ /** warn */ - add("foo"); - add("bar"); - }}; - } - - enum InnerEnum { - ; - {} - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersAllEscaped.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersAllEscaped.java new file mode 100644 index 00000000000..b5fa7ef1ce3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersAllEscaped.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; + +public class InputXpathAvoidEscapedUnicodeCharactersAllEscaped { + private String unitAbbrev9 = "\u03bcs"; /* warn */ + String allCharactersEscaped = "\u03bc\u03bc"; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersControlCharacters.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersControlCharacters.java new file mode 100644 index 00000000000..86ef0415927 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersControlCharacters.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; + +public class InputXpathAvoidEscapedUnicodeCharactersControlCharacters { + private String unitAbbrev9 = "\u03bcs"; /* warn */ + private String nonPrintableCharacter = "\u0008"; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersDefault.java new file mode 100644 index 00000000000..2d476fd06e6 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersDefault.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; + +public class InputXpathAvoidEscapedUnicodeCharactersDefault { + private String unitAbbrev2 = "\u03bcs"; /* warn */ +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersNonPrintable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersNonPrintable.java new file mode 100644 index 00000000000..069598675a3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersNonPrintable.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; + +public class InputXpathAvoidEscapedUnicodeCharactersNonPrintable { + private String unitAbbrev9 = "\u03bcs"; /* warn */ + private String nonPrintableCharacter = "\ufeff"; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersTailComment.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersTailComment.java new file mode 100644 index 00000000000..f31f7264570 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/InputXpathAvoidEscapedUnicodeCharactersTailComment.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; + +public class InputXpathAvoidEscapedUnicodeCharactersTailComment { + /* warn */ private String unitAbbrev9 = "\u03bcs"; + String unitAbbrev = "\u03bcs"; // Greek letter mu, "s" +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersAllEscaped.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersAllEscaped.java deleted file mode 100644 index b3ba68b1ab6..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersAllEscaped.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; - -public class SuppressionXpathRegressionAvoidEscapedUnicodeCharactersAllEscaped { - private String unitAbbrev9 = "\u03bcs"; /* warn */ - String allCharactersEscaped = "\u03bc\u03bc"; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersControlCharacters.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersControlCharacters.java deleted file mode 100644 index 2077c0f0476..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersControlCharacters.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; - -public class SuppressionXpathRegressionAvoidEscapedUnicodeCharactersControlCharacters { - private String unitAbbrev9 = "\u03bcs"; /* warn */ - private String nonPrintableCharacter = "\u0008"; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersDefault.java deleted file mode 100644 index 44f22770de0..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersDefault.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; - -public class SuppressionXpathRegressionAvoidEscapedUnicodeCharactersDefault { - private String unitAbbrev2 = "\u03bcs"; /* warn */ -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersNonPrintable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersNonPrintable.java deleted file mode 100644 index 1802a76b5eb..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersNonPrintable.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; - -public class SuppressionXpathRegressionAvoidEscapedUnicodeCharactersNonPrintable { - private String unitAbbrev9 = "\u03bcs"; /* warn */ - private String nonPrintableCharacter = "\ufeff"; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersTailComment.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersTailComment.java deleted file mode 100644 index c1a75705c4f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidescapedunicodecharacters/SuppressionXpathRegressionAvoidEscapedUnicodeCharactersTailComment.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidescapedunicodecharacters; - -public class SuppressionXpathRegressionAvoidEscapedUnicodeCharactersTailComment { - /* warn */ private String unitAbbrev9 = "\u03bcs"; - String unitAbbrev = "\u03bcs"; // Greek letter mu, "s" -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsAssert.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsAssert.java new file mode 100644 index 00000000000..a1f1d82e1fa --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsAssert.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.avoidinlineconditionals; + +public class InputXpathAvoidInlineConditionalsAssert { + + void assertA(String a) { + // JLS §14.10 - The assert Statement + // assert Expression1 : Expression2 + assert a.equals(null) ? true : false : "Expression2"; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsAssign.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsAssign.java new file mode 100644 index 00000000000..49ec1783c58 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsAssign.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.avoidinlineconditionals; + +public class InputXpathAvoidInlineConditionalsAssign { + String b; + + void setB(String a) { + b = (a == null || a.length() < 1) ? null : a.substring(1); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsVariableDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsVariableDef.java new file mode 100644 index 00000000000..a44da170dba --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/InputXpathAvoidInlineConditionalsVariableDef.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.avoidinlineconditionals; + +public class InputXpathAvoidInlineConditionalsVariableDef { + String substring(String a) { + String b = (a == null || a.length() < 1) ? null : a.substring(1); // warn + return b; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsAssert.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsAssert.java deleted file mode 100644 index ffe5aacf788..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsAssert.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidinlineconditionals; - -public class SuppressionXpathRegressionAvoidInlineConditionalsAssert { - - void assertA(String a) { - // JLS §14.10 - The assert Statement - // assert Expression1 : Expression2 - assert a.equals(null) ? true : false : "Expression2"; // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsAssign.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsAssign.java deleted file mode 100644 index 9e60848ecfe..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsAssign.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidinlineconditionals; - -public class SuppressionXpathRegressionAvoidInlineConditionalsAssign { - String b; - - void setB(String a) { - b = (a == null || a.length() < 1) ? null : a.substring(1); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsVariableDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsVariableDef.java deleted file mode 100644 index 0771f55b30a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidinlineconditionals/SuppressionXpathRegressionAvoidInlineConditionalsVariableDef.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidinlineconditionals; - -public class SuppressionXpathRegressionAvoidInlineConditionalsVariableDef { - String substring(String a) { - String b = (a == null || a.length() < 1) ? null : a.substring(1); // warn - return b; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksAllowedInSwitchCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksAllowedInSwitchCase.java new file mode 100644 index 00000000000..ef81149e29a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksAllowedInSwitchCase.java @@ -0,0 +1,26 @@ +package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; + +public class InputXpathAvoidNestedBlocksAllowedInSwitchCase { + + int s(int a) { + int x; + int y; + switch (a) { + case 0: + x = 1; + { // warn: statement outside block + y = -1; + break; + } + case 1: { // ok: allowInSwitchCase=true + x = 2; + y = -2; + break; + } + default: + x = 3; + y = -3; + } + return x + y; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksBreakOutside.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksBreakOutside.java new file mode 100644 index 00000000000..820fef6fe29 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksBreakOutside.java @@ -0,0 +1,19 @@ +package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; + +public class InputXpathAvoidNestedBlocksBreakOutside { + int s(int a) { + int x; + int y; + switch (a) { + case 0: { // warn: break outside block + x = 2; + y = -2; + } + break; + default: + x = 3; + y = -3; + } + return x + y; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksEmpty.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksEmpty.java new file mode 100644 index 00000000000..be16427fb09 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksEmpty.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; + +public class InputXpathAvoidNestedBlocksEmpty { + + void empty() { + {} // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksNotAllowedInSwitchCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksNotAllowedInSwitchCase.java new file mode 100644 index 00000000000..3d4f571418b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksNotAllowedInSwitchCase.java @@ -0,0 +1,20 @@ +package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; + +public class InputXpathAvoidNestedBlocksNotAllowedInSwitchCase { + + int s(int a) { + int x; + int y; + switch (a) { + case 0: { // warn: allowInSwitchCase=false + x = 2; + y = -2; + break; + } + default: + x = 3; + y = -3; + } + return x + y; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksVariable.java new file mode 100644 index 00000000000..09ff5c51da5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/InputXpathAvoidNestedBlocksVariable.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; + +public class InputXpathAvoidNestedBlocksVariable { + + void varAssign() { + int whichIsWhich = 0; + { // warn + whichIsWhich = 2; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksEmpty.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksEmpty.java deleted file mode 100644 index eacd47e4b8c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksEmpty.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; - -public class SuppressionXpathRegressionAvoidNestedBlocksEmpty { - - void empty() { - {} // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksSwitch1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksSwitch1.java deleted file mode 100644 index dbd423ffd2c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksSwitch1.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; - -public class SuppressionXpathRegressionAvoidNestedBlocksSwitch1 { - - int s(int a) { - int x; - int y; - switch (a) { - case 0: { // warn: break outside block - x = 0; - y = 0; - } - break; - case 1: - x = 1; - { // warn: statement outside block - y = -1; - break; - } - case 2: { // warn: allowInSwitchCase=false - x = 2; - y = -2; - break; - } - default: - x = 3; - y = -3; - } - return x + y; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksSwitch2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksSwitch2.java deleted file mode 100644 index f269bd95de4..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksSwitch2.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; - -public class SuppressionXpathRegressionAvoidNestedBlocksSwitch2 { - - int s(int a) { - int x; - int y; - switch (a) { - case 0: { // warn: break outside block - x = 0; - y = 0; - } - break; - case 1: - x = 1; - { // warn: statement outside block - y = -1; - break; - } - case 2: { // ok: allowInSwitchCase=true - x = 2; - y = -2; - break; - } - default: - x = 3; - y = -3; - } - return x + y; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksVariable.java deleted file mode 100644 index 67aabc6794f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnestedblocks/SuppressionXpathRegressionAvoidNestedBlocksVariable.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; - -public class SuppressionXpathRegressionAvoidNestedBlocksVariable { - - void varAssign() { - int whichIsWhich = 0; - { // warn - whichIsWhich = 2; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/InputXpathAvoidNoArgumentSuperConstructorCallDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/InputXpathAvoidNoArgumentSuperConstructorCallDefault.java new file mode 100644 index 00000000000..5a86328c049 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/InputXpathAvoidNoArgumentSuperConstructorCallDefault.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.avoidnoargumentsuperconstructorcall; + +public class InputXpathAvoidNoArgumentSuperConstructorCallDefault { + InputXpathAvoidNoArgumentSuperConstructorCallDefault() { + super(); //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/InputXpathAvoidNoArgumentSuperConstructorCallInnerClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/InputXpathAvoidNoArgumentSuperConstructorCallInnerClass.java new file mode 100644 index 00000000000..c0323d6b5cd --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/InputXpathAvoidNoArgumentSuperConstructorCallInnerClass.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.avoidnoargumentsuperconstructorcall; + +public class InputXpathAvoidNoArgumentSuperConstructorCallInnerClass { + public void test() { + class Inner { + Inner() { + super(); /** warn */ + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCall.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCall.java deleted file mode 100644 index 9df053da7f9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCall.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidnoargumentsuperconstructorcall; - -public class SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCall { - SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCall() { - super(); //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCallInnerClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCallInnerClass.java deleted file mode 100644 index d7b8b9a8609..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidnoargumentsuperconstructorcall/SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCallInnerClass.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidnoargumentsuperconstructorcall; - -public class SuppressionXpathRegressionAvoidNoArgumentSuperConstructorCallInnerClass { - public void test() { - class Inner { - Inner() { - super(); /** warn */ - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/InputXpathAvoidStarImportOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/InputXpathAvoidStarImportOne.java new file mode 100644 index 00000000000..f491d30bb65 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/InputXpathAvoidStarImportOne.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.avoidstarimport; + +import static javax.swing.WindowConstants.*; // warn + +public class InputXpathAvoidStarImportOne { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/InputXpathAvoidStarImportTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/InputXpathAvoidStarImportTwo.java new file mode 100644 index 00000000000..428c94a9360 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/InputXpathAvoidStarImportTwo.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.avoidstarimport; + +import java.util.Scanner; +import java.io.*; // warn + +public class InputXpathAvoidStarImportTwo { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/SuppressionXpathRegressionAvoidStarImport1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/SuppressionXpathRegressionAvoidStarImport1.java deleted file mode 100644 index cab4e116b7d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/SuppressionXpathRegressionAvoidStarImport1.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidstarimport; - -import static javax.swing.WindowConstants.*; // warn - -public class SuppressionXpathRegressionAvoidStarImport1 { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/SuppressionXpathRegressionAvoidStarImport2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/SuppressionXpathRegressionAvoidStarImport2.java deleted file mode 100644 index 58702d9ac1b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstarimport/SuppressionXpathRegressionAvoidStarImport2.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidstarimport; - -import java.util.Scanner; -import java.io.*; // warn - -public class SuppressionXpathRegressionAvoidStarImport2 { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/InputXpathAvoidStaticImportOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/InputXpathAvoidStaticImportOne.java new file mode 100644 index 00000000000..ebef008acde --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/InputXpathAvoidStaticImportOne.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.avoidstaticimport; + +import static javax.swing.WindowConstants.*; // warn + +public class InputXpathAvoidStaticImportOne { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/InputXpathAvoidStaticImportTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/InputXpathAvoidStaticImportTwo.java new file mode 100644 index 00000000000..01d11c190cf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/InputXpathAvoidStaticImportTwo.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.avoidstaticimport; + +import static java.io.File.createTempFile; // warn + +public class InputXpathAvoidStaticImportTwo { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/SuppressionXpathRegressionAvoidStaticImport1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/SuppressionXpathRegressionAvoidStaticImport1.java deleted file mode 100644 index b8c5d436fdd..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/SuppressionXpathRegressionAvoidStaticImport1.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidstaticimport; - -import static javax.swing.WindowConstants.*; // warn - -public class SuppressionXpathRegressionAvoidStaticImport1 { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/SuppressionXpathRegressionAvoidStaticImport2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/SuppressionXpathRegressionAvoidStaticImport2.java deleted file mode 100644 index 6bcfc7bd04a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/avoidstaticimport/SuppressionXpathRegressionAvoidStaticImport2.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.avoidstaticimport; - -import static java.io.File.createTempFile; // warn - -public class SuppressionXpathRegressionAvoidStaticImport2 { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityCatchBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityCatchBlock.java new file mode 100644 index 00000000000..3a19cb5139f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityCatchBlock.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.booleanexpressioncomplexity; + +public class InputXpathBooleanExpressionComplexityCatchBlock { + public boolean methodOne() { + boolean a = true; + boolean b = false; + try { + a = b; + } catch(Exception e) { + boolean d = (a & b) | (b ^ a) | (a ^ b) | // warn + (a & b) | (b ^ a) | (a ^ b); + } + return true; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityClassFields.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityClassFields.java new file mode 100644 index 00000000000..e16d9af2175 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityClassFields.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.booleanexpressioncomplexity; + +public class InputXpathBooleanExpressionComplexityClassFields { + public void methodTwo() { + boolean a = true; + boolean b = false; + + boolean c = (a & b) | (b ^ a); // OK + boolean d = (a & b) | (b ^ a) | (a ^ b) | // warn + (a & b) | (b ^ a) | (a ^ b); + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityConditionals.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityConditionals.java new file mode 100644 index 00000000000..1e5dfe39b91 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/booleanexpressioncomplexity/InputXpathBooleanExpressionComplexityConditionals.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.booleanexpressioncomplexity; + +public class InputXpathBooleanExpressionComplexityConditionals { + public void methodThree() { + boolean a = true; + boolean b = false; + boolean c = true; + + if (((a && (b & a)) || (b ^ a))) { // warn + a = b; + } else if ((a || b) ^ (a && b)) { // OK + c = b; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameAnonymous.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameAnonymous.java new file mode 100644 index 00000000000..4eb8a94bbe9 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameAnonymous.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.catchparametername; + +public class InputXpathCatchParameterNameAnonymous { + class InnerClass { + InnerClass() { + new Runnable() { + @Override + public void run() { + try { + } catch (Exception e1) { + } try { + } catch (Exception E1) { // warn + } + } + }; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameEnum.java new file mode 100644 index 00000000000..7ee62d2e901 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameEnum.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.catchparametername; + +public enum InputXpathCatchParameterNameEnum { + VALUE { + @Override + public void method(String op) { + switch (op) { + case "x": + try { + } catch (Exception eX) { // warn + } + break; + } + } + }; + + public abstract void method(String op); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameInterface.java new file mode 100644 index 00000000000..44e139b2352 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameInterface.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.catchparametername; + +interface InputXpathCatchParameterNameInterface { + interface InnerInterface { + default void method() { + try { + } catch (Exception EX) { // warn + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameLambda.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameLambda.java new file mode 100644 index 00000000000..2bfb9cf8c87 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameLambda.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.catchparametername; + +import java.util.function.Function; + +abstract class InputXpathCatchParameterNameLambda { + abstract void abstracMethod(); + + private final Function lambdaFunction = a -> { + Integer i = a; + for (; i > 10; i--) { + try { + } catch (Exception e) { // warn + } + } + return i; + }; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameNested.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameNested.java new file mode 100644 index 00000000000..b81cc36c2a7 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameNested.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.catchparametername; + +public class InputXpathCatchParameterNameNested { + public static class NestedClass { + void method() { + if (true) { + try { + try { + } catch (Exception i) { // warn + } + } catch (Exception e) { + } + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameSimple.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameSimple.java new file mode 100644 index 00000000000..7fda2b7c818 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameSimple.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.catchparametername; + +public class InputXpathCatchParameterNameSimple { + void method() { + try { + } catch (Exception e1) { // warn + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameStaticInit.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameStaticInit.java new file mode 100644 index 00000000000..9f0f27bb31a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/catchparametername/InputXpathCatchParameterNameStaticInit.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.catchparametername; + +public class InputXpathCatchParameterNameStaticInit { + static { + do { + try { + } catch (Exception Ex) { // warn + try { + } catch (Exception e1) { + } + } + } while (false); + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/InputXpathClassMemberImpliedModifierEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/InputXpathClassMemberImpliedModifierEnum.java new file mode 100644 index 00000000000..308f916cbe9 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/InputXpathClassMemberImpliedModifierEnum.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.classmemberimpliedmodifier; + +public class InputXpathClassMemberImpliedModifierEnum { + public enum Count { //warn + ONE, TWO, THREE; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/InputXpathClassMemberImpliedModifierInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/InputXpathClassMemberImpliedModifierInterface.java new file mode 100644 index 00000000000..52d9da03afc --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/InputXpathClassMemberImpliedModifierInterface.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.classmemberimpliedmodifier; + +public class InputXpathClassMemberImpliedModifierInterface { + public interface Foo { //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/SuppressionXpathRegressionClassMemberImpliedModifierOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/SuppressionXpathRegressionClassMemberImpliedModifierOne.java deleted file mode 100644 index 69ca9275850..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/SuppressionXpathRegressionClassMemberImpliedModifierOne.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.classmemberimpliedmodifier; - -public class SuppressionXpathRegressionClassMemberImpliedModifierOne { - public interface Foo { //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/SuppressionXpathRegressionClassMemberImpliedModifierTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/SuppressionXpathRegressionClassMemberImpliedModifierTwo.java deleted file mode 100644 index dfbfb9d42fe..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/classmemberimpliedmodifier/SuppressionXpathRegressionClassMemberImpliedModifierTwo.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.classmemberimpliedmodifier; - -public class SuppressionXpathRegressionClassMemberImpliedModifierTwo { - public enum Count { //warn - ONE, TWO, THREE; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationBlock.java new file mode 100644 index 00000000000..4fb16661a86 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationBlock.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.commentsindentation; + +public class InputXpathCommentsIndentationBlock { + /* // warn + * Javadoc comment + */ + float f; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationDistributedStatement.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationDistributedStatement.java new file mode 100644 index 00000000000..98e9066a863 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationDistributedStatement.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.commentsindentation; + +import java.util.Arrays; + +public class InputXpathCommentsIndentationDistributedStatement { + public void foo() { + String s = ""; + int n = s + .length(); + // Comment // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationEmptyCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationEmptyCase.java new file mode 100644 index 00000000000..8f4dc0dfd1a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationEmptyCase.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.commentsindentation; + +public class InputXpathCommentsIndentationEmptyCase { + int n; + + public void foo() { + switch(n) { + case 1: +// Comment // warn + default: + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationNonEmptyCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationNonEmptyCase.java new file mode 100644 index 00000000000..b1ff3cbbf20 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationNonEmptyCase.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.commentsindentation; + +public class InputXpathCommentsIndentationNonEmptyCase { + int n; + + public void foo() { + switch(n) { + case 1: + if (true) {} + // Comment // warn + default: + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSeparator.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSeparator.java new file mode 100644 index 00000000000..6fa183157ed --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSeparator.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.commentsindentation; + +public class InputXpathCommentsIndentationSeparator { + public void main(String[] args) { + int n; + } + + /////////////// Comment separator // warn + + public void foo() { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSingleLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSingleLine.java new file mode 100644 index 00000000000..227bd47d3fa --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSingleLine.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.commentsindentation; + +public class InputXpathCommentsIndentationSingleLine { + int n; + // Comment // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSingleLineBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSingleLineBlock.java new file mode 100644 index 00000000000..b0a22166645 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationSingleLineBlock.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.commentsindentation; + +public class InputXpathCommentsIndentationSingleLineBlock { + public void foo() { +// Single Line +// block Comment // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationWithinBlockStatement.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationWithinBlockStatement.java new file mode 100644 index 00000000000..70bb3990841 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/InputXpathCommentsIndentationWithinBlockStatement.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.commentsindentation; + +public class InputXpathCommentsIndentationWithinBlockStatement { + public void foo() { + String s = "F" + // Comment // warn + + "O" + + "O"; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationBlock.java deleted file mode 100644 index f760b34bdf9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationBlock.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.commentsindentation; - -public class SuppressionXpathRegressionCommentsIndentationBlock { - /* // warn - * Javadoc comment - */ - float f; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationDistributedStatement.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationDistributedStatement.java deleted file mode 100644 index 40c84c8c6b9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationDistributedStatement.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.commentsindentation; - -import java.util.Arrays; - -public class SuppressionXpathRegressionCommentsIndentationDistributedStatement { - public void foo() { - String s = ""; - int n = s - .length(); - // Comment // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationEmptyCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationEmptyCase.java deleted file mode 100644 index 22effa12561..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationEmptyCase.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.commentsindentation; - -public class SuppressionXpathRegressionCommentsIndentationEmptyCase { - int n; - - public void foo() { - switch(n) { - case 1: -// Comment // warn - default: - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationNonEmptyCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationNonEmptyCase.java deleted file mode 100644 index c3f4d8f77f7..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationNonEmptyCase.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.commentsindentation; - -public class SuppressionXpathRegressionCommentsIndentationNonEmptyCase { - int n; - - public void foo() { - switch(n) { - case 1: - if (true) {} - // Comment // warn - default: - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSeparator.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSeparator.java deleted file mode 100644 index 7a573524a64..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSeparator.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.commentsindentation; - -public class SuppressionXpathRegressionCommentsIndentationSeparator { - public void main(String[] args) { - int n; - } - - /////////////// Comment separator // warn - - public void foo() { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSingleLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSingleLine.java deleted file mode 100644 index c689c15c6ad..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSingleLine.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.commentsindentation; - -public class SuppressionXpathRegressionCommentsIndentationSingleLine { - int n; - // Comment // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSingleLineBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSingleLineBlock.java deleted file mode 100644 index 4c8f6feec52..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationSingleLineBlock.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.commentsindentation; - -public class SuppressionXpathRegressionCommentsIndentationSingleLineBlock { - public void foo() { -// Single Line -// block Comment // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationWithinBlockStatement.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationWithinBlockStatement.java deleted file mode 100644 index 3f6fade8191..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/commentsindentation/SuppressionXpathRegressionCommentsIndentationWithinBlockStatement.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.commentsindentation; - -public class SuppressionXpathRegressionCommentsIndentationWithinBlockStatement { - public void foo() { - String s = "F" - // Comment // warn - + "O" - + "O"; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameCamelCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameCamelCase.java new file mode 100644 index 00000000000..a919a7c932f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameCamelCase.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.constantname; + +public class InputXpathConstantNameCamelCase { + public static final int badConstant = 2; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameLowercase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameLowercase.java new file mode 100644 index 00000000000..20cae75b8de --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameLowercase.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.constantname; + +public class InputXpathConstantNameLowercase { + public static final int number = 7; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameWithBeginningUnderscore.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameWithBeginningUnderscore.java new file mode 100644 index 00000000000..977b2d5b7e1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameWithBeginningUnderscore.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.constantname; + +public class InputXpathConstantNameWithBeginningUnderscore { + private static final String _CONSTANT = "a"; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameWithTwoUnderscores.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameWithTwoUnderscores.java new file mode 100644 index 00000000000..55c52f6af36 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/InputXpathConstantNameWithTwoUnderscores.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.constantname; + +public class InputXpathConstantNameWithTwoUnderscores { + private static final int BAD__NAME = 3; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameCamelCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameCamelCase.java deleted file mode 100644 index 95b4b1c05da..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameCamelCase.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.constantname; - -public class SuppressionXpathRegressionConstantNameCamelCase { - public static final int badConstant = 2; // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameLowercase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameLowercase.java deleted file mode 100644 index bda9d2cf6d5..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameLowercase.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.constantname; - -public class SuppressionXpathRegressionConstantNameLowercase { - public static final int number = 7; // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameWithBeginningUnderscore.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameWithBeginningUnderscore.java deleted file mode 100644 index 4bff90c149a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameWithBeginningUnderscore.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.constantname; - -public class SuppressionXpathRegressionConstantNameWithBeginningUnderscore { - private static final String _CONSTANT = "a"; // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameWithTwoUnderscores.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameWithTwoUnderscores.java deleted file mode 100644 index b2c1a20ce9e..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/constantname/SuppressionXpathRegressionConstantNameWithTwoUnderscores.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.constantname; - -public class SuppressionXpathRegressionConstantNameWithTwoUnderscores { - private static final int BAD__NAME = 3; // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingClass.java new file mode 100644 index 00000000000..925a9881163 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingClass.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.constructorsdeclarationgrouping; + +public class InputXpathConstructorsDeclarationGroupingClass { + InputXpathConstructorsDeclarationGroupingClass() {} + + InputXpathConstructorsDeclarationGroupingClass(int a) {} + + int x; + + InputXpathConstructorsDeclarationGroupingClass(String str) {} // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingEnum.java new file mode 100644 index 00000000000..5b41b807e06 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingEnum.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.constructorsdeclarationgrouping; + +public enum InputXpathConstructorsDeclarationGroupingEnum { + ONE; + + InputXpathConstructorsDeclarationGroupingEnum() {} + + InputXpathConstructorsDeclarationGroupingEnum(String str) {} + + int f; + + InputXpathConstructorsDeclarationGroupingEnum(int x) {} // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInClass.java new file mode 100644 index 00000000000..8a2c341fea2 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInClass.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.covariantequals; + +public class InputXpathCovariantEqualsInClass { + + public boolean equals(InputXpathCovariantEqualsInClass i) { // warn + return false; + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInEnum.java new file mode 100644 index 00000000000..80eb5e7017a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/InputXpathCovariantEqualsInEnum.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.covariantequals; + +public enum InputXpathCovariantEqualsInEnum { + + EQUALS; + + public boolean equals(InputXpathCovariantEqualsInEnum i) { // warn + return false; + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInClass.java deleted file mode 100644 index 7b71091052a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInClass.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.covariantequals; - -public class SuppressionXpathRegressionCovariantEqualsInClass { - - public boolean equals(SuppressionXpathRegressionCovariantEqualsInClass i) { // warn - return false; - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInEnum.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInEnum.java deleted file mode 100644 index 28de41773da..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/covariantequals/SuppressionXpathRegressionCovariantEqualsInEnum.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.covariantequals; - -public enum SuppressionXpathRegressionCovariantEqualsInEnum { - - EQUALS; - - public boolean equals(SuppressionXpathRegressionCovariantEqualsInEnum i) { // warn - return false; - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderFive.java new file mode 100644 index 00000000000..9af2dd37bfd --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderFive.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.customimportorder; + +import static java.util.Arrays.sort; + +import java.io.File; +import java.io.FileInputStream; +import static java.lang.Math.PI; // warn +import java.util.HashMap; +import java.util.Scanner; + +public class InputXpathCustomImportOrderFive { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderFour.java new file mode 100644 index 00000000000..4463824e61a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderFour.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.customimportorder; + +import static java.util.Arrays.sort; +import static java.lang.Math.PI; +import com.puppycrawl.tools.checkstyle.api.DetailAST; // warn + +import java.io.File; +import java.io.FileInputStream; +import java.util.HashMap; +import java.util.Scanner; + +public class InputXpathCustomImportOrderFour { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderOne.java new file mode 100644 index 00000000000..a30e51f3e69 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderOne.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.customimportorder; + +import static java.util.Arrays.sort; +import static java.lang.Math.PI; // warn + +import java.io.File; +import java.io.FileInputStream; +import java.util.HashMap; +import java.util.Scanner; + +public class InputXpathCustomImportOrderOne { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderSix.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderSix.java new file mode 100644 index 00000000000..8ef832df7b9 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderSix.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.customimportorder; + +import static java.util.Arrays.sort; +import static java.lang.Math.PI; + +import com.puppycrawl.tools.checkstyle.api.DetailAST; // warn + +import java.io.File; +import java.io.FileInputStream; +import java.util.HashMap; +import java.util.Scanner; + +public class InputXpathCustomImportOrderSix { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderThree.java new file mode 100644 index 00000000000..e3148c54742 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderThree.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.customimportorder; + +import static java.util.Arrays.sort; + +import static java.lang.Math.PI; // warn + +import java.io.File; +import java.io.FileInputStream; +import java.util.HashMap; +import java.util.Scanner; + +public class InputXpathCustomImportOrderThree { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderTwo.java new file mode 100644 index 00000000000..77ee3c42279 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/InputXpathCustomImportOrderTwo.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.customimportorder; + +import static java.util.Arrays.sort; +import static java.lang.Math.PI; +import java.io.File; // warn +import java.io.FileInputStream; +import java.util.HashMap; +import java.util.Scanner; + +public class InputXpathCustomImportOrderTwo { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderFive.java deleted file mode 100644 index eaee6967524..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderFive.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.customimportorder; - -import static java.util.Arrays.sort; - -import java.io.File; -import java.io.FileInputStream; -import static java.lang.Math.PI; // warn -import java.util.HashMap; -import java.util.Scanner; - -public class SuppressionXpathRegressionCustomImportOrderFive { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderFour.java deleted file mode 100644 index bba7d260147..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderFour.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.customimportorder; - -import static java.util.Arrays.sort; -import static java.lang.Math.PI; -import com.puppycrawl.tools.checkstyle.api.DetailAST; // warn - -import java.io.File; -import java.io.FileInputStream; -import java.util.HashMap; -import java.util.Scanner; - -public class SuppressionXpathRegressionCustomImportOrderFour { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderOne.java deleted file mode 100644 index e9837309db8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderOne.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.customimportorder; - -import static java.util.Arrays.sort; -import static java.lang.Math.PI; // warn - -import java.io.File; -import java.io.FileInputStream; -import java.util.HashMap; -import java.util.Scanner; - -public class SuppressionXpathRegressionCustomImportOrderOne { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderSix.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderSix.java deleted file mode 100644 index 77c9b37fe26..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderSix.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.customimportorder; - -import static java.util.Arrays.sort; -import static java.lang.Math.PI; - -import com.puppycrawl.tools.checkstyle.api.DetailAST; // warn - -import java.io.File; -import java.io.FileInputStream; -import java.util.HashMap; -import java.util.Scanner; - -public class SuppressionXpathRegressionCustomImportOrderSix { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderThree.java deleted file mode 100644 index cade4b0e750..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderThree.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.customimportorder; - -import static java.util.Arrays.sort; - -import static java.lang.Math.PI; // warn - -import java.io.File; -import java.io.FileInputStream; -import java.util.HashMap; -import java.util.Scanner; - -public class SuppressionXpathRegressionCustomImportOrderThree { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderTwo.java deleted file mode 100644 index e85ba270c0f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/customimportorder/SuppressionXpathRegressionCustomImportOrderTwo.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.customimportorder; - -import static java.util.Arrays.sort; -import static java.lang.Math.PI; -import java.io.File; // warn -import java.io.FileInputStream; -import java.util.HashMap; -import java.util.Scanner; - -public class SuppressionXpathRegressionCustomImportOrderTwo { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/InputXpathCyclomaticComplexityConditionals.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/InputXpathCyclomaticComplexityConditionals.java new file mode 100644 index 00000000000..9adc4742021 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/InputXpathCyclomaticComplexityConditionals.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.cyclomaticcomplexity; + +public class InputXpathCyclomaticComplexityConditionals { + public void test(int a, int b) { //warn + if (a > b) { + + } else { + + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/InputXpathCyclomaticComplexitySwitchBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/InputXpathCyclomaticComplexitySwitchBlock.java new file mode 100644 index 00000000000..fc503199de9 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/InputXpathCyclomaticComplexitySwitchBlock.java @@ -0,0 +1,25 @@ +package org.checkstyle.suppressionxpathfilter.cyclomaticcomplexity; + +public class InputXpathCyclomaticComplexitySwitchBlock { + + + public void foo2() { //warn + String programmingLanguage = "Java"; + switch (programmingLanguage) { + case "Java": + case "C#": + case "C++": + String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage + + " is an object oriented programming language."); + break; + case "C": + String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage + + " is not an object oriented programming language."); + break; + default: + String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage + + " is unknown language."); + break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/SuppressionXpathRegressionCyclomaticComplexityOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/SuppressionXpathRegressionCyclomaticComplexityOne.java deleted file mode 100644 index f13c30fe797..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/SuppressionXpathRegressionCyclomaticComplexityOne.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.cyclomaticcomplexity; - -public class SuppressionXpathRegressionCyclomaticComplexityOne { - public void test(int a, int b) { //warn - if (a > b) { - - } else { - - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/SuppressionXpathRegressionCyclomaticComplexityTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/SuppressionXpathRegressionCyclomaticComplexityTwo.java deleted file mode 100644 index 110b1029892..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/cyclomaticcomplexity/SuppressionXpathRegressionCyclomaticComplexityTwo.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.cyclomaticcomplexity; - -public class SuppressionXpathRegressionCyclomaticComplexityTwo { - - - public void foo2() { //warn - String programmingLanguage = "Java"; - switch (programmingLanguage) { - case "Java": - case "C#": - case "C++": - String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage - + " is an object oriented programming language."); - break; - case "C": - String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage - + " is not an object oriented programming language."); - break; - default: - String.CASE_INSENSITIVE_ORDER.equals(programmingLanguage - + " is unknown language."); - break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/InputXpathDeclarationOrderNonStatic.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/InputXpathDeclarationOrderNonStatic.java new file mode 100644 index 00000000000..b49ab808fdf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/InputXpathDeclarationOrderNonStatic.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.declarationorder; + +public class InputXpathDeclarationOrderNonStatic { + private int age; + public String name; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/InputXpathDeclarationOrderStatic.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/InputXpathDeclarationOrderStatic.java new file mode 100644 index 00000000000..a0b19c7f25a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/InputXpathDeclarationOrderStatic.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.declarationorder; + +public class InputXpathDeclarationOrderStatic { + public static void foo1() {} + public static final double MAX = 0.60; //warn + public static void foo2() {} +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/SuppressionXpathRegressionDeclarationOrderOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/SuppressionXpathRegressionDeclarationOrderOne.java deleted file mode 100644 index e2f252f4781..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/SuppressionXpathRegressionDeclarationOrderOne.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.declarationorder; - -public class SuppressionXpathRegressionDeclarationOrderOne { - private int age; - public String name; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/SuppressionXpathRegressionDeclarationOrderTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/SuppressionXpathRegressionDeclarationOrderTwo.java deleted file mode 100644 index da419e17099..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/declarationorder/SuppressionXpathRegressionDeclarationOrderTwo.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.declarationorder; - -public class SuppressionXpathRegressionDeclarationOrderTwo { - public static void foo1() {} - public static final double MAX = 0.60; //warn - public static void foo2() {} -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/InputXpathDefaultComesLastEmptyCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/InputXpathDefaultComesLastEmptyCase.java new file mode 100644 index 00000000000..04cbd0b4e98 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/InputXpathDefaultComesLastEmptyCase.java @@ -0,0 +1,22 @@ +package org.checkstyle.suppressionxpathfilter.defaultcomeslast; + +public class InputXpathDefaultComesLastEmptyCase { + public void test(int i) { + switch (i) { + case 1: + default: + break; + case 2: + break; + } + + switch (i) { + case 1: + default: //warn + case 2: + break; + case 3: + break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/InputXpathDefaultComesLastNonEmptyCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/InputXpathDefaultComesLastNonEmptyCase.java new file mode 100644 index 00000000000..63ca796837c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/InputXpathDefaultComesLastNonEmptyCase.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.defaultcomeslast; + +public class InputXpathDefaultComesLastNonEmptyCase { + public void test() { + String lang = "Java"; + int id = 0; + switch (lang) { + default : id = -1; //warn + case "C++" : id = 1; break; + case "Python" : id = 2; break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/SuppressionXpathRegressionDefaultComesLastOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/SuppressionXpathRegressionDefaultComesLastOne.java deleted file mode 100644 index f05f9b2422b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/SuppressionXpathRegressionDefaultComesLastOne.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.defaultcomeslast; - -public class SuppressionXpathRegressionDefaultComesLastOne { - public void test() { - String lang = "Java"; - int id = 0; - switch (lang) { - default : id = -1; //warn - case "C++" : id = 1; break; - case "Python" : id = 2; break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/SuppressionXpathRegressionDefaultComesLastTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/SuppressionXpathRegressionDefaultComesLastTwo.java deleted file mode 100644 index 6e401ea4208..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/defaultcomeslast/SuppressionXpathRegressionDefaultComesLastTwo.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.defaultcomeslast; - -public class SuppressionXpathRegressionDefaultComesLastTwo { - public void test(int i) { - switch (i) { - case 1: - default: - break; - case 2: - break; - } - - switch (i) { - case 1: - default: //warn - case 2: - break; - case 3: - break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyblock/InputXpathEmptyBlockEmpty.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyblock/InputXpathEmptyBlockEmpty.java new file mode 100644 index 00000000000..110b46909c4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyblock/InputXpathEmptyBlockEmpty.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.emptyblock; + +public class InputXpathEmptyBlockEmpty { + private void emptyLoop() { + for (int i = 0; i < 10; i++) {} // warn + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyblock/SuppressionXpathRegressionEmptyBlockEmpty.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyblock/SuppressionXpathRegressionEmptyBlockEmpty.java deleted file mode 100644 index 7a078b8dcee..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyblock/SuppressionXpathRegressionEmptyBlockEmpty.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptyblock; - -public class SuppressionXpathRegressionEmptyBlockEmpty { - private void emptyLoop() { - for (int i = 0; i < 10; i++) {} // warn - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/InputXpathEmptyCatchBlockOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/InputXpathEmptyCatchBlockOne.java new file mode 100644 index 00000000000..aa61045cbbf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/InputXpathEmptyCatchBlockOne.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.emptycatchblock; + +public class InputXpathEmptyCatchBlockOne { + public static void main(String[] args) { + + try { + throw new RuntimeException(); + } catch (RuntimeException e) {} //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/InputXpathEmptyCatchBlockTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/InputXpathEmptyCatchBlockTwo.java new file mode 100644 index 00000000000..dc90e2be539 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/InputXpathEmptyCatchBlockTwo.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.emptycatchblock; + +public class InputXpathEmptyCatchBlockTwo { + public static void main(String[] args) { + + try { + throw new RuntimeException(); + } catch (RuntimeException e) /*warn*/ { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/SuppressionXpathRegressionEmptyCatchBlock1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/SuppressionXpathRegressionEmptyCatchBlock1.java deleted file mode 100644 index 97c58ccac5b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/SuppressionXpathRegressionEmptyCatchBlock1.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptycatchblock; - -public class SuppressionXpathRegressionEmptyCatchBlock1 { - public static void main(String[] args) { - - try { - throw new RuntimeException(); - } catch (RuntimeException e) {} //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/SuppressionXpathRegressionEmptyCatchBlock2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/SuppressionXpathRegressionEmptyCatchBlock2.java deleted file mode 100644 index 8627de4634e..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptycatchblock/SuppressionXpathRegressionEmptyCatchBlock2.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptycatchblock; - -public class SuppressionXpathRegressionEmptyCatchBlock2 { - public static void main(String[] args) { - - try { - throw new RuntimeException(); - } catch (RuntimeException e) /*warn*/ { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/InputXpathEmptyForInitializerPadNotPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/InputXpathEmptyForInitializerPadNotPreceded.java new file mode 100644 index 00000000000..3e1d4aa2160 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/InputXpathEmptyForInitializerPadNotPreceded.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.emptyforinitializerpad; + +public class InputXpathEmptyForInitializerPadNotPreceded { + void method(int bad, int good) { + for (; bad < 1; bad++ ) {//warn + } + for ( ; good < 2; good++ ) { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/InputXpathEmptyForInitializerPadPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/InputXpathEmptyForInitializerPadPreceded.java new file mode 100644 index 00000000000..ee94d554412 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/InputXpathEmptyForInitializerPadPreceded.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.emptyforinitializerpad; + +public class InputXpathEmptyForInitializerPadPreceded { + void method(int bad, int good) { + for ( ; bad < 1; bad++ ) {//warn + } + for (; good < 2; good++ ) { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/SuppressionXpathRegressionEmptyForInitializerPadNotPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/SuppressionXpathRegressionEmptyForInitializerPadNotPreceded.java deleted file mode 100644 index ea29614aba3..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/SuppressionXpathRegressionEmptyForInitializerPadNotPreceded.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptyforinitializerpad; - -public class SuppressionXpathRegressionEmptyForInitializerPadNotPreceded { - void method(int bad, int good) { - for (; bad < 1; bad++ ) {//warn - } - for ( ; good < 2; good++ ) { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/SuppressionXpathRegressionEmptyForInitializerPadPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/SuppressionXpathRegressionEmptyForInitializerPadPreceded.java deleted file mode 100644 index 56787308207..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforinitializerpad/SuppressionXpathRegressionEmptyForInitializerPadPreceded.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptyforinitializerpad; - -public class SuppressionXpathRegressionEmptyForInitializerPadPreceded { - void method(int bad, int good) { - for ( ; bad < 1; bad++ ) {//warn - } - for (; good < 2; good++ ) { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/InputXpathEmptyForIteratorPadFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/InputXpathEmptyForIteratorPadFollowed.java new file mode 100644 index 00000000000..96b10544294 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/InputXpathEmptyForIteratorPadFollowed.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.emptyforiteratorpad; + +public class InputXpathEmptyForIteratorPadFollowed { + void method(int bad, int good) { + for (bad = 0; ++bad < 1; ) {//warn + } + for (good = 0; ++good < 2;) { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/InputXpathEmptyForIteratorPadNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/InputXpathEmptyForIteratorPadNotFollowed.java new file mode 100644 index 00000000000..1b538b9a706 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/InputXpathEmptyForIteratorPadNotFollowed.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.emptyforiteratorpad; + +public class InputXpathEmptyForIteratorPadNotFollowed { + void method(int bad, int good) { + for (bad = 0; ++bad < 2;) {//warn + } + for (good = 0; ++good < 1; ) { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/SuppressionXpathRegressionEmptyForIteratorPadFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/SuppressionXpathRegressionEmptyForIteratorPadFollowed.java deleted file mode 100644 index cceae02bd9f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/SuppressionXpathRegressionEmptyForIteratorPadFollowed.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptyforiteratorpad; - -public class SuppressionXpathRegressionEmptyForIteratorPadFollowed { - void method(int bad, int good) { - for (bad = 0; ++bad < 1; ) {//warn - } - for (good = 0; ++good < 2;) { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/SuppressionXpathRegressionEmptyForIteratorPadNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/SuppressionXpathRegressionEmptyForIteratorPadNotFollowed.java deleted file mode 100644 index 282516add90..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptyforiteratorpad/SuppressionXpathRegressionEmptyForIteratorPadNotFollowed.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptyforiteratorpad; - -public class SuppressionXpathRegressionEmptyForIteratorPadNotFollowed { - void method(int bad, int good) { - for (bad = 0; ++bad < 2;) {//warn - } - for (good = 0; ++good < 1; ) { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorFive.java new file mode 100644 index 00000000000..cc9486393f5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorFive.java @@ -0,0 +1,22 @@ +package org.checkstyle.suppressionxpathfilter.emptylineseparator; + +import java.io.IOException; + +public class InputXpathEmptyLineSeparatorFive { + + int foo1() throws Exception { + int a = 1; + int b = 2; + try { + if (a != b) { + throw new IOException(); + } + // warn + + + } catch(IOException e) { + return 1; + } + return 0; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorFour.java new file mode 100644 index 00000000000..9ebe69cf295 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorFour.java @@ -0,0 +1,15 @@ +/////////////////////////////////////////////////// +//HEADER +/////////////////////////////////////////////////// + +package org.checkstyle.suppressionxpathfilter.emptylineseparator; + +class InputXpathEmptyLineSeparatorFour { + public static final int FOO_CONST = 1; + + public void foo() {} + + public void foo1() {} // warn + + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorOne.java similarity index 100% rename from src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator1.java rename to src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorOne.java diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorThree.java new file mode 100644 index 00000000000..f2beb9314cf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorThree.java @@ -0,0 +1,10 @@ +/////////////////////////////////////////////////// +//HEADER +/////////////////////////////////////////////////// +package org.checkstyle.suppressionxpathfilter.emptylineseparator; +import java.io.*; +class InputXpathEmptyLineSeparatorThree { + public static final int FOO_CONST = 1; + public void foo() {} + public void foo1() {} // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorTwo.java similarity index 100% rename from src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator2.java rename to src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/InputXpathEmptyLineSeparatorTwo.java diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator3.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator3.java deleted file mode 100644 index 84616eb5f39..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator3.java +++ /dev/null @@ -1,10 +0,0 @@ -/////////////////////////////////////////////////// -//HEADER -/////////////////////////////////////////////////// -package org.checkstyle.suppressionxpathfilter.emptylineseparator; -import java.io.*; -class SuppressionXpathRegressionEmptyLineSeparator3 { - public static final int FOO_CONST = 1; - public void foo() {} - public void foo1() {} // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator4.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator4.java deleted file mode 100644 index 6a23443ad00..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator4.java +++ /dev/null @@ -1,15 +0,0 @@ -/////////////////////////////////////////////////// -//HEADER -/////////////////////////////////////////////////// - -package org.checkstyle.suppressionxpathfilter.emptylineseparator; - -class SuppressionXpathRegressionEmptyLineSeparator4 { - public static final int FOO_CONST = 1; - - public void foo() {} - - public void foo1() {} // warn - - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator5.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator5.java deleted file mode 100644 index 38086505d84..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptylineseparator/SuppressionXpathRegressionEmptyLineSeparator5.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptylineseparator; - -import java.io.IOException; - -public class SuppressionXpathRegressionEmptyLineSeparator5 { - - int foo1() throws Exception { - int a = 1; - int b = 2; - try { - if (a != b) { - throw new IOException(); - } - // warn - - - } catch(IOException e) { - return 1; - } - return 0; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/InputXpathEmptyStatementConditionals.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/InputXpathEmptyStatementConditionals.java new file mode 100644 index 00000000000..5b9babce63f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/InputXpathEmptyStatementConditionals.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.emptystatement; + +public class InputXpathEmptyStatementConditionals { + public void foo() { + int i = 0; + if (i > 3); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/InputXpathEmptyStatementLoops.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/InputXpathEmptyStatementLoops.java new file mode 100644 index 00000000000..217c0cef2ad --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/InputXpathEmptyStatementLoops.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.emptystatement; + +public class InputXpathEmptyStatementLoops { + public void foo() { + for (int i = 0; i < 5; i++); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/SuppressionXpathRegressionEmptyStatement1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/SuppressionXpathRegressionEmptyStatement1.java deleted file mode 100644 index 7fcc83dd48b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/SuppressionXpathRegressionEmptyStatement1.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptystatement; - -public class SuppressionXpathRegressionEmptyStatement1 { - public void foo() { - for (int i = 0; i < 5; i++); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/SuppressionXpathRegressionEmptyStatement2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/SuppressionXpathRegressionEmptyStatement2.java deleted file mode 100644 index 3e254e5764a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/emptystatement/SuppressionXpathRegressionEmptyStatement2.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.emptystatement; - -public class SuppressionXpathRegressionEmptyStatement2 { - public void foo() { - int i = 0; - if (i > 3); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/InputXpathEqualsAvoidNull.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/InputXpathEqualsAvoidNull.java new file mode 100644 index 00000000000..1e7c41945d6 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/InputXpathEqualsAvoidNull.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.equalsavoidnull; + +public class InputXpathEqualsAvoidNull { + public void test() { + String nullString = null; + nullString.equals("Another string"); //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/InputXpathEqualsAvoidNullIgnoreCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/InputXpathEqualsAvoidNullIgnoreCase.java new file mode 100644 index 00000000000..a6762b01f47 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/InputXpathEqualsAvoidNullIgnoreCase.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.equalsavoidnull; + +public class InputXpathEqualsAvoidNullIgnoreCase { + public void test() { + String nullString = null; + nullString.equalsIgnoreCase("Another string"); //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/SuppressionXpathRegressionEqualsAvoidNull.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/SuppressionXpathRegressionEqualsAvoidNull.java deleted file mode 100644 index 551cecbfc48..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/SuppressionXpathRegressionEqualsAvoidNull.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.equalsavoidnull; - -public class SuppressionXpathRegressionEqualsAvoidNull { - public void test() { - String nullString = null; - nullString.equals("Another string"); //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/SuppressionXpathRegressionEqualsAvoidNullIgnoreCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/SuppressionXpathRegressionEqualsAvoidNullIgnoreCase.java deleted file mode 100644 index 892fcb79a27..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalsavoidnull/SuppressionXpathRegressionEqualsAvoidNullIgnoreCase.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.equalsavoidnull; - -public class SuppressionXpathRegressionEqualsAvoidNullIgnoreCase { - public void test() { - String nullString = null; - nullString.equalsIgnoreCase("Another string"); //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeEqualsOnly.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeEqualsOnly.java new file mode 100644 index 00000000000..f18f089bd3e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeEqualsOnly.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.equalshashcode; + +public class InputXpathEqualsHashCodeEqualsOnly { + public boolean equals(Object obj) { // warn + return false; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeHashCodeOnly.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeHashCodeOnly.java new file mode 100644 index 00000000000..377992f1472 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeHashCodeOnly.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.equalshashcode; + +public class InputXpathEqualsHashCodeHashCodeOnly { + public int hashCode() { // warn + return 0; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeNestedCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeNestedCase.java new file mode 100644 index 00000000000..69b2c7b6403 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/equalshashcode/InputXpathEqualsHashCodeNestedCase.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.equalshashcode; + +public class InputXpathEqualsHashCodeNestedCase { + public static class innerClass { + public boolean equals(Object obj) { // warn + return false; + } + } +} + diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountCustomMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountCustomMax.java new file mode 100644 index 00000000000..71af3de777b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountCustomMax.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.executablestatementcount; + +public class InputXpathExecutableStatementCountCustomMax { + public InputXpathExecutableStatementCountCustomMax() // warn + { + int i = 1; + if (System.currentTimeMillis() == 0) { + } else if (System.currentTimeMillis() == 0) { + } else { + } + } + /** Empty constructor */ + public InputXpathExecutableStatementCountCustomMax(int i) {} +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountDefault.java new file mode 100644 index 00000000000..dda072f955f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountDefault.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.executablestatementcount; + +public class InputXpathExecutableStatementCountDefault { + public void ElseIfLadder() { // warn + if (System.currentTimeMillis() == 0) { + } else { + if (System.currentTimeMillis() == 0) { + } else { + if (System.currentTimeMillis() == 0) { + } + } + + if (System.currentTimeMillis() == 0) { + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountLambdas.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountLambdas.java new file mode 100644 index 00000000000..1905a2d469e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/executablestatementcount/InputXpathExecutableStatementCountLambdas.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.executablestatementcount; + +import java.util.function.Consumer; +import java.util.function.Function; + +public class InputXpathExecutableStatementCountLambdas { + Consumer c = (s) -> { // warn + String str = s.toString(); + str = str + "!"; + }; + + Consumer t = a -> a.toString().trim(); // ok + Function x1 = a -> a; // ok + Function y = a -> null; // ok +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/InputXpathExplicitInitializationObjectType.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/InputXpathExplicitInitializationObjectType.java new file mode 100644 index 00000000000..47b032e5cc4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/InputXpathExplicitInitializationObjectType.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.explicitinitialization; + +public class InputXpathExplicitInitializationObjectType { + private int a; + + private Object bar = null; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/InputXpathExplicitInitializationPrimitiveType.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/InputXpathExplicitInitializationPrimitiveType.java new file mode 100644 index 00000000000..508b9debe19 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/InputXpathExplicitInitializationPrimitiveType.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.explicitinitialization; + +public class InputXpathExplicitInitializationPrimitiveType { + private int a = 0; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/SuppressionXpathRegressionExplicitInitializationOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/SuppressionXpathRegressionExplicitInitializationOne.java deleted file mode 100644 index 8fff9736304..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/SuppressionXpathRegressionExplicitInitializationOne.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.explicitinitialization; - -public class SuppressionXpathRegressionExplicitInitializationOne { - private int a = 0; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/SuppressionXpathRegressionExplicitInitializationTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/SuppressionXpathRegressionExplicitInitializationTwo.java deleted file mode 100644 index 2576ccdec13..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/explicitinitialization/SuppressionXpathRegressionExplicitInitializationTwo.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.explicitinitialization; - -public class SuppressionXpathRegressionExplicitInitializationTwo { - private int a; - - private Object bar = null; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/InputXpathFallThrough.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/InputXpathFallThrough.java new file mode 100644 index 00000000000..90b245bb840 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/InputXpathFallThrough.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.fallthrough; + +public class InputXpathFallThrough { + public void test() { + int id = 0; + switch (id) { + case 0: break; + case 1: if (1 == 0) { + break; + }; + case 2: break; //warn + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/InputXpathFallThroughDefaultCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/InputXpathFallThroughDefaultCase.java new file mode 100644 index 00000000000..57e60f0b97d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/InputXpathFallThroughDefaultCase.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.fallthrough; + +public class InputXpathFallThroughDefaultCase { + void methodFallThruCustomWords(int i, int j, boolean cond) { + while (true) { + switch (i){ + case 0: + i++; + break; + default: //warn + i++; + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/SuppressionXpathRegressionFallThroughOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/SuppressionXpathRegressionFallThroughOne.java deleted file mode 100644 index 8fa1f7cb6c5..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/SuppressionXpathRegressionFallThroughOne.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.fallthrough; - -public class SuppressionXpathRegressionFallThroughOne { - public void test() { - int id = 0; - switch (id) { - case 0: break; - case 1: if (1 == 0) { - break; - }; - case 2: break; //warn - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/SuppressionXpathRegressionFallThroughTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/SuppressionXpathRegressionFallThroughTwo.java deleted file mode 100644 index 69bcf349797..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/fallthrough/SuppressionXpathRegressionFallThroughTwo.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.fallthrough; - -public class SuppressionXpathRegressionFallThroughTwo { - void methodFallThruCustomWords(int i, int j, boolean cond) { - while (true) { - switch (i){ - case 0: - i++; - break; - default: //warn - i++; - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/InputXpathFinalClassDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/InputXpathFinalClassDefault.java new file mode 100644 index 00000000000..2295ed6e864 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/InputXpathFinalClassDefault.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.finalclass; + +public class InputXpathFinalClassDefault { // warn + private InputXpathFinalClassDefault() { + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/InputXpathFinalClassInnerClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/InputXpathFinalClassInnerClass.java new file mode 100644 index 00000000000..a86934321b3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/InputXpathFinalClassInnerClass.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.finalclass; + +public class InputXpathFinalClassInnerClass { + class Test { // warn + private Test(){ + + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/SuppressionXpathRegressionFinalClass1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/SuppressionXpathRegressionFinalClass1.java deleted file mode 100644 index be192f9e2b3..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/SuppressionXpathRegressionFinalClass1.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.finalclass; - -public class SuppressionXpathRegressionFinalClass1 { // warn - private SuppressionXpathRegressionFinalClass1() { - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/SuppressionXpathRegressionFinalClass2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/SuppressionXpathRegressionFinalClass2.java deleted file mode 100644 index 36ac58ec39d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalclass/SuppressionXpathRegressionFinalClass2.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.finalclass; - -public class SuppressionXpathRegressionFinalClass2 { - class Test { // warn - private Test(){ - - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableConditionals.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableConditionals.java new file mode 100644 index 00000000000..b797dbf73ae --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableConditionals.java @@ -0,0 +1,22 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableConditionals { + private void checkCodeBlock() { + try { + + final int from; + if (true) { + from = 0; + } else if (true) { + boolean body = false; // warn + if (body) return; + from = 0; + } else { + return; + } + } catch (Exception e) { + throw new RuntimeException(e); + } + } +} + diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableCtor.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableCtor.java new file mode 100644 index 00000000000..b65ca947381 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableCtor.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableCtor { + InputXpathFinalLocalVariableCtor(int a) { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableEnhancedFor.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableEnhancedFor.java new file mode 100644 index 00000000000..b3eb6bb6118 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableEnhancedFor.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableEnhancedFor { + public void method1() + { + final java.util.List list = new java.util.ArrayList<>(); + + for(Object a : list){ // warn + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableForLoop.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableForLoop.java new file mode 100644 index 00000000000..0532b9fe878 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableForLoop.java @@ -0,0 +1,20 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableForLoop { + public void method2() { + for (int i = 0; i < 5; i++) { + int x; // warn + x = 3; + } + int y; + for (int i = 0; i < 5; i++) { + y = 3; + } + for (int i = 0; i < 5; i++) { + int z; + for (int j = 0; j < 5; j++) { + z = 3; + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableInnerClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableInnerClass.java new file mode 100644 index 00000000000..11c2118c219 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableInnerClass.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableInnerClass { + class InnerClass { + public void test1() { + final boolean b = true; + int shouldBeFinal; // warn + + if (b) { + shouldBeFinal = 1; + } else { + shouldBeFinal = 2; + } + } + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableMethodDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableMethodDef.java new file mode 100644 index 00000000000..ce6e4a69268 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableMethodDef.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableMethodDef { + public void testMethod() { + int x; // warn + x = 3; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableParameterDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableParameterDef.java new file mode 100644 index 00000000000..397d16d05fc --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableParameterDef.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableParameterDef { + public void method(int aArg, final int aFinal, int aArg2) // warn + { + int z = 0; + + z++; + + aArg2++; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableSwitchCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableSwitchCase.java new file mode 100644 index 00000000000..20586314afc --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableSwitchCase.java @@ -0,0 +1,23 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableSwitchCase { + class InnerClass { + public void method(final int i) { + switch (i) { + case 1: + int foo = 1; // warn + break; + default: + } + switch (i) { + case 1: + int foo = 1; + break; + case 2: + foo = 2; + break; + default: + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableTryBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableTryBlock.java new file mode 100644 index 00000000000..a8f11e7851d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finallocalvariable/InputXpathFinalLocalVariableTryBlock.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.finallocalvariable; + +public class InputXpathFinalLocalVariableTryBlock { + private void checkCodeBlock() { + try { + int start = 0; // warn + + final int from; + if (true) { + from = 0; + } else { + return; + } + } catch (Exception e) { + throw new RuntimeException(e); + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersAnonymous.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersAnonymous.java new file mode 100644 index 00000000000..bc55f331780 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersAnonymous.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.finalparameters; + +public class InputXpathFinalParametersAnonymous { + + class AnonymousClass { + public void method(int argOne, int argTwo) {} // ok, int is primitive + } + + public void createClass() { + AnonymousClass obj = new AnonymousClass() { + public void method(String[] argOne, final String[] argTwo) {} // warn + }; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersCtor.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersCtor.java new file mode 100644 index 00000000000..b13701fc3f6 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersCtor.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.finalparameters; + +public class InputXpathFinalParametersCtor { + + public InputXpathFinalParametersCtor(int argOne, final int argTwo) { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersMethod.java new file mode 100644 index 00000000000..136df31d81c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/finalparameters/InputXpathFinalParametersMethod.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.finalparameters; + +public class InputXpathFinalParametersMethod { + + public void method(int argOne, final int argTwo) { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceEnd.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceEnd.java new file mode 100644 index 00000000000..951c9a4b9b4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceEnd.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.util.Collections; + +public class InputXpathGenericWhitespaceEnd { + void bad(Class cls) {//warn + } + void good(Class cls) { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedOne.java new file mode 100644 index 00000000000..6950860b8af --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedOne.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.io.Serializable; + +public class InputXpathGenericWhitespaceNestedOne { + & Serializable> void bad() {//warn + } + & Serializable> void good() { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedThree.java new file mode 100644 index 00000000000..2438476eccd --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedThree.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.io.Serializable; + +public class InputXpathGenericWhitespaceNestedThree { + , X> void bad() {//warn + } + , X> void good() { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedTwo.java new file mode 100644 index 00000000000..f7b155f9ce9 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceNestedTwo.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.io.Serializable; + +public class InputXpathGenericWhitespaceNestedTwo { + & Serializable> void bad() {//warn + } + & Serializable> void good() { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceSingleOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceSingleOne.java new file mode 100644 index 00000000000..69859ea87b6 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceSingleOne.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.util.Collections; + +public class InputXpathGenericWhitespaceSingleOne { + Object bad = Collections. emptySet();//warn + Object good = Collections.emptySet(); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceSingleTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceSingleTwo.java new file mode 100644 index 00000000000..2bf83017b4b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceSingleTwo.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.io.Serializable; + +public class InputXpathGenericWhitespaceSingleTwo { + void bad() {//warn + } + void good() { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartOne.java new file mode 100644 index 00000000000..01865d2d7aa --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartOne.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.util.Collections; + +public class InputXpathGenericWhitespaceStartOne { + public void bad() {//warn + } + public void good() { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartThree.java new file mode 100644 index 00000000000..b6214eb4fc5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartThree.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.util.Collections; + +public class InputXpathGenericWhitespaceStartThree { + < E> void bad() {//warn + } + void good() { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartTwo.java new file mode 100644 index 00000000000..ee0ce7f39bb --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/InputXpathGenericWhitespaceStartTwo.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.genericwhitespace; + +import java.util.function.Consumer; + +public class InputXpathGenericWhitespaceStartTwo { + public void bad(Consumer consumer) {//warn + } + public void good(Consumer consumer) { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceEnd.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceEnd.java deleted file mode 100644 index 6ac5e5a4c32..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceEnd.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.util.Collections; - -public class SuppressionXpathRegressionGenericWhitespaceEnd { - void bad(Class cls) {//warn - } - void good(Class cls) { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsOne.java deleted file mode 100644 index a392d6dd912..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsOne.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.io.Serializable; - -public class SuppressionXpathRegressionGenericWhitespaceNestedGenericsOne { - & Serializable> void bad() {//warn - } - & Serializable> void good() { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsThree.java deleted file mode 100644 index d6f8f921541..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsThree.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.io.Serializable; - -public class SuppressionXpathRegressionGenericWhitespaceNestedGenericsThree { - , X> void bad() {//warn - } - , X> void good() { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsTwo.java deleted file mode 100644 index 19e37368b33..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceNestedGenericsTwo.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.io.Serializable; - -public class SuppressionXpathRegressionGenericWhitespaceNestedGenericsTwo { - & Serializable> void bad() {//warn - } - & Serializable> void good() { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceSingleGenericOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceSingleGenericOne.java deleted file mode 100644 index 80a1a543c59..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceSingleGenericOne.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.util.Collections; - -public class SuppressionXpathRegressionGenericWhitespaceSingleGenericOne { - Object bad = Collections. emptySet();//warn - Object good = Collections.emptySet(); -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceSingleGenericTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceSingleGenericTwo.java deleted file mode 100644 index 33fbc9af078..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceSingleGenericTwo.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.io.Serializable; - -public class SuppressionXpathRegressionGenericWhitespaceSingleGenericTwo { - void bad() {//warn - } - void good() { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartOne.java deleted file mode 100644 index 5d18b475ff9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartOne.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.util.Collections; - -public class SuppressionXpathRegressionGenericWhitespaceStartOne { - public void bad() {//warn - } - public void good() { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartThree.java deleted file mode 100644 index a2ebac7dedd..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartThree.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.util.Collections; - -public class SuppressionXpathRegressionGenericWhitespaceStartThree { - < E> void bad() {//warn - } - void good() { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartTwo.java deleted file mode 100644 index a216fdb85ef..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/genericwhitespace/SuppressionXpathRegressionGenericWhitespaceStartTwo.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.genericwhitespace; - -import java.util.function.Consumer; - -public class SuppressionXpathRegressionGenericWhitespaceStartTwo { - public void bad(Consumer consumer) {//warn - } - public void good(Consumer consumer) { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/InputXpathHiddenFieldLambdaExpInMethodCall.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/InputXpathHiddenFieldLambdaExpInMethodCall.java new file mode 100644 index 00000000000..1577c14246d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/InputXpathHiddenFieldLambdaExpInMethodCall.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.hiddenfield; + +import java.util.Arrays; +import java.util.List; + +public class InputXpathHiddenFieldLambdaExpInMethodCall { + List numbers = Arrays.asList(1, 2, 3, 4, 5, 6); + Integer value = Integer.valueOf(1); + { + numbers.forEach((Integer value) -> String.valueOf(value)); //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/InputXpathHiddenFieldMethodParam.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/InputXpathHiddenFieldMethodParam.java new file mode 100644 index 00000000000..892405607b4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/InputXpathHiddenFieldMethodParam.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.hiddenfield; + +public class InputXpathHiddenFieldMethodParam { + static int someField; + static Object other = null; + Object field = null; + + static void method(Object field, Object other) { //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/SuppressionXpathRegressionHiddenFieldOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/SuppressionXpathRegressionHiddenFieldOne.java deleted file mode 100644 index 165a18b7e8a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/SuppressionXpathRegressionHiddenFieldOne.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.hiddenfield; - -import java.util.Arrays; -import java.util.List; - -public class SuppressionXpathRegressionHiddenFieldOne { - List numbers = Arrays.asList(1, 2, 3, 4, 5, 6); - Integer value = Integer.valueOf(1); - { - numbers.forEach((Integer value) -> String.valueOf(value)); //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/SuppressionXpathRegressionHiddenFieldTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/SuppressionXpathRegressionHiddenFieldTwo.java deleted file mode 100644 index b5d4aed3a51..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/hiddenfield/SuppressionXpathRegressionHiddenFieldTwo.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.hiddenfield; - -public class SuppressionXpathRegressionHiddenFieldTwo { - static int someField; - static Object other = null; - Object field = null; - - static void method(Object field, Object other) { //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/InputXpathIllegalCatchOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/InputXpathIllegalCatchOne.java new file mode 100644 index 00000000000..14482345101 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/InputXpathIllegalCatchOne.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.illegalcatch; + +public class InputXpathIllegalCatchOne { + public void fun() { + try { + } catch (RuntimeException e) { // warn + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/InputXpathIllegalCatchTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/InputXpathIllegalCatchTwo.java new file mode 100644 index 00000000000..f31c6d844d0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/InputXpathIllegalCatchTwo.java @@ -0,0 +1,19 @@ +package org.checkstyle.suppressionxpathfilter.illegalcatch; + +public class InputXpathIllegalCatchTwo { + public void methodOne() { + try { + foo(); + } catch (java.sql.SQLException e) { + } + } + + private void foo() throws java.sql.SQLException { + } + + public void methodTwo() { + try { + } catch (java.lang.RuntimeException e) { // warn + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/SuppressionXpathRegressionIllegalCatchOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/SuppressionXpathRegressionIllegalCatchOne.java deleted file mode 100644 index 7f39b3a5fac..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/SuppressionXpathRegressionIllegalCatchOne.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegalcatch; - -public class SuppressionXpathRegressionIllegalCatchOne { - public void fun() { - try { - } catch (RuntimeException e) { // warn - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/SuppressionXpathRegressionIllegalCatchTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/SuppressionXpathRegressionIllegalCatchTwo.java deleted file mode 100644 index 109e09b7dd7..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalcatch/SuppressionXpathRegressionIllegalCatchTwo.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegalcatch; - -public class SuppressionXpathRegressionIllegalCatchTwo { - public void methodOne() { - try { - foo(); - } catch (java.sql.SQLException e) { - } - } - - private void foo() throws java.sql.SQLException { - } - - public void methodTwo() { - try { - } catch (java.lang.RuntimeException e) { // warn - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/InputXpathIllegalImportDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/InputXpathIllegalImportDefault.java new file mode 100644 index 00000000000..da8c6e2938a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/InputXpathIllegalImportDefault.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.illegalimport; + +import java.util.List; // warn + +public class InputXpathIllegalImportDefault { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/InputXpathIllegalImportStatic.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/InputXpathIllegalImportStatic.java new file mode 100644 index 00000000000..6846efe69d2 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/InputXpathIllegalImportStatic.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.illegalimport; + +import static java.lang.Math.pow; // warn + +public class InputXpathIllegalImportStatic { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/SuppressionXpathRegressionIllegalImportOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/SuppressionXpathRegressionIllegalImportOne.java deleted file mode 100644 index 163fdbffc49..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/SuppressionXpathRegressionIllegalImportOne.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegalimport; - -import java.util.List; // warn - -public class SuppressionXpathRegressionIllegalImportOne { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/SuppressionXpathRegressionIllegalImportTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/SuppressionXpathRegressionIllegalImportTwo.java deleted file mode 100644 index 8f208c7d35d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalimport/SuppressionXpathRegressionIllegalImportTwo.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegalimport; - -import static java.lang.Math.pow; // warn - -public class SuppressionXpathRegressionIllegalImportTwo { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/InputXpathIllegalThrowsError.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/InputXpathIllegalThrowsError.java new file mode 100644 index 00000000000..98c2979ed43 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/InputXpathIllegalThrowsError.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.illegalthrows; + +public class InputXpathIllegalThrowsError { + public void methodOne() throws NullPointerException + { + } + + public void methodTwo() throws java.lang.Error //warn + { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/InputXpathIllegalThrowsRuntimeException.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/InputXpathIllegalThrowsRuntimeException.java new file mode 100644 index 00000000000..e430da5a1cb --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/InputXpathIllegalThrowsRuntimeException.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.illegalthrows; + +public class InputXpathIllegalThrowsRuntimeException { + public void sayHello() throws RuntimeException //warn + { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/SuppressionXpathRegressionIllegalThrowsOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/SuppressionXpathRegressionIllegalThrowsOne.java deleted file mode 100644 index e755b26b8c9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/SuppressionXpathRegressionIllegalThrowsOne.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegalthrows; - -public class SuppressionXpathRegressionIllegalThrowsOne { - public void sayHello() throws RuntimeException //warn - { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/SuppressionXpathRegressionIllegalThrowsTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/SuppressionXpathRegressionIllegalThrowsTwo.java deleted file mode 100644 index f9e9728160a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegalthrows/SuppressionXpathRegressionIllegalThrowsTwo.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegalthrows; - -public class SuppressionXpathRegressionIllegalThrowsTwo { - public void methodOne() throws NullPointerException - { - } - - public void methodTwo() throws java.lang.Error //warn - { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/InputXpathIllegalTokenLabel.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/InputXpathIllegalTokenLabel.java new file mode 100644 index 00000000000..2f223e483ac --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/InputXpathIllegalTokenLabel.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.illegaltoken; + +public class InputXpathIllegalTokenLabel { + public void myTest() { + outer: // warn + for (int i = 0; i < 5; i++) { + if (i == 1) { + break outer; + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/InputXpathIllegalTokenNative.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/InputXpathIllegalTokenNative.java new file mode 100644 index 00000000000..8498f354548 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/InputXpathIllegalTokenNative.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.illegaltoken; + +public class InputXpathIllegalTokenNative { + public native void myTest(); // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/SuppressionXpathRegressionIllegalToken1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/SuppressionXpathRegressionIllegalToken1.java deleted file mode 100644 index 438fa7cfa49..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/SuppressionXpathRegressionIllegalToken1.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegaltoken; - -public class SuppressionXpathRegressionIllegalToken1 { - public void myTest() { - outer: // warn - for (int i = 0; i < 5; i++) { - if (i == 1) { - break outer; - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/SuppressionXpathRegressionIllegalToken2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/SuppressionXpathRegressionIllegalToken2.java deleted file mode 100644 index a35dbc16ec8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltoken/SuppressionXpathRegressionIllegalToken2.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegaltoken; - -public class SuppressionXpathRegressionIllegalToken2 { - public native void myTest(); // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextField.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextField.java new file mode 100644 index 00000000000..bbaaf4e9cdd --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextField.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.illegaltokentext; + +public class InputXpathIllegalTokenTextField { + private int illegalNumber = 12345; //warn + + public void someMethod() { + // some code here + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextInterface.java new file mode 100644 index 00000000000..7e751ee733b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextInterface.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.illegaltokentext; + +public interface InputXpathIllegalTokenTextInterface { + void invalidIdentifier(); // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextMethod.java new file mode 100644 index 00000000000..1d9b994a209 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltokentext/InputXpathIllegalTokenTextMethod.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.illegaltokentext; + +public class InputXpathIllegalTokenTextMethod { + public void myMethod() { + String illegalString = "forbiddenText"; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/InputXpathIllegalTypeOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/InputXpathIllegalTypeOne.java new file mode 100644 index 00000000000..d2dbd2b0442 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/InputXpathIllegalTypeOne.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.illegaltype; + +public class InputXpathIllegalTypeOne { + public void typeParam(T t) {} // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/InputXpathIllegalTypeTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/InputXpathIllegalTypeTwo.java new file mode 100644 index 00000000000..9b1c95a9b5b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/InputXpathIllegalTypeTwo.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.illegaltype; + +import java.io.Serializable; + +public class InputXpathIllegalTypeTwo { + public void typeParam(T a) {} // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/SuppressionXpathRegressionIllegalTypeOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/SuppressionXpathRegressionIllegalTypeOne.java deleted file mode 100644 index 08238330e26..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/SuppressionXpathRegressionIllegalTypeOne.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegaltype; - -public class SuppressionXpathRegressionIllegalTypeOne { - public void typeParam(T t) {} // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/SuppressionXpathRegressionIllegalTypeTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/SuppressionXpathRegressionIllegalTypeTwo.java deleted file mode 100644 index ef0c166dff0..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/illegaltype/SuppressionXpathRegressionIllegalTypeTwo.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.illegaltype; - -import java.io.Serializable; - -public class SuppressionXpathRegressionIllegalTypeTwo { - public void typeParam(T a) {} // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlFour.java new file mode 100644 index 00000000000..6cb2e14cc0f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlFour.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.importcontrol; + +import java.io.*; +import java.util.Scanner; //warn +import java.util.Arrays; + + +public class InputXpathImportControlFour { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlFour.xml b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlFour.xml similarity index 100% rename from src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlFour.xml rename to src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlFour.xml diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlOne.java new file mode 100644 index 00000000000..4e9d88566e7 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlOne.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.importcontrol; + +import java.util.Scanner; //warn + +public class InputXpathImportControlOne { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlOne.xml b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlOne.xml similarity index 100% rename from src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlOne.xml rename to src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlOne.xml diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlThree.java new file mode 100644 index 00000000000..a5bf4169f07 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlThree.java @@ -0,0 +1,4 @@ +package org.checkstyle.suppressionxpathfilter.importcontrol; //warn + +public class InputXpathImportControlThree { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlTwo.java new file mode 100644 index 00000000000..d89e5768484 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlTwo.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.importcontrol; //warn + +import java.util.Scanner; + +public class InputXpathImportControlTwo { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlTwo.xml b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlTwo.xml similarity index 100% rename from src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlTwo.xml rename to src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/InputXpathImportControlTwo.xml diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlFour.java deleted file mode 100644 index 2081c94e500..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlFour.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importcontrol; - -import java.io.*; -import java.util.Scanner; //warn -import java.util.Arrays; - - -public class SuppressionXpathRegressionImportControlFour { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlOne.java deleted file mode 100644 index 7537508e57e..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlOne.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importcontrol; - -import java.util.Scanner; //warn - -public class SuppressionXpathRegressionImportControlOne { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlThree.java deleted file mode 100644 index db7dcf2006c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlThree.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importcontrol; //warn - -public class SuppressionXpathRegressionImportControlThree { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlTwo.java deleted file mode 100644 index 8684e39e164..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importcontrol/SuppressionXpathRegressionImportControlTwo.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importcontrol; //warn - -import java.util.Scanner; - -public class SuppressionXpathRegressionImportControlTwo { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderFive.java new file mode 100644 index 00000000000..e7936860360 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderFive.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.importorder; + +import java.util.List; +import static org.junit.After.*; +import java.util.Date; // warn + +public class InputXpathImportOrderFive { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderFour.java new file mode 100644 index 00000000000..6749a39e31d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderFour.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.importorder; + +import java.io.*; +import java.util.Set; +import static java.lang.Math.PI; // warn + +public class InputXpathImportOrderFour { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderOne.java new file mode 100644 index 00000000000..4ad72eb7567 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderOne.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.importorder; + +import static java.lang.Math.PI; +import java.util.Set; // warn + +public class InputXpathImportOrderOne { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderThree.java new file mode 100644 index 00000000000..2db8f80660d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderThree.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.importorder; + +import java.io.*; +import org.junit.*; // warn + +public class InputXpathImportOrderThree { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderTwo.java new file mode 100644 index 00000000000..4b0089e9ec3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/InputXpathImportOrderTwo.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.importorder; + +import java.util.List; + +import java.util.Set; // warn + +public class InputXpathImportOrderTwo { + // code +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderFive.java deleted file mode 100644 index 338c1a89897..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderFive.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importorder; - -import java.util.List; -import static org.junit.After.*; -import java.util.Date; // warn - -public class SuppressionXpathRegressionImportOrderFive { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderFour.java deleted file mode 100644 index e378ad0dcff..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderFour.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importorder; - -import java.io.*; -import java.util.Set; -import static java.lang.Math.PI; // warn - -public class SuppressionXpathRegressionImportOrderFour { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderOne.java deleted file mode 100644 index 5bdd7e4a5e7..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderOne.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importorder; - -import static java.lang.Math.PI; -import java.util.Set; // warn - -public class SuppressionXpathRegressionImportOrderOne { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderThree.java deleted file mode 100644 index 7b802a66f66..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderThree.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importorder; - -import java.io.*; -import org.junit.*; // warn - -public class SuppressionXpathRegressionImportOrderThree { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderTwo.java deleted file mode 100644 index 688d26055bb..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/importorder/SuppressionXpathRegressionImportOrderTwo.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.importorder; - -import java.util.List; - -import java.util.Set; // warn - -public class SuppressionXpathRegressionImportOrderTwo { - // code -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationBasicOffset.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationBasicOffset.java new file mode 100644 index 00000000000..3974eaefe3e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationBasicOffset.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.indentation; + +public class InputXpathIndentationBasicOffset { + void test() {} // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationDefault.java new file mode 100644 index 00000000000..f3158e5142a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationDefault.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.indentation; + +public class InputXpathIndentationDefault { +void wrongIntend() { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationElseWithoutCurly.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationElseWithoutCurly.java new file mode 100644 index 00000000000..a2a4c28d86b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationElseWithoutCurly.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.indentation; + +public class InputXpathIndentationElseWithoutCurly { + void test() { + if (true) + exp(); + else exp(); + + if (true) + exp(); + else + exp(); // warn + } + void exp() {} +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationIfWithoutCurly.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationIfWithoutCurly.java new file mode 100644 index 00000000000..1b55b1489c1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationIfWithoutCurly.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.indentation; + +public class InputXpathIndentationIfWithoutCurly { + void test() { + if (true) + e(); + if (true) + e(); // warn + } + void e() {}; +} + diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationLambdaOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationLambdaOne.java new file mode 100644 index 00000000000..536bbf08056 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationLambdaOne.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.indentation; + +public class InputXpathIndentationLambdaOne { + void test() { + MyLambda getA = + (a) -> a; // warn + } +} + +interface MyLambda { + int myMethod(int a); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationLambdaTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationLambdaTwo.java new file mode 100644 index 00000000000..68877ecfba7 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationLambdaTwo.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.indentation; + +interface MyLambdaInterface { + int foo(int a, int b); +}; + +public class InputXpathIndentationLambdaTwo { + void test() { + MyLambdaInterface div = (a, b) + -> { + if(b != 0) { + return a/b; + } + return 0; // warn + }; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationSwitchCase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationSwitchCase.java new file mode 100644 index 00000000000..0a8a3fd97cc --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/InputXpathIndentationSwitchCase.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.indentation; + +public class InputXpathIndentationSwitchCase { + void test() { + int key = 5; + switch (key) { + case 1: // warn + break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationElseWithoutCurly.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationElseWithoutCurly.java deleted file mode 100644 index ee89db624b5..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationElseWithoutCurly.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.indentation; - -public class SuppressionXpathRegressionIndentationElseWithoutCurly { - void test() { - if (true) - exp(); - else exp(); - - if (true) - exp(); - else - exp(); // warn - } - void exp() {} -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationIfWithoutCurly.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationIfWithoutCurly.java deleted file mode 100644 index 7abb87187fd..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationIfWithoutCurly.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.indentation; - -public class SuppressionXpathRegressionIndentationIfWithoutCurly { - void test() { - if (true) - e(); - if (true) - e(); // warn - } - void e() {}; -} - diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationLambdaTest1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationLambdaTest1.java deleted file mode 100644 index e0344b87380..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationLambdaTest1.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.indentation; - -public class SuppressionXpathRegressionIndentationLambdaTest1 { - void test() { - MyLambda getA = - (a) -> a; // warn - } -} - -interface MyLambda { - int myMethod(int a); -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationLambdaTest2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationLambdaTest2.java deleted file mode 100644 index e8adc875385..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationLambdaTest2.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.indentation; - -interface MyLambdaInterface { - int foo(int a, int b); -}; - -public class SuppressionXpathRegressionIndentationLambdaTest2 { - void test() { - MyLambdaInterface div = (a, b) - -> { - if(b != 0) { - return a/b; - } - return 0; // warn - }; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestOne.java deleted file mode 100644 index d60de1ccc71..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestOne.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.indentation; - -public class SuppressionXpathRegressionIndentationTestOne { -void wrongIntend() { // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestThree.java deleted file mode 100644 index eba8876cfe5..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestThree.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.indentation; - -public class SuppressionXpathRegressionIndentationTestThree { - void test() { - int key = 5; - switch (key) { - case 1: // warn - break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestTwo.java deleted file mode 100644 index e2dc66af019..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/indentation/SuppressionXpathRegressionIndentationTestTwo.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.indentation; - -public class SuppressionXpathRegressionIndentationTestTwo { - void test() {} // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/innerassignment/InputXpathInnerAssignment.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/innerassignment/InputXpathInnerAssignment.java new file mode 100644 index 00000000000..e0ae9ba571a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/innerassignment/InputXpathInnerAssignment.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.innerassignment; + +public class InputXpathInnerAssignment { + + public void testMethod() { + int a, b; + a = b = 5; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/innerassignment/InputXpathInnerAssignmentArrays.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/innerassignment/InputXpathInnerAssignmentArrays.java new file mode 100644 index 00000000000..5da5022b68c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/innerassignment/InputXpathInnerAssignmentArrays.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.innerassignment; + +public class InputXpathInnerAssignmentArrays { + public void testMethod() { + double myDouble; + double[] doubleArray = new double[] {myDouble = 4.5, 15.5}; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastOne.java new file mode 100644 index 00000000000..41fd10810ee --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastOne.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.innertypelast; + +public class InputXpathInnerTypeLastOne { + + public class Inner { + } + + public InputXpathInnerTypeLastOne() { // warn + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastThree.java new file mode 100644 index 00000000000..16c2f9bf3ff --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastThree.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.innertypelast; + +public class InputXpathInnerTypeLastThree { + + static {} // OK + + interface Inner { + } + + public InputXpathInnerTypeLastThree() { // warn + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastTwo.java new file mode 100644 index 00000000000..78f8b1ec362 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/innertypelast/InputXpathInnerTypeLastTwo.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.innertypelast; + +public class InputXpathInnerTypeLastTwo { + + static {}; // OK + + public void innerMethod() {} // OK + + class Inner { + class InnerInInner {} + public void innerMethod() {} // warn + + }; + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/InputXpathInterfaceIsType.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/InputXpathInterfaceIsType.java new file mode 100644 index 00000000000..8f1fbf8a98c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/InputXpathInterfaceIsType.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.interfaceistype; + +public interface InputXpathInterfaceIsType { // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/InputXpathInterfaceIsTypeAllowMarker.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/InputXpathInterfaceIsTypeAllowMarker.java new file mode 100644 index 00000000000..d0dd03c9bf7 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/InputXpathInterfaceIsTypeAllowMarker.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.interfaceistype; + +public interface InputXpathInterfaceIsTypeAllowMarker { // warn + int a = 3; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/SuppressionXpathRegressionInterfaceIsType1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/SuppressionXpathRegressionInterfaceIsType1.java deleted file mode 100644 index 030bf25f5cc..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/SuppressionXpathRegressionInterfaceIsType1.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.interfaceistype; - -public interface SuppressionXpathRegressionInterfaceIsType1 { // warn - int a = 3; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/SuppressionXpathRegressionInterfaceIsType2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/SuppressionXpathRegressionInterfaceIsType2.java deleted file mode 100644 index fd9b930be36..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfaceistype/SuppressionXpathRegressionInterfaceIsType2.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.interfaceistype; - -public interface SuppressionXpathRegressionInterfaceIsType2 { // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierField.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierField.java new file mode 100644 index 00000000000..043d2095cc7 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierField.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.interfacememberimpliedmodifier; + +public interface InputXpathInterfaceMemberImpliedModifierField { + public static String str = "random string"; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierInner.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierInner.java new file mode 100644 index 00000000000..2cf4c78c72c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierInner.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.interfacememberimpliedmodifier; + +public interface InputXpathInterfaceMemberImpliedModifierInner { + public interface Data {} // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierMethod.java new file mode 100644 index 00000000000..bffb6af5808 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/InputXpathInterfaceMemberImpliedModifierMethod.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.interfacememberimpliedmodifier; + +public interface InputXpathInterfaceMemberImpliedModifierMethod { + abstract void setData(); // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier1.java deleted file mode 100644 index 74c81b11e8c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier1.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.interfacememberimpliedmodifier; - -public interface SuppressionXpathRegressionInterfaceMemberImpliedModifier1 { - public static String str = "random string"; // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier2.java deleted file mode 100644 index d38d975fb3a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier2.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.interfacememberimpliedmodifier; - -public interface SuppressionXpathRegressionInterfaceMemberImpliedModifier2 { - abstract void setData(); // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier3.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier3.java deleted file mode 100644 index 18b982cbe19..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/interfacememberimpliedmodifier/SuppressionXpathRegressionInterfaceMemberImpliedModifier3.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.interfacememberimpliedmodifier; - -public interface SuppressionXpathRegressionInterfaceMemberImpliedModifier3 { - public interface Data {} // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionFive.java new file mode 100644 index 00000000000..6f050e510a0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionFive.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; + +public class InputXpathInvalidJavadocPositionFive { + public void foo() { + /** // warn + * Javadoc comment + */ + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionFour.java new file mode 100644 index 00000000000..04adbf2c2c9 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionFour.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; + +public class InputXpathInvalidJavadocPositionFour { + /** // warn + * Javadoc Comment + */ +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionOne.java new file mode 100644 index 00000000000..82b85797327 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionOne.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; + +@SuppressWarnings("serial") +/** // warn + * Javadoc Comment + */ +public class InputXpathInvalidJavadocPositionOne { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionSix.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionSix.java new file mode 100644 index 00000000000..763e720c073 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionSix.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; + +public class InputXpathInvalidJavadocPositionSix { + int a; + /** // warn + * Javadoc Comment + */ +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionThree.java new file mode 100644 index 00000000000..98b397511ce --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionThree.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; + +public class InputXpathInvalidJavadocPositionThree { + public void foo(){ + } + /** // warn + * Javadoc comment + */ +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionTwo.java new file mode 100644 index 00000000000..7d6d961e37f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/InputXpathInvalidJavadocPositionTwo.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; + +public class InputXpathInvalidJavadocPositionTwo { +} +/** // warn + * Javadoc comment + */ diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionFive.java deleted file mode 100644 index 2cb5606536c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionFive.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; - -public class SuppressionXpathRegressionInvalidJavadocPositionFive { - public void foo() { - /** // warn - * Javadoc comment - */ - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionFour.java deleted file mode 100644 index 5d65ecc150a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionFour.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; - -public class SuppressionXpathRegressionInvalidJavadocPositionFour { - /** // warn - * Javadoc Comment - */ -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionOne.java deleted file mode 100644 index 89405e83077..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionOne.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; - -@SuppressWarnings("serial") -/** // warn - * Javadoc Comment - */ -public class SuppressionXpathRegressionInvalidJavadocPositionOne { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionSix.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionSix.java deleted file mode 100644 index 7f73f25e92e..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionSix.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; - -public class SuppressionXpathRegressionInvalidJavadocPositionSix { - int a; - /** // warn - * Javadoc Comment - */ -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionThree.java deleted file mode 100644 index 6e64de7f644..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionThree.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; - -public class SuppressionXpathRegressionInvalidJavadocPositionThree { - public void foo(){ - } - /** // warn - * Javadoc comment - */ -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionTwo.java deleted file mode 100644 index bf9852b86af..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/invalidjavadocposition/SuppressionXpathRegressionInvalidJavadocPositionTwo.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.invalidjavadocposition; - -public class SuppressionXpathRegressionInvalidJavadocPositionTwo { -} -/** // warn - * Javadoc comment - */ diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/InputXpathJavadocContentLocationOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/InputXpathJavadocContentLocationOne.java new file mode 100644 index 00000000000..d2a274c469f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/InputXpathJavadocContentLocationOne.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.javadoccontentlocation; + +public interface InputXpathJavadocContentLocationOne { + + /** Text. // warn + */ + void test(); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/InputXpathJavadocContentLocationTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/InputXpathJavadocContentLocationTwo.java new file mode 100644 index 00000000000..e1ecc2f9505 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/InputXpathJavadocContentLocationTwo.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.javadoccontentlocation; + +public interface InputXpathJavadocContentLocationTwo { + + /* warn */ /** + * Text. + */ + void test(); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/SuppressionXpathRegressionJavadocContentLocationOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/SuppressionXpathRegressionJavadocContentLocationOne.java deleted file mode 100644 index 80a285ecd14..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/SuppressionXpathRegressionJavadocContentLocationOne.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadoccontentlocation; - -public interface SuppressionXpathRegressionJavadocContentLocationOne { - - /** Text. // warn - */ - void test(); -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/SuppressionXpathRegressionJavadocContentLocationTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/SuppressionXpathRegressionJavadocContentLocationTwo.java deleted file mode 100644 index 6ddc0aaedfd..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoccontentlocation/SuppressionXpathRegressionJavadocContentLocationTwo.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadoccontentlocation; - -public interface SuppressionXpathRegressionJavadocContentLocationTwo { - - /* warn */ /** - * Text. - */ - void test(); -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodFive.java new file mode 100644 index 00000000000..3394b3fcb60 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodFive.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.javadocmethod; + +/** + * Config: + * validateThrows = true + */ +public class InputXpathJavadocMethodFive { + + /** + * Needs a throws tag. + */ + public void bar() { + throw new org.apache.tools.ant.BuildException(""); //warn + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodFour.java new file mode 100644 index 00000000000..272ac80d5cd --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodFour.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.javadocmethod; + +/** + * Config: + * validateThrows = true + */ +public class InputXpathJavadocMethodFour { + + /** + * Needs a throws tag. + */ + public void foo() throws Exception { //warn + + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodOne.java new file mode 100644 index 00000000000..4f915d594cf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodOne.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.javadocmethod; + +/** + * Config: + */ +public class InputXpathJavadocMethodOne { + + /** {@inheritDoc} */ + public void inheritableMethod() { + // may be inherited and overridden + } + + /** {@inheritDoc} */ + private void uninheritableMethod() { //warn + // not possible to be inherited + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodThree.java new file mode 100644 index 00000000000..42db3882c3e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodThree.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.javadocmethod; + +/** + * Config: + */ +public class InputXpathJavadocMethodThree { + + /** + * Needs a param tag for T. + * + * @param x the input + * @return hashcode of x + */ + public int checkTypeParam(T x) { //warn + return x.hashCode(); + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodTwo.java new file mode 100644 index 00000000000..94b0468b06c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/InputXpathJavadocMethodTwo.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.javadocmethod; + +/** + * Config: + */ +public class InputXpathJavadocMethodTwo { + + /** + * Needs a param tag for x. + * + * @return identity + */ + public int checkParam(int x) { //warn + return x; + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodFive.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodFive.java deleted file mode 100644 index 0a74583fb40..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodFive.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadocmethod; - -/** - * Config: - * validateThrows = true - */ -public class SuppressionXpathRegressionJavadocMethodFive { - - /** - * Needs a throws tag. - */ - public void bar() { - throw new org.apache.tools.ant.BuildException(""); //warn - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodFour.java deleted file mode 100644 index 44224218b0d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodFour.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadocmethod; - -/** - * Config: - * validateThrows = true - */ -public class SuppressionXpathRegressionJavadocMethodFour { - - /** - * Needs a throws tag. - */ - public void foo() throws Exception { //warn - - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodOne.java deleted file mode 100644 index 0308db07484..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodOne.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadocmethod; - -/** - * Config: - */ -public class SuppressionXpathRegressionJavadocMethodOne { - - /** {@inheritDoc} */ - public void inheritableMethod() { - // may be inherited and overridden - } - - /** {@inheritDoc} */ - private void uninheritableMethod() { //warn - // not possible to be inherited - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodThree.java deleted file mode 100644 index 60461bd20f8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodThree.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadocmethod; - -/** - * Config: - */ -public class SuppressionXpathRegressionJavadocMethodThree { - - /** - * Needs a param tag for T. - * - * @param x the input - * @return hashcode of x - */ - public int checkTypeParam(T x) { //warn - return x.hashCode(); - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodTwo.java deleted file mode 100644 index 569b02b44aa..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocmethod/SuppressionXpathRegressionJavadocMethodTwo.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadocmethod; - -/** - * Config: - */ -public class SuppressionXpathRegressionJavadocMethodTwo { - - /** - * Needs a param tag for x. - * - * @return identity - */ - public int checkParam(int x) { //warn - return x; - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeIncomplete.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeIncomplete.java new file mode 100644 index 00000000000..ffd74088d4c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeIncomplete.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.javadoctype; + +/** + * Need type param tags. + * @param + * @param + */ +public class InputXpathJavadocTypeIncomplete { //warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeMissingTag.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeMissingTag.java new file mode 100644 index 00000000000..dc80e9b7b5e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeMissingTag.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.javadoctype; + +/** + * Needs an author tag. + */ +public class InputXpathJavadocTypeMissingTag { //warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeWrongFormat.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeWrongFormat.java new file mode 100644 index 00000000000..9ae8ea05b0f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/InputXpathJavadocTypeWrongFormat.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.javadoctype; + +/** + * Has an author tag but wrong format. + * @author bar + */ +public class InputXpathJavadocTypeWrongFormat { //warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeOne.java deleted file mode 100644 index 02335e0f1e8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeOne.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadoctype; - -/** - * Needs an author tag. - */ -public class SuppressionXpathRegressionJavadocTypeOne { //warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeThree.java deleted file mode 100644 index 800e5e359ee..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeThree.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadoctype; - -/** - * Need type param tags. - * @param - * @param - */ -public class SuppressionXpathRegressionJavadocTypeThree { //warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeTwo.java deleted file mode 100644 index 4fe5cffd17f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadoctype/SuppressionXpathRegressionJavadocTypeTwo.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadoctype; - -/** - * Has an author tag but wrong format. - * @author bar - */ -public class SuppressionXpathRegressionJavadocTypeTwo { //warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/InputXpathJavadocVariableInnerClassFields.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/InputXpathJavadocVariableInnerClassFields.java new file mode 100644 index 00000000000..1ec67e4111d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/InputXpathJavadocVariableInnerClassFields.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.javadocvariable; + +public class InputXpathJavadocVariableInnerClassFields { + class InnerInner2 + { + public int fData; //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/InputXpathJavadocVariablePrivateClassFields.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/InputXpathJavadocVariablePrivateClassFields.java new file mode 100644 index 00000000000..53d7148e507 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/InputXpathJavadocVariablePrivateClassFields.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.javadocvariable; + +public class InputXpathJavadocVariablePrivateClassFields { + + private int age; //warn + + public void helloWorld(String name) + { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/SuppressionXpathRegressionJavadocVariableOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/SuppressionXpathRegressionJavadocVariableOne.java deleted file mode 100644 index f7ba64bd6de..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/SuppressionXpathRegressionJavadocVariableOne.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadocvariable; - -public class SuppressionXpathRegressionJavadocVariableOne { - - private int age; //warn - - public void helloWorld(String name) - { - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/SuppressionXpathRegressionJavadocVariableTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/SuppressionXpathRegressionJavadocVariableTwo.java deleted file mode 100644 index 57a3515893c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/javadocvariable/SuppressionXpathRegressionJavadocVariableTwo.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.javadocvariable; - -public class SuppressionXpathRegressionJavadocVariableTwo { - class InnerInner2 - { - public int fData; //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSOne.java new file mode 100644 index 00000000000..cb5370ce6f5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSOne.java @@ -0,0 +1,63 @@ +package org.checkstyle.suppressionxpathfilter.javancss; + +public class InputXpathJavaNCSSOne { + + public void test() { // warn + int a1 = 1; + int a2 = 1; + int a3 = 1; + int a4 = 1; + int a5 = 1; + int a6 = 1; + int a7 = 1; + int a8 = 1; + int a9 = 1; + int a10 = 1; + int a11 = 1; + int a12 = 1; + int a13 = 1; + int a14 = 1; + int a15 = 1; + int a16 = 1; + int a17 = 1; + int a18 = 1; + int a19 = 1; + int a20 = 1; + int a21 = 1; + int a22 = 1; + int a23 = 1; + int a24 = 1; + int a25 = 1; + int a26 = 1; + int a27 = 1; + int a28 = 1; + int a29 = 1; + int a30 = 1; + int a31 = 1; + int a32 = 1; + int a33 = 1; + int a34 = 1; + int a35 = 1; + int a36 = 1; + int a37 = 1; + int a38 = 1; + int a39 = 1; + int a40 = 1; + int a41 = 1; + int a42 = 1; + int a43 = 1; + int a44 = 1; + int a45 = 1; + int a46 = 1; + int a47 = 1; + int a48 = 1; + int a49 = 1; + int a50 = 1; + } + + public void test2() { // ok, method does not exceed the 50 lines limit. + int a1 = 1; + int a2 = 1; + int a3 = 1; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSThree.java new file mode 100644 index 00000000000..151530f901e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSThree.java @@ -0,0 +1,58 @@ +package org.checkstyle.suppressionxpathfilter.javancss; // warn + +public class InputXpathJavaNCSSThree { + int a1 = 1; + int a2 = 1; + int a3 = 1; + int a4 = 1; + int a5 = 1; + int a6 = 1; + int a7 = 1; + int a8 = 1; + int a9 = 1; + int a10 = 1; + int a11 = 1; + int a12 = 1; + int a13 = 1; + int a14 = 1; + int a15 = 1; + int a16 = 1; + int a17 = 1; + int a18 = 1; + int a19 = 1; + int a20 = 1; + int a21 = 1; + int a22 = 1; + int a23 = 1; + int a24 = 1; + int a25 = 1; +} + + +class Test1 { + int a1 = 1; + int a2 = 1; + int a3 = 1; + int a4 = 1; + int a5 = 1; + int a6 = 1; + int a7 = 1; + int a8 = 1; + int a9 = 1; + int a10 = 1; + int a11 = 1; + int a12 = 1; +} + +class Test2 { + int a1 = 1; + int a2 = 1; + int a3 = 1; + int a4 = 1; + int a5 = 1; + int a6 = 1; + int a7 = 1; + int a8 = 1; + int a9 = 1; + int a10 = 1; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSTwo.java new file mode 100644 index 00000000000..9eb109cb487 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/javancss/InputXpathJavaNCSSTwo.java @@ -0,0 +1,61 @@ +package org.checkstyle.suppressionxpathfilter.javancss; + +public class InputXpathJavaNCSSTwo { // warn + + int a1 = 1; + int a2 = 1; + int a3 = 1; + int a4 = 1; + int a5 = 1; + int a6 = 1; + int a7 = 1; + int a8 = 1; + int a9 = 1; + int a10 = 1; + int a11 = 1; + int a12 = 1; + int a13 = 1; + int a14 = 1; + int a15 = 1; + int a16 = 1; + int a17 = 1; + int a18 = 1; + int a19 = 1; + int a20 = 1; + int a21 = 1; + int a22 = 1; + int a23 = 1; + int a24 = 1; + int a25 = 1; + int a26 = 1; + int a27 = 1; + int a28 = 1; + int a29 = 1; + int a30 = 1; + int a31 = 1; + int a32 = 1; + int a33 = 1; + int a34 = 1; + int a35 = 1; + int a36 = 1; + int a37 = 1; + int a38 = 1; + int a39 = 1; + int a40 = 1; + int a41 = 1; + int a42 = 1; + int a43 = 1; + int a44 = 1; + int a45 = 1; + int a46 = 1; + int a47 = 1; + int a48 = 1; + int a49 = 1; + int a50 = 1; +} + +class Test { // ok, class does not exceed the 50 lines limit. + int a1 = 1; + int a2 = 1; + int a3 = 1; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/InputXpathLambdaBodyLengthCustomMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/InputXpathLambdaBodyLengthCustomMax.java new file mode 100644 index 00000000000..a31622499c5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/InputXpathLambdaBodyLengthCustomMax.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.lambdabodylength; + +import java.util.function.Function; + +public class InputXpathLambdaBodyLengthCustomMax { + void test() { + Runnable r = () -> { // warn + method(2); + method(3); + method(4); + method(5); + }; + } + + void method(int i) {} +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/InputXpathLambdaBodyLengthDefaultMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/InputXpathLambdaBodyLengthDefaultMax.java new file mode 100644 index 00000000000..abe56dbe16b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/InputXpathLambdaBodyLengthDefaultMax.java @@ -0,0 +1,20 @@ +package org.checkstyle.suppressionxpathfilter.lambdabodylength; + +import java.util.function.Function; + +public class InputXpathLambdaBodyLengthDefaultMax { + void test() { + Function trimmer = (s) -> // warn + s.trim() + .trim() + .trim() + .trim() + .trim() + .trim() + .trim() + .trim() + .trim() + .trim() + .trim(); + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/SuppressionXpathRegressionLambdaBodyLength1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/SuppressionXpathRegressionLambdaBodyLength1.java deleted file mode 100644 index c0d12288038..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/SuppressionXpathRegressionLambdaBodyLength1.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.lambdabodylength; - -import java.util.function.Function; - -public class SuppressionXpathRegressionLambdaBodyLength1 { - void test() { - Function trimmer = (s) -> // warn - s.trim() - .trim() - .trim() - .trim() - .trim() - .trim() - .trim() - .trim() - .trim() - .trim() - .trim(); - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/SuppressionXpathRegressionLambdaBodyLength2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/SuppressionXpathRegressionLambdaBodyLength2.java deleted file mode 100644 index d552ae4fafb..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdabodylength/SuppressionXpathRegressionLambdaBodyLength2.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.lambdabodylength; - -import java.util.function.Function; - -public class SuppressionXpathRegressionLambdaBodyLength2 { - void test() { - Runnable r = () -> { // warn - method(2); - method(3); - method(4); - method(5); - }; - } - - void method(int i) {} -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/InputXpathLambdaParameterNameDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/InputXpathLambdaParameterNameDefault.java new file mode 100644 index 00000000000..94cb1ec502b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/InputXpathLambdaParameterNameDefault.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.lambdaparametername; + +import java.util.function.Function; + +public class InputXpathLambdaParameterNameDefault { + void test() { + Function trimmer = S -> S.trim(); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/InputXpathLambdaParameterNameNonDefaultPattern.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/InputXpathLambdaParameterNameNonDefaultPattern.java new file mode 100644 index 00000000000..cbb3c42980a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/InputXpathLambdaParameterNameNonDefaultPattern.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.lambdaparametername; + +import java.util.function.Function; + +public class InputXpathLambdaParameterNameNonDefaultPattern { + void test() { + Function trimmer = (s) -> s.trim(); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/SuppressionXpathRegressionLambdaParameterName1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/SuppressionXpathRegressionLambdaParameterName1.java deleted file mode 100644 index f720010fe9d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/SuppressionXpathRegressionLambdaParameterName1.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.lambdaparametername; - -import java.util.function.Function; - -public class SuppressionXpathRegressionLambdaParameterName1 { - void test() { - Function trimmer = S -> S.trim(); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/SuppressionXpathRegressionLambdaParameterName2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/SuppressionXpathRegressionLambdaParameterName2.java deleted file mode 100644 index 8b818ed11e0..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/lambdaparametername/SuppressionXpathRegressionLambdaParameterName2.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.lambdaparametername; - -import java.util.function.Function; - -public class SuppressionXpathRegressionLambdaParameterName2 { - void test() { - Function trimmer = (s) -> s.trim(); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyOne.java new file mode 100644 index 00000000000..5315bcdddf8 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyOne.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.leftcurly; + +public class InputXpathLeftCurlyOne +{ //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyThree.java new file mode 100644 index 00000000000..3a840197762 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyThree.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.leftcurly; + +public class InputXpathLeftCurlyThree { + public void sample(boolean flag) { + if (flag) { String.CASE_INSENSITIVE_ORDER.equals("it is ok."); } //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyTwo.java new file mode 100644 index 00000000000..3cfc1b20c9b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/InputXpathLeftCurlyTwo.java @@ -0,0 +1,4 @@ +package org.checkstyle.suppressionxpathfilter.leftcurly; + +public class InputXpathLeftCurlyTwo { //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyOne.java deleted file mode 100644 index 3f95f5fef05..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyOne.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.leftcurly; - -public class SuppressionXpathRegressionLeftCurlyOne -{ //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyThree.java deleted file mode 100644 index e130365a253..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyThree.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.leftcurly; - -public class SuppressionXpathRegressionLeftCurlyThree { - public void sample(boolean flag) { - if (flag) { String.CASE_INSENSITIVE_ORDER.equals("it is ok."); } //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyTwo.java deleted file mode 100644 index 7dca41d3c95..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/leftcurly/SuppressionXpathRegressionLeftCurlyTwo.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.leftcurly; - -public class SuppressionXpathRegressionLeftCurlyTwo { //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameInner.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameInner.java new file mode 100644 index 00000000000..2645870893a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameInner.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.localfinalvariablename; + +import java.util.Scanner; + +public class InputXpathLocalFinalVariableNameInner { + class InnerClass { + void MyMethod() { + final int VAR1 = 10; // warn + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameResource.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameResource.java new file mode 100644 index 00000000000..3a59a808674 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameResource.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.localfinalvariablename; + +import java.util.Scanner; + +public class InputXpathLocalFinalVariableNameResource { + void MyMethod() { + try(Scanner scanner = new Scanner("ABC")) { // warn + final int VAR1 = 5; + final int var1 = 10; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameVar.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameVar.java new file mode 100644 index 00000000000..96d6ac4dc05 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/localfinalvariablename/InputXpathLocalFinalVariableNameVar.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.localfinalvariablename; + +public class InputXpathLocalFinalVariableNameVar { + void MyMethod() { + final int VAR1 = 5; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberAnotherVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberAnotherVariable.java new file mode 100644 index 00000000000..f94a62b58f3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberAnotherVariable.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.magicnumber; + +public class InputXpathMagicNumberAnotherVariable { + public void performOperation() { + try { + int result = 0; + } catch(Exception e) { + int a = 0; + boolean someCondition = false; + if (someCondition) { + a = 1; // ok + } else { + a = 20; // warn + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberMethodDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberMethodDef.java new file mode 100644 index 00000000000..33f778e6342 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberMethodDef.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.magicnumber; + +public class InputXpathMagicNumberMethodDef { + public void methodWithMagicNumber() { + int x = 20; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberVariable.java new file mode 100644 index 00000000000..0e8854fa0e1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/magicnumber/InputXpathMagicNumberVariable.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.magicnumber; + +public class InputXpathMagicNumberVariable { + private int a = 1; // ok + int d = 5; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAmpChar.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAmpChar.java new file mode 100644 index 00000000000..4d0e9c55935 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAmpChar.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedAmpChar { + char ampChar = '&'; // warning +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAmpString.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAmpString.java new file mode 100644 index 00000000000..5cab2abd388 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAmpString.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedAmpString { + String ampersandChar = "&testThree"; // warning +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAposChar.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAposChar.java new file mode 100644 index 00000000000..67466b6b0ad --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAposChar.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedAposChar { + char aposChar = '\''; // warning +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAposString.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAposString.java new file mode 100644 index 00000000000..398ac8001ac --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedAposString.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedAposString { + String aposChar = "'SingleQuoteOnBothSide'"; // warning +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedCarriageString.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedCarriageString.java new file mode 100644 index 00000000000..32092a516cd --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedCarriageString.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedCarriageString { + String carriageChar = "carriageCharAtEnd\r"; // warning +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedGreaterChar.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedGreaterChar.java new file mode 100644 index 00000000000..8ce257cbd6f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedGreaterChar.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedGreaterChar { + char greaterChar = '>'; // warning +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedGreaterString.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedGreaterString.java new file mode 100644 index 00000000000..642e15b5a08 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedGreaterString.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedGreaterString { + String greaterChar = ">testFour"; // warning +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedLessChar.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedLessChar.java new file mode 100644 index 00000000000..51eda2ef634 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedLessChar.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedLessChar { + char lessChar = '<'; // warning +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedLessString.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedLessString.java new file mode 100644 index 00000000000..b1e2971ce52 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/matchxpath/InputXpathMatchXpathEncodedLessString.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.matchxpath; + +public class InputXpathMatchXpathEncodedLessString { + String lessChar = " void foo() { } // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/methodtypeparametername/InputXpathMethodTypeParameterNameInner.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/methodtypeparametername/InputXpathMethodTypeParameterNameInner.java new file mode 100644 index 00000000000..10d51c6fdac --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/methodtypeparametername/InputXpathMethodTypeParameterNameInner.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.methodtypeparametername; + +public class InputXpathMethodTypeParameterNameInner{ + + static class Junk { + void foo() { // warn + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/methodtypeparametername/InputXpathMethodTypeParameterNameLowercase.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/methodtypeparametername/InputXpathMethodTypeParameterNameLowercase.java new file mode 100644 index 00000000000..20b3a9f24bf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/methodtypeparametername/InputXpathMethodTypeParameterNameLowercase.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.methodtypeparametername; + +import java.util.List; + +public class InputXpathMethodTypeParameterNameLowercase { + + a_a myMethod(List list) {return null;} // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/InputXpathMissingCtor.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/InputXpathMissingCtor.java new file mode 100644 index 00000000000..d70ef35a124 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/InputXpathMissingCtor.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.missingctor; + +public class InputXpathMissingCtor { // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/InputXpathMissingCtorInner.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/InputXpathMissingCtorInner.java new file mode 100644 index 00000000000..ba5bc93a5e6 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/InputXpathMissingCtorInner.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.missingctor; + +public class InputXpathMissingCtorInner { + + private InputXpathMissingCtorInner() { + + } + + class InnerClass { // warn + + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/SuppressionXpathRegressionMissingCtor1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/SuppressionXpathRegressionMissingCtor1.java deleted file mode 100644 index da17df52919..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/SuppressionXpathRegressionMissingCtor1.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingctor; - -public class SuppressionXpathRegressionMissingCtor1 { // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/SuppressionXpathRegressionMissingCtor2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/SuppressionXpathRegressionMissingCtor2.java deleted file mode 100644 index b0e36ea3aa3..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingctor/SuppressionXpathRegressionMissingCtor2.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingctor; - -public class SuppressionXpathRegressionMissingCtor2 { - - private SuppressionXpathRegressionMissingCtor2() { - - } - - class InnerClass { // warn - - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/InputXpathMissingJavadocMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/InputXpathMissingJavadocMethod.java new file mode 100644 index 00000000000..4caf025cb63 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/InputXpathMissingJavadocMethod.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.missingjavadocmethod; + +public class InputXpathMissingJavadocMethod { + public void foo() { // warn + // code + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/InputXpathMissingJavadocMethodCtor.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/InputXpathMissingJavadocMethodCtor.java new file mode 100644 index 00000000000..b2661726d09 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/InputXpathMissingJavadocMethodCtor.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.missingjavadocmethod; + +public class InputXpathMissingJavadocMethodCtor { + public InputXpathMissingJavadocMethodCtor() { // warn + // code + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/SuppressionXpathRegressionMissingJavadocMethod1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/SuppressionXpathRegressionMissingJavadocMethod1.java deleted file mode 100644 index 4d0803600c1..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/SuppressionXpathRegressionMissingJavadocMethod1.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingjavadocmethod; - -public class SuppressionXpathRegressionMissingJavadocMethod1 { - public SuppressionXpathRegressionMissingJavadocMethod1() { // warn - // code - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/SuppressionXpathRegressionMissingJavadocMethod2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/SuppressionXpathRegressionMissingJavadocMethod2.java deleted file mode 100644 index f305328408f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadocmethod/SuppressionXpathRegressionMissingJavadocMethod2.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingjavadocmethod; - -public class SuppressionXpathRegressionMissingJavadocMethod2 { - public void foo() { // warn - // code - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeAnnotation.java new file mode 100644 index 00000000000..6a19806a6d2 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeAnnotation.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.missingjavadoctype; + +@TestAnnotation +public class InputXpathMissingJavadocTypeAnnotation { + @TestAnnotation2 // warn + public class innerClass { + + } +} + +@interface TestAnnotation { + +} + +@interface TestAnnotation2 { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeClass.java new file mode 100644 index 00000000000..eec949f6236 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeClass.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.missingjavadoctype; + +public class InputXpathMissingJavadocTypeClass { // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeExcluded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeExcluded.java new file mode 100644 index 00000000000..28e1249992d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeExcluded.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.missingjavadoctype; + +public class InputXpathMissingJavadocTypeExcluded { + private class Test { // warn + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeScope.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeScope.java new file mode 100644 index 00000000000..ab4a6d21af4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeScope.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.missingjavadoctype; + +/** + * ok + */ +public class InputXpathMissingJavadocTypeScope { + private class Test { // warn + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeToken.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeToken.java new file mode 100644 index 00000000000..f3422cdd487 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/InputXpathMissingJavadocTypeToken.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.missingjavadoctype; + +public interface InputXpathMissingJavadocTypeToken { // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeAnnotation.java deleted file mode 100644 index b5de3a8d6d7..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeAnnotation.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingjavadoctype; - -@TestAnnotation -public class SuppressionXpathRegressionMissingJavadocTypeAnnotation { - @TestAnnotation2 // warn - public class innerClass { - - } -} - -@interface TestAnnotation { - -} - -@interface TestAnnotation2 { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeClass.java deleted file mode 100644 index 0f684ba89f5..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeClass.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingjavadoctype; - -public class SuppressionXpathRegressionMissingJavadocTypeClass { // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeExcluded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeExcluded.java deleted file mode 100644 index 1732b0d55a9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeExcluded.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingjavadoctype; - -public class SuppressionXpathRegressionMissingJavadocTypeExcluded { - private class Test { // warn - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeScope.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeScope.java deleted file mode 100644 index f7316a511ec..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeScope.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingjavadoctype; - -/** - * ok - */ -public class SuppressionXpathRegressionMissingJavadocTypeScope { - private class Test { // warn - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeToken.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeToken.java deleted file mode 100644 index a32f9012128..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingjavadoctype/SuppressionXpathRegressionMissingJavadocTypeToken.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingjavadoctype; - -public interface SuppressionXpathRegressionMissingJavadocTypeToken { // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideAnonymous.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideAnonymous.java new file mode 100644 index 00000000000..3659d65da65 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideAnonymous.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.missingoverride; + +public class InputXpathMissingOverrideAnonymous { + Runnable r = new Runnable() { + /** + * {@inheritDoc} + */ + public void run() { // warn + + } + }; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideClass.java new file mode 100644 index 00000000000..f40149dcc14 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideClass.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.missingoverride; + +public class InputXpathMissingOverrideClass { + /** + * {@inheritDoc} + */ + public boolean equals(Object obj) { // warn + return false; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInheritDocInvalidPrivateMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInheritDocInvalidPrivateMethod.java new file mode 100644 index 00000000000..45727e88ec7 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInheritDocInvalidPrivateMethod.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.missingoverride; + +public class InputXpathMissingOverrideInheritDocInvalidPrivateMethod { + /** + * {@inheritDoc} + */ + private void test() { // warn + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInheritDocInvalidPublicMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInheritDocInvalidPublicMethod.java new file mode 100644 index 00000000000..99cdbd3108d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInheritDocInvalidPublicMethod.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.missingoverride; + +public class InputXpathMissingOverrideInheritDocInvalidPublicMethod { + /** + * {@inheritDoc} + */ + public static void test() { // warn + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInterface.java new file mode 100644 index 00000000000..7d04fec524b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/InputXpathMissingOverrideInterface.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.missingoverride; + +public interface InputXpathMissingOverrideInterface { + /** + * {@inheritDoc} + */ + boolean test(Object obj); // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideAnonymous.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideAnonymous.java deleted file mode 100644 index 8c9b8750975..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideAnonymous.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingoverride; - -public class SuppressionXpathRegressionMissingOverrideAnonymous { - Runnable r = new Runnable() { - /** - * {@inheritDoc} - */ - public void run() { // warn - - } - }; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideClass.java deleted file mode 100644 index 4105a6589d8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideClass.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingoverride; - -public class SuppressionXpathRegressionMissingOverrideClass { - /** - * {@inheritDoc} - */ - public boolean equals(Object obj) { // warn - return false; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInheritDocInvalid1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInheritDocInvalid1.java deleted file mode 100644 index f946a95f591..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInheritDocInvalid1.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingoverride; - -public class SuppressionXpathRegressionMissingOverrideInheritDocInvalid1 { - /** - * {@inheritDoc} - */ - private void test() { // warn - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInheritDocInvalid2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInheritDocInvalid2.java deleted file mode 100644 index 283ce5dff25..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInheritDocInvalid2.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingoverride; - -public class SuppressionXpathRegressionMissingOverrideInheritDocInvalid2 { - /** - * {@inheritDoc} - */ - public static void test() { // warn - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInterface.java deleted file mode 100644 index 6c449ebc57a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingoverride/SuppressionXpathRegressionMissingOverrideInterface.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingoverride; - -public interface SuppressionXpathRegressionMissingOverrideInterface { - /** - * {@inheritDoc} - */ - boolean test(Object obj); // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/InputXpathMissingSwitchDefaultNested.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/InputXpathMissingSwitchDefaultNested.java new file mode 100644 index 00000000000..a81e629b58d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/InputXpathMissingSwitchDefaultNested.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.missingswitchdefault; + +public class InputXpathMissingSwitchDefaultNested { + public static void test2() { + int key = 2; + switch (key) { + case 1: + break; + case 2: + break; + default: + switch (key) { // warn + case 2: + break; + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/InputXpathMissingSwitchDefaultSimple.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/InputXpathMissingSwitchDefaultSimple.java new file mode 100644 index 00000000000..50ddffcbcae --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/InputXpathMissingSwitchDefaultSimple.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.missingswitchdefault; + +public class InputXpathMissingSwitchDefaultSimple { + public static void test1() { + int key = 2; + switch (key) { // warn + case 1: + break; + case 2: + break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/SuppressionXpathRegressionMissingSwitchDefaultOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/SuppressionXpathRegressionMissingSwitchDefaultOne.java deleted file mode 100644 index 17290bd306d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/SuppressionXpathRegressionMissingSwitchDefaultOne.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingswitchdefault; - -public class SuppressionXpathRegressionMissingSwitchDefaultOne { - public static void test1() { - int key = 2; - switch (key) { // warn - case 1: - break; - case 2: - break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/SuppressionXpathRegressionMissingSwitchDefaultTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/SuppressionXpathRegressionMissingSwitchDefaultTwo.java deleted file mode 100644 index 0daa65cdf1f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/missingswitchdefault/SuppressionXpathRegressionMissingSwitchDefaultTwo.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.missingswitchdefault; - -public class SuppressionXpathRegressionMissingSwitchDefaultTwo { - public static void test2() { - int key = 2; - switch (key) { - case 1: - break; - case 2: - break; - default: - switch (key) { // warn - case 2: - break; - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderAnnotation.java new file mode 100644 index 00000000000..0069004e538 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderAnnotation.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.modifierorder; + +public @InterfaceAnnotation @interface InputXpathModifierOrderAnnotation { //warn + int foo(); +} + +@interface InterfaceAnnotation {} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderMethod.java new file mode 100644 index 00000000000..dff854b99ab --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderMethod.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.modifierorder; + +public class InputXpathModifierOrderMethod { + private @MethodAnnotation void foo() {} // warn +} + +@interface MethodAnnotation {} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderVariable.java new file mode 100644 index 00000000000..f6b3ae5d435 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/InputXpathModifierOrderVariable.java @@ -0,0 +1,4 @@ +package org.checkstyle.suppressionxpathfilter.modifierorder; +public class InputXpathModifierOrderVariable { + static private boolean var = false; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderAnnotation.java deleted file mode 100644 index 88b9ca8e8a4..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderAnnotation.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.modifierorder; - -public @InterfaceAnnotation @interface SuppressionXpathRegressionModifierOrderAnnotation { //warn - int foo(); -} - -@interface InterfaceAnnotation {} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderMethod.java deleted file mode 100644 index 074d67590c8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderMethod.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.modifierorder; - -public class SuppressionXpathRegressionModifierOrderMethod { - private @MethodAnnotation void foo() {} // warn -} - -@interface MethodAnnotation {} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderVariable.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderVariable.java deleted file mode 100644 index 54b5c6be4ff..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/modifierorder/SuppressionXpathRegressionModifierOrderVariable.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.modifierorder; -public class SuppressionXpathRegressionModifierOrderVariable { - static private boolean var = false; // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsAllowDuplicates.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsAllowDuplicates.java new file mode 100644 index 00000000000..59b5d599378 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsAllowDuplicates.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.multiplestringliterals; + +public class InputXpathMultipleStringLiteralsAllowDuplicates { + String a = "StringContents"; // ok + public void myTest() { + String a2 = "StringContents"; + String a3 = "DoubleString" + "DoubleString"; // ok + String a5 = ", " + ", " + ", "; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsDefault.java new file mode 100644 index 00000000000..84637f29d55 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsDefault.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.multiplestringliterals; + +public class InputXpathMultipleStringLiteralsDefault { + String a = "StringContents"; // warn + String a1 = "unchecked"; + + @SuppressWarnings("unchecked") // ok + public void myTest() { + String a2 = "StringContents"; + String a4 = "SingleString"; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsIgnoreOccurrenceContext.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsIgnoreOccurrenceContext.java new file mode 100644 index 00000000000..92335c4dc88 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsIgnoreOccurrenceContext.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.multiplestringliterals; + +public class InputXpathMultipleStringLiteralsIgnoreOccurrenceContext { + String a = "StringContents"; + String a1 = "unchecked"; // warn + + @SuppressWarnings("unchecked") + public void myTest() { + String a3 = "DoubleString"; // ok + String a5 = "unchecked"; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsIgnoreRegexp.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsIgnoreRegexp.java new file mode 100644 index 00000000000..8f3efbb657b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplestringliterals/InputXpathMultipleStringLiteralsIgnoreRegexp.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.multiplestringliterals; + +public class InputXpathMultipleStringLiteralsIgnoreRegexp { + + public void myTest() { + + String a3 = "DoubleString" + "DoubleString"; // warn + String a4 = "SingleString"; // ok + String a5 = ", " + ", " + ", "; // ok + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/InputXpathMultipleVariableDeclarations.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/InputXpathMultipleVariableDeclarations.java new file mode 100644 index 00000000000..96106d9c7ea --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/InputXpathMultipleVariableDeclarations.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.multiplevariabledeclarations; + +public class InputXpathMultipleVariableDeclarations { + int i1; int j1; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/InputXpathMultipleVariableDeclarationsCommaSeparator.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/InputXpathMultipleVariableDeclarationsCommaSeparator.java new file mode 100644 index 00000000000..844c8e07885 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/InputXpathMultipleVariableDeclarationsCommaSeparator.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.multiplevariabledeclarations; + +public class InputXpathMultipleVariableDeclarationsCommaSeparator { + int i, j; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/SuppressionXpathRegressionMultipleVariableDeclarationsOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/SuppressionXpathRegressionMultipleVariableDeclarationsOne.java deleted file mode 100644 index 47d4f34e090..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/SuppressionXpathRegressionMultipleVariableDeclarationsOne.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.multiplevariabledeclarations; - -public class SuppressionXpathRegressionMultipleVariableDeclarationsOne { - int i, j; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/SuppressionXpathRegressionMultipleVariableDeclarationsTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/SuppressionXpathRegressionMultipleVariableDeclarationsTwo.java deleted file mode 100644 index c0b83f3e330..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/multiplevariabledeclarations/SuppressionXpathRegressionMultipleVariableDeclarationsTwo.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.multiplevariabledeclarations; - -public class SuppressionXpathRegressionMultipleVariableDeclarationsTwo { - int i1; int j1; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesDo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesDo.java new file mode 100644 index 00000000000..fd1d577d5f4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesDo.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.needbraces; + +public class InputXpathNeedBracesDo { + /** @return helper func **/ + boolean condition() + { + return false; + } + + /** Test do/while loops **/ + public void test() { + // Invalid + do test(); while (condition()); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesEmptyLoopBody.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesEmptyLoopBody.java new file mode 100644 index 00000000000..92a1f319adf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesEmptyLoopBody.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.needbraces; + +public class InputXpathNeedBracesEmptyLoopBody { + private int incrementValue() { + return 1; + } + + public void test() { + while(incrementValue() < 5);; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesSingleLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesSingleLine.java new file mode 100644 index 00000000000..9b701198375 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesSingleLine.java @@ -0,0 +1,20 @@ +package org.checkstyle.suppressionxpathfilter.needbraces; + +import com.puppycrawl.tools.checkstyle.checks.blocks.needbraces.InputNeedBracesSingleLineStatements; + +public class InputXpathNeedBracesSingleLine { + private static class SomeClass { + boolean flag = true; + private static boolean test(boolean k) { + return k; + } + } + + /** Test do/while loops **/ + public int test() { + // Invalid + if (SomeClass.test(true) == true) // warn + return 4; + return 0; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesSingleLineLambda.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesSingleLineLambda.java new file mode 100644 index 00000000000..7707fdaa6d6 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/InputXpathNeedBracesSingleLineLambda.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.needbraces; + +public class InputXpathNeedBracesSingleLineLambda { + static Runnable r3 = () -> // warn + String.CASE_INSENSITIVE_ORDER.equals("Hello world two!"); +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesDo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesDo.java deleted file mode 100644 index c210f82cc86..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesDo.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.needbraces; - -public class SuppressionXpathRegressionNeedBracesDo { - /** @return helper func **/ - boolean condition() - { - return false; - } - - /** Test do/while loops **/ - public void test() { - // Invalid - do test(); while (condition()); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesEmptyLoopBody.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesEmptyLoopBody.java deleted file mode 100644 index 185130872fb..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesEmptyLoopBody.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.needbraces; - -public class SuppressionXpathRegressionNeedBracesEmptyLoopBody { - private int incrementValue() { - return 1; - } - - public void test() { - while(incrementValue() < 5);; // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesSingleLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesSingleLine.java deleted file mode 100644 index ae011c01eb7..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesSingleLine.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.needbraces; - -import com.puppycrawl.tools.checkstyle.checks.blocks.needbraces.InputNeedBracesSingleLineStatements; - -public class SuppressionXpathRegressionNeedBracesSingleLine { - private static class SomeClass { - boolean flag = true; - private static boolean test(boolean k) { - return k; - } - } - - /** Test do/while loops **/ - public int test() { - // Invalid - if (SomeClass.test(true) == true) // warn - return 4; - return 0; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesSingleLineLambda.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesSingleLineLambda.java deleted file mode 100644 index f81b3480f80..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/needbraces/SuppressionXpathRegressionNeedBracesSingleLineLambda.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.needbraces; - -public class SuppressionXpathRegressionNeedBracesSingleLineLambda { - static Runnable r3 = () -> // warn - String.CASE_INSENSITIVE_ORDER.equals("Hello world two!"); -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/InputXpathNestedForDepth.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/InputXpathNestedForDepth.java new file mode 100644 index 00000000000..3bfaae6b5e8 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/InputXpathNestedForDepth.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.nestedfordepth; + +public class InputXpathNestedForDepth { + public void test() { + for (int i = 0; i < 100; i++) { + for (int j = 0; j < 100; j++) { + for (int k = 0; k < 100; k++) { //warn + + } + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/InputXpathNestedForDepthMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/InputXpathNestedForDepthMax.java new file mode 100644 index 00000000000..728e48d0bb6 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/InputXpathNestedForDepthMax.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.nestedfordepth; + +public class InputXpathNestedForDepthMax { + public void test() { + for (int i1 = 0; i1 < 10; i1++) { + for (int i2 = 0; i2 < 10; i2++) { + for (int i3 = 0; i3 < 10; i3++) { + for (int i4 = 0; i4 < 10; i4++) { // warn + } + } + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/SuppressionXpathRegressionNestedForDepth.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/SuppressionXpathRegressionNestedForDepth.java deleted file mode 100644 index c26f2962d4b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/SuppressionXpathRegressionNestedForDepth.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nestedfordepth; - -public class SuppressionXpathRegressionNestedForDepth { - public void test() { - for (int i = 0; i < 100; i++) { - for (int j = 0; j < 100; j++) { - for (int k = 0; k < 100; k++) { //warn - - } - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/SuppressionXpathRegressionNestedForDepthMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/SuppressionXpathRegressionNestedForDepthMax.java deleted file mode 100644 index 9e67551a24f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedfordepth/SuppressionXpathRegressionNestedForDepthMax.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nestedfordepth; - -public class SuppressionXpathRegressionNestedForDepthMax { - public void test() { - for (int i1 = 0; i1 < 10; i1++) { - for (int i2 = 0; i2 < 10; i2++) { - for (int i3 = 0; i3 < 10; i3++) { - for (int i4 = 0; i4 < 10; i4++) { // warn - } - } - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/InputXpathNestedIfDepth.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/InputXpathNestedIfDepth.java new file mode 100644 index 00000000000..f5a7076e73c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/InputXpathNestedIfDepth.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.nestedifdepth; + +public class InputXpathNestedIfDepth { + public void test() { + int a = 1; + int b = 2; + int c = 3; + if (a > b) { + if (c > b) { + if (c > a) { //warn + + } + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/InputXpathNestedIfDepthMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/InputXpathNestedIfDepthMax.java new file mode 100644 index 00000000000..98dc6be6cb4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/InputXpathNestedIfDepthMax.java @@ -0,0 +1,20 @@ +package org.checkstyle.suppressionxpathfilter.nestedifdepth; + +public class InputXpathNestedIfDepthMax { + public void test() { + int a = 1; + int b = 2; + int c = 3; + if (a > b) { + if (c > b) { + if (c > a) { + if (1 == 2) { + if (2 == 3) { // warn + + } + } + } + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/SuppressionXpathRegressionNestedIfDepth.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/SuppressionXpathRegressionNestedIfDepth.java deleted file mode 100644 index 1f58b2981ae..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/SuppressionXpathRegressionNestedIfDepth.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nestedifdepth; - -public class SuppressionXpathRegressionNestedIfDepth { - public void test() { - int a = 1; - int b = 2; - int c = 3; - if (a > b) { - if (c > b) { - if (c > a) { //warn - - } - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/SuppressionXpathRegressionNestedIfDepthMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/SuppressionXpathRegressionNestedIfDepthMax.java deleted file mode 100644 index 6bdd7fb3dce..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedifdepth/SuppressionXpathRegressionNestedIfDepthMax.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nestedifdepth; - -public class SuppressionXpathRegressionNestedIfDepthMax { - public void test() { - int a = 1; - int b = 2; - int c = 3; - if (a > b) { - if (c > b) { - if (c > a) { - if (1 == 2) { - if (2 == 3) { // warn - - } - } - } - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/InputXpathNestedTryDepth.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/InputXpathNestedTryDepth.java new file mode 100644 index 00000000000..a12d1c4d8a2 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/InputXpathNestedTryDepth.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.nestedtrydepth; + +public class InputXpathNestedTryDepth { + public void test() { + try { + try { + try { //warn + + } catch (Exception e) {} + } catch (Exception e) {} + } catch (Exception e) {} + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/InputXpathNestedTryDepthMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/InputXpathNestedTryDepthMax.java new file mode 100644 index 00000000000..95a2f8cb2a2 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/InputXpathNestedTryDepthMax.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.nestedtrydepth; + +public class InputXpathNestedTryDepthMax { + public void test() { + try { + try { + try { + try { + try { // warn + + } catch (Exception e) {} + } catch (Exception e) {} + } catch (Exception e) {} + } catch (Exception e) {} + } catch (Exception e) {} + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/SuppressionXpathRegressionNestedTryDepth.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/SuppressionXpathRegressionNestedTryDepth.java deleted file mode 100644 index 6f97898c0ef..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/SuppressionXpathRegressionNestedTryDepth.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nestedtrydepth; - -public class SuppressionXpathRegressionNestedTryDepth { - public void test() { - try { - try { - try { //warn - - } catch (Exception e) {} - } catch (Exception e) {} - } catch (Exception e) {} - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/SuppressionXpathRegressionNestedTryDepthMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/SuppressionXpathRegressionNestedTryDepthMax.java deleted file mode 100644 index 693e8fa6257..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nestedtrydepth/SuppressionXpathRegressionNestedTryDepthMax.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nestedtrydepth; - -public class SuppressionXpathRegressionNestedTryDepthMax { - public void test() { - try { - try { - try { - try { - try { // warn - - } catch (Exception e) {} - } catch (Exception e) {} - } catch (Exception e) {} - } catch (Exception e) {} - } catch (Exception e) {} - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/InputXpathNoArrayTrailingCommaOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/InputXpathNoArrayTrailingCommaOne.java new file mode 100644 index 00000000000..eb9713038d1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/InputXpathNoArrayTrailingCommaOne.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.noarraytrailingcomma; + +public class InputXpathNoArrayTrailingCommaOne { + + int[] t1 = new int[] {1, 2, 3, 4, }; //warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/InputXpathNoArrayTrailingCommaTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/InputXpathNoArrayTrailingCommaTwo.java new file mode 100644 index 00000000000..d1e635ca4d8 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/InputXpathNoArrayTrailingCommaTwo.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.noarraytrailingcomma; + +public class InputXpathNoArrayTrailingCommaTwo { + int[] t4 = new int[] {1,}; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/SuppressionXpathRegressionNoArrayTrailingCommaOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/SuppressionXpathRegressionNoArrayTrailingCommaOne.java deleted file mode 100644 index 3f6f7baa40c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/SuppressionXpathRegressionNoArrayTrailingCommaOne.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.noarraytrailingcomma; - -public class SuppressionXpathRegressionNoArrayTrailingCommaOne { - - int[] t1 = new int[] {1, 2, 3, 4, }; //warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/SuppressionXpathRegressionNoArrayTrailingCommaTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/SuppressionXpathRegressionNoArrayTrailingCommaTwo.java deleted file mode 100644 index 5635678bfb3..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/noarraytrailingcomma/SuppressionXpathRegressionNoArrayTrailingCommaTwo.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.noarraytrailingcomma; - -public class SuppressionXpathRegressionNoArrayTrailingCommaTwo { - int[] t4 = new int[] {1,}; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/InputXpathNoCloneInnerClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/InputXpathNoCloneInnerClass.java new file mode 100644 index 00000000000..13271f94854 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/InputXpathNoCloneInnerClass.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.noclone; + +public class InputXpathNoCloneInnerClass { + + class InnerClass { + public Object clone() { return null; } // warn + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/InputXpathNoCloneMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/InputXpathNoCloneMethod.java new file mode 100644 index 00000000000..b88c530eed1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/InputXpathNoCloneMethod.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.noclone; + +public class InputXpathNoCloneMethod { + + public Object clone() { return null; } // warn + + public T clone(T t) { return null; } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/SuppressionXpathRegressionNoCloneOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/SuppressionXpathRegressionNoCloneOne.java deleted file mode 100644 index 4b6a363cd60..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/SuppressionXpathRegressionNoCloneOne.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.noclone; - -public class SuppressionXpathRegressionNoCloneOne { - - public Object clone() { return null; } // warn - - public T clone(T t) { return null; } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/SuppressionXpathRegressionNoCloneTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/SuppressionXpathRegressionNoCloneTwo.java deleted file mode 100644 index 3fe3d1a445b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/noclone/SuppressionXpathRegressionNoCloneTwo.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.noclone; - -public class SuppressionXpathRegressionNoCloneTwo { - - class InnerClass { - public Object clone() { return null; } // warn - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/InputXpathNoEnumTrailingCommaOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/InputXpathNoEnumTrailingCommaOne.java new file mode 100644 index 00000000000..b81f8648f73 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/InputXpathNoEnumTrailingCommaOne.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.noenumtrailingcomma; + +public class InputXpathNoEnumTrailingCommaOne { + + enum Foo3 { + FOO, + BAR, //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/InputXpathNoEnumTrailingCommaTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/InputXpathNoEnumTrailingCommaTwo.java new file mode 100644 index 00000000000..2600db9db5f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/InputXpathNoEnumTrailingCommaTwo.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.noenumtrailingcomma; + +public class InputXpathNoEnumTrailingCommaTwo { + + enum Foo6 { FOO, BAR,; } //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/SuppressionXpathRegressionNoEnumTrailingCommaOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/SuppressionXpathRegressionNoEnumTrailingCommaOne.java deleted file mode 100644 index 349e2069176..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/SuppressionXpathRegressionNoEnumTrailingCommaOne.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.noenumtrailingcomma; - -public class SuppressionXpathRegressionNoEnumTrailingCommaOne { - - enum Foo3 { - FOO, - BAR, //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/SuppressionXpathRegressionNoEnumTrailingCommaTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/SuppressionXpathRegressionNoEnumTrailingCommaTwo.java deleted file mode 100644 index 2733921418b..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/noenumtrailingcomma/SuppressionXpathRegressionNoEnumTrailingCommaTwo.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.noenumtrailingcomma; - -public class SuppressionXpathRegressionNoEnumTrailingCommaTwo { - - enum Foo6 { FOO, BAR,; } //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/InputXpathNoFinalizerInner.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/InputXpathNoFinalizerInner.java new file mode 100644 index 00000000000..40a4d575686 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/InputXpathNoFinalizerInner.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.nofinalizer; + +public class InputXpathNoFinalizerInner { + public static void doStuff() { + // some code here + } + + class InnerClass { + + @Override // warn + @Deprecated + protected void finalize() throws Throwable { + + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/InputXpathNoFinalizerMain.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/InputXpathNoFinalizerMain.java new file mode 100644 index 00000000000..617d3c04f72 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/InputXpathNoFinalizerMain.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.nofinalizer; + +public class InputXpathNoFinalizerMain { + public static void main(String[] args) { + // some code here + } + + protected void finalize() throws Throwable { // warn + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/SuppressionXpathRegressionNoFinalizer1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/SuppressionXpathRegressionNoFinalizer1.java deleted file mode 100644 index fb137c2c600..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/SuppressionXpathRegressionNoFinalizer1.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nofinalizer; - -public class SuppressionXpathRegressionNoFinalizer1 { - public static void main(String[] args) { - // some code here - } - - protected void finalize() throws Throwable { // warn - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/SuppressionXpathRegressionNoFinalizer2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/SuppressionXpathRegressionNoFinalizer2.java deleted file mode 100644 index c4deb695894..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nofinalizer/SuppressionXpathRegressionNoFinalizer2.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nofinalizer; - -public class SuppressionXpathRegressionNoFinalizer2 { - public static void doStuff() { - // some code here - } - - class InnerClass { - - @Override // warn - @Deprecated - protected void finalize() throws Throwable { - - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapDefault.java new file mode 100644 index 00000000000..c6a3031ec30 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapDefault.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter // warn + .nolinewrap; + +public class InputXpathNoLineWrapDefault { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapTokensCtorDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapTokensCtorDef.java new file mode 100644 index 00000000000..59d554554eb --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapTokensCtorDef.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.nolinewrap; + +public class InputXpathNoLineWrapTokensCtorDef { + InputXpathNoLineWrapTokensCtorDef //warn + (String input1, String input2) { + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapTokensMethodDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapTokensMethodDef.java new file mode 100644 index 00000000000..e1d608419a3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/InputXpathNoLineWrapTokensMethodDef.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.nolinewrap; + +public class InputXpathNoLineWrapTokensMethodDef { + public static // warn + void test2() { + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap1.java deleted file mode 100644 index bb9cefce7a7..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap1.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter // warn - .nolinewrap; - -public class SuppressionXpathRegressionNoLineWrap1 { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap2.java deleted file mode 100644 index 2595020ab6e..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap2.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nolinewrap; - -public class SuppressionXpathRegressionNoLineWrap2 { - public static // warn - void test2() { - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap3.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap3.java deleted file mode 100644 index 986d6d952e4..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nolinewrap/SuppressionXpathRegressionNoLineWrap3.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nolinewrap; - -public class SuppressionXpathRegressionNoLineWrap3 { - SuppressionXpathRegressionNoLineWrap3 //warn - (String input1, String input2) { - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfter.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfter.java new file mode 100644 index 00000000000..7f9c9cef157 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfter.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespaceafter; + +public class InputXpathNoWhitespaceAfter { + int bad = - 1;//warn + int good = -1; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfterLineBreaks.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfterLineBreaks.java new file mode 100644 index 00000000000..2ca6cd75568 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfterLineBreaks.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespaceafter; + +public class InputXpathNoWhitespaceAfterLineBreaks { + public void test() { + java.lang + . String s = "Test"; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfterTokens.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfterTokens.java new file mode 100644 index 00000000000..d1f4d27d228 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/InputXpathNoWhitespaceAfterTokens.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespaceafter; + +public class InputXpathNoWhitespaceAfterTokens { + public java. lang.String test() { // warn + return ""; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfter.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfter.java deleted file mode 100644 index 141773369f8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfter.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespaceafter; - -public class SuppressionXpathRegressionNoWhitespaceAfter { - int bad = - 1;//warn - int good = -1; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfterLineBreaks.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfterLineBreaks.java deleted file mode 100644 index 2067e5d0635..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfterLineBreaks.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespaceafter; - -public class SuppressionXpathRegressionNoWhitespaceAfterLineBreaks { - public void test() { - java.lang - . String s = "Test"; // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfterTokens.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfterTokens.java deleted file mode 100644 index 028dc7e4154..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespaceafter/SuppressionXpathRegressionNoWhitespaceAfterTokens.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespaceafter; - -public class SuppressionXpathRegressionNoWhitespaceAfterTokens { - public java. lang.String test() { // warn - return ""; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBefore.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBefore.java new file mode 100644 index 00000000000..62dd223c6a0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBefore.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespacebefore; + +public class InputXpathNoWhitespaceBefore { + int bad ;//warn + int good; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBeforeLineBreaks.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBeforeLineBreaks.java new file mode 100644 index 00000000000..d48b0db5d73 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBeforeLineBreaks.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespacebefore; + +public class InputXpathNoWhitespaceBeforeLineBreaks { + public void test() { + int[][] array = { { 1, 2 } + , { 3, 4 } }; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBeforeTokens.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBeforeTokens.java new file mode 100644 index 00000000000..5ec7cca9a8c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/InputXpathNoWhitespaceBeforeTokens.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespacebefore; + +public class InputXpathNoWhitespaceBeforeTokens { + public java .lang.String test() { // warn + return ""; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBefore.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBefore.java deleted file mode 100644 index ebeceb659df..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBefore.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespacebefore; - -public class SuppressionXpathRegressionNoWhitespaceBefore { - int bad ;//warn - int good; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBeforeLineBreaks.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBeforeLineBreaks.java deleted file mode 100644 index f4134b2d3f5..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBeforeLineBreaks.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespacebefore; - -public class SuppressionXpathRegressionNoWhitespaceBeforeLineBreaks { - public void test() { - int[][] array = { { 1, 2 } - , { 3, 4 } }; // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBeforeTokens.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBeforeTokens.java deleted file mode 100644 index bc3a2c79796..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebefore/SuppressionXpathRegressionNoWhitespaceBeforeTokens.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespacebefore; - -public class SuppressionXpathRegressionNoWhitespaceBeforeTokens { - public java .lang.String test() { // warn - return ""; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonFour.java new file mode 100644 index 00000000000..e38b14a5571 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonFour.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespacebeforecasedefaultcolon; + +public class InputXpathNoWhitespaceBeforeCaseDefaultColonFour { + { + switch(1) { + case 1: + break; + case 2: + break; + default + : // warn + break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonOne.java new file mode 100644 index 00000000000..2657856d2fc --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonOne.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespacebeforecasedefaultcolon; + +public class InputXpathNoWhitespaceBeforeCaseDefaultColonOne { + { + switch(1) { + case 1 : // warn + break; + case 2: + break; + default: + break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonThree.java new file mode 100644 index 00000000000..e4d9c877655 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonThree.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespacebeforecasedefaultcolon; + +public class InputXpathNoWhitespaceBeforeCaseDefaultColonThree { + { + switch(1) { + case 1 + : // warn + break; + case 2: + break; + default: + break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonTwo.java new file mode 100644 index 00000000000..e14bc60b92a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/InputXpathNoWhitespaceBeforeCaseDefaultColonTwo.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.nowhitespacebeforecasedefaultcolon; + +public class InputXpathNoWhitespaceBeforeCaseDefaultColonTwo { + { + switch(1) { + case 1: + break; + case 2: + break; + default : // warn + break; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonFour.java deleted file mode 100644 index 3ba4b0d5412..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonFour.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespacebeforecasedefaultcolon; - -public class SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonFour { - { - switch(1) { - case 1: - break; - case 2: - break; - default - : // warn - break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonOne.java deleted file mode 100644 index 24c82569eb9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonOne.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespacebeforecasedefaultcolon; - -public class SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonOne { - { - switch(1) { - case 1 : // warn - break; - case 2: - break; - default: - break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonThree.java deleted file mode 100644 index b0c3287d227..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonThree.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespacebeforecasedefaultcolon; - -public class SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonThree { - { - switch(1) { - case 1 - : // warn - break; - case 2: - break; - default: - break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonTwo.java deleted file mode 100644 index 8561a7c132a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/nowhitespacebeforecasedefaultcolon/SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonTwo.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.nowhitespacebeforecasedefaultcolon; - -public class SuppressionXpathRegressionNoWhitespaceBeforeCaseDefaultColonTwo { - { - switch(1) { - case 1: - break; - case 2: - break; - default : // warn - break; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/InputXpathNPathComplexityMethod.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/InputXpathNPathComplexityMethod.java new file mode 100644 index 00000000000..a6c6179b127 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/InputXpathNPathComplexityMethod.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.npathcomplexity; + +public class InputXpathNPathComplexityMethod { + public void test() { //warn + while (true) { + if (1 > 0) { + + } else { + + } + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/InputXpathNPathComplexityStaticBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/InputXpathNPathComplexityStaticBlock.java new file mode 100644 index 00000000000..a104b95c63b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/InputXpathNPathComplexityStaticBlock.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.npathcomplexity; + +public class InputXpathNPathComplexityStaticBlock { + static { //warn + int i = 1; + // NP = (if-range=1) + (else-range=2) + 0 = 3 + if (System.currentTimeMillis() == 0) { + // NP(else-range) = (if-range=1) + (else-range=1) + (expr=0) = 2 + } else if (System.currentTimeMillis() == 0) { + } else { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/SuppressionXpathRegressionNPathComplexityOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/SuppressionXpathRegressionNPathComplexityOne.java deleted file mode 100644 index b03267b6a65..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/SuppressionXpathRegressionNPathComplexityOne.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.npathcomplexity; - -public class SuppressionXpathRegressionNPathComplexityOne { - public void test() { //warn - while (true) { - if (1 > 0) { - - } else { - - } - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/SuppressionXpathRegressionNPathComplexityTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/SuppressionXpathRegressionNPathComplexityTwo.java deleted file mode 100644 index 00cbcc8f587..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/npathcomplexity/SuppressionXpathRegressionNPathComplexityTwo.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.npathcomplexity; - -public class SuppressionXpathRegressionNPathComplexityTwo { - static { //warn - int i = 1; - // NP = (if-range=1) + (else-range=2) + 0 = 3 - if (System.currentTimeMillis() == 0) { - // NP(else-range) = (if-range=1) + (else-range=1) + (expr=0) = 2 - } else if (System.currentTimeMillis() == 0) { - } else { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/InputXpathOneStatementPerLineClassFields.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/InputXpathOneStatementPerLineClassFields.java new file mode 100644 index 00000000000..c41fa31a92c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/InputXpathOneStatementPerLineClassFields.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.onestatementperline; + +public class InputXpathOneStatementPerLineClassFields { + int i; int j; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/InputXpathOneStatementPerLineForLoopBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/InputXpathOneStatementPerLineForLoopBlock.java new file mode 100644 index 00000000000..f9231a04b62 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/InputXpathOneStatementPerLineForLoopBlock.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.onestatementperline; + +public class InputXpathOneStatementPerLineForLoopBlock { + private void foo5(int var1, int var2) { + for(int n = 0, + k = 1 + ; n<5 + ; + n++, k--) { var1++; var2++; } //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/SuppressionXpathRegressionOneStatementPerLineOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/SuppressionXpathRegressionOneStatementPerLineOne.java deleted file mode 100644 index 60c5e687ffb..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/SuppressionXpathRegressionOneStatementPerLineOne.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.onestatementperline; - -public class SuppressionXpathRegressionOneStatementPerLineOne { - int i; int j; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/SuppressionXpathRegressionOneStatementPerLineTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/SuppressionXpathRegressionOneStatementPerLineTwo.java deleted file mode 100644 index 33b09a0156a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/onestatementperline/SuppressionXpathRegressionOneStatementPerLineTwo.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.onestatementperline; - -public class SuppressionXpathRegressionOneStatementPerLineTwo { - private void foo5(int var1, int var2) { - for(int n = 0, - k = 1 - ; n<5 - ; - n++, k--) { var1++; var2++; } //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/InputXpathOneTopLevelClassFirst.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/InputXpathOneTopLevelClassFirst.java new file mode 100644 index 00000000000..70e67a3b01a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/InputXpathOneTopLevelClassFirst.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.onetoplevelclass; + +public class InputXpathOneTopLevelClassFirst { + // methods +} + +class ViolatingSecondClass { //warn + // methods +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/InputXpathOneTopLevelClassSecond.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/InputXpathOneTopLevelClassSecond.java new file mode 100644 index 00000000000..456a4374283 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/InputXpathOneTopLevelClassSecond.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.onetoplevelclass; + +public class InputXpathOneTopLevelClassSecond { + // methods +} + +enum ViolationClass { // warn + // methods +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/SuppressionXpathRegressionOneTopLevelClassFirst.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/SuppressionXpathRegressionOneTopLevelClassFirst.java deleted file mode 100644 index 7165ca9f7d9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/SuppressionXpathRegressionOneTopLevelClassFirst.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.onetoplevelclass; - -public class SuppressionXpathRegressionOneTopLevelClassFirst { - // methods -} - -class ViolatingSecondClass { //warn - // methods -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/SuppressionXpathRegressionOneTopLevelClassSecond.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/SuppressionXpathRegressionOneTopLevelClassSecond.java deleted file mode 100644 index 4c304fe7d45..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/onetoplevelclass/SuppressionXpathRegressionOneTopLevelClassSecond.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.onetoplevelclass; - -public class SuppressionXpathRegressionOneTopLevelClassSecond { - // methods -} - -enum ViolationClass { // warn - // methods -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/InputXpathOperatorWrapNewLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/InputXpathOperatorWrapNewLine.java new file mode 100644 index 00000000000..81a58400df5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/InputXpathOperatorWrapNewLine.java @@ -0,0 +1,27 @@ +package org.checkstyle.suppressionxpathfilter.operatorwrap; + +public class InputXpathOperatorWrapNewLine { + + void test() { + int x = 1 + // warn + 2 + - + 3 + - + 4; + x = x + 2; + + } + + void test2() { + int x = 1 + + + 2 + - + 3 + - + 4; + x = x + 2; + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/InputXpathOperatorWrapPreviousLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/InputXpathOperatorWrapPreviousLine.java new file mode 100644 index 00000000000..495fda44ae4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/InputXpathOperatorWrapPreviousLine.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.operatorwrap; + +public class InputXpathOperatorWrapPreviousLine { + int b + = 10; // warn + int c = + 10; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/SuppressionXpathRegressionOperatorWrapNewLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/SuppressionXpathRegressionOperatorWrapNewLine.java deleted file mode 100644 index cf2114921c9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/SuppressionXpathRegressionOperatorWrapNewLine.java +++ /dev/null @@ -1,27 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.operatorwrap; - -public class SuppressionXpathRegressionOperatorWrapNewLine { - - void test() { - int x = 1 + // warn - 2 - - - 3 - - - 4; - x = x + 2; - - } - - void test2() { - int x = 1 - + - 2 - - - 3 - - - 4; - x = x + 2; - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/SuppressionXpathRegressionOperatorWrapPreviousLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/SuppressionXpathRegressionOperatorWrapPreviousLine.java deleted file mode 100644 index a00623cf2b6..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/operatorwrap/SuppressionXpathRegressionOperatorWrapPreviousLine.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.operatorwrap; - -public class SuppressionXpathRegressionOperatorWrapPreviousLine { - int b - = 10; // warn - int c = - 10; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypefilename/SuppressionXpathRegressionOuterTypeFilename1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypefilename/InputXpathOuterTypeFilenameOne.java similarity index 100% rename from src/it/resources/org/checkstyle/suppressionxpathfilter/outertypefilename/SuppressionXpathRegressionOuterTypeFilename1.java rename to src/it/resources/org/checkstyle/suppressionxpathfilter/outertypefilename/InputXpathOuterTypeFilenameOne.java diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypefilename/SuppressionXpathRegressionOuterTypeFilename2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypefilename/InputXpathOuterTypeFilenameTwo.java similarity index 100% rename from src/it/resources/org/checkstyle/suppressionxpathfilter/outertypefilename/SuppressionXpathRegressionOuterTypeFilename2.java rename to src/it/resources/org/checkstyle/suppressionxpathfilter/outertypefilename/InputXpathOuterTypeFilenameTwo.java diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/InputXpathOuterTypeNumber.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/InputXpathOuterTypeNumber.java new file mode 100644 index 00000000000..101251efb09 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/InputXpathOuterTypeNumber.java @@ -0,0 +1,30 @@ +package org.checkstyle.suppressionxpathfilter.outertypenumber; //warn + +public class InputXpathOuterTypeNumber { + int i; int j; +} +class InputOuterTypeNumberSimple2 +{ + /** Some more Javadoc. */ + public void doSomething() + { + //"O" should be named "o" + for (Object O : new java.util.ArrayList()) + { + + } + } +} + +/** Test enum for member naming check */ +enum MyEnum1 +{ + /** ABC constant */ + ABC, + + /** XYZ constant */ + XYZ; + + /** Should be mSomeMember */ + private int someMember; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/InputXpathOuterTypeNumberDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/InputXpathOuterTypeNumberDefault.java new file mode 100644 index 00000000000..06d85533fcf --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/InputXpathOuterTypeNumberDefault.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.outertypenumber; // warn + +public class InputXpathOuterTypeNumberDefault { + public void test() {} +} + +interface Constants { + int X = 10; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/SuppressionXpathRegressionOuterTypeNumber.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/SuppressionXpathRegressionOuterTypeNumber.java deleted file mode 100644 index 167f05aa701..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/SuppressionXpathRegressionOuterTypeNumber.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.outertypenumber; //warn - -public class SuppressionXpathRegressionOuterTypeNumber { - int i; int j; -} -class InputOuterTypeNumberSimple2 -{ - /** Some more Javadoc. */ - public void doSomething() - { - //"O" should be named "o" - for (Object O : new java.util.ArrayList()) - { - - } - } -} - -/** Test enum for member naming check */ -enum MyEnum1 -{ - /** ABC constant */ - ABC, - - /** XYZ constant */ - XYZ; - - /** Should be mSomeMember */ - private int someMember; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/SuppressionXpathRegressionOuterTypeNumberDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/SuppressionXpathRegressionOuterTypeNumberDefault.java deleted file mode 100644 index 13ec9062daa..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/outertypenumber/SuppressionXpathRegressionOuterTypeNumberDefault.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.outertypenumber; // warn - -public class SuppressionXpathRegressionOuterTypeNumberDefault { - public void test() {} -} - -interface Constants { - int X = 10; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/InputXpathOverloadMethodsDeclarationOrderAnonymous.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/InputXpathOverloadMethodsDeclarationOrderAnonymous.java new file mode 100644 index 00000000000..9025224f211 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/InputXpathOverloadMethodsDeclarationOrderAnonymous.java @@ -0,0 +1,34 @@ +package org.checkstyle.suppressionxpathfilter.overloadmethodsdeclarationorder; + +public class InputXpathOverloadMethodsDeclarationOrderAnonymous { + private InputXpathOverloadMethodsDeclarationOrderAnonymous anonymous + = new MyInputXpathOverloadMethodsDeclarationOrderAnonymous(); + + public InputXpathOverloadMethodsDeclarationOrderAnonymous getAnonymous() { + return anonymous; + } + + public void setAnonymous(InputXpathOverloadMethodsDeclarationOrderAnonymous anonymous) { + this.anonymous = anonymous; + } + + private static class MyInputXpathOverloadMethodsDeclarationOrderAnonymous + extends InputXpathOverloadMethodsDeclarationOrderAnonymous { + public void overloadMethod(int i) { + //do stuff + } + + public void overloadMethod(String s) { + //do more stuff + } + + public void separatorMethod() { + //do other stuff + } + + //violation because overloads shouldn't be separated + public void overloadMethod(String s, Boolean b, int i) { //warn + //do stuff + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/InputXpathOverloadMethodsDeclarationOrderDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/InputXpathOverloadMethodsDeclarationOrderDefault.java new file mode 100644 index 00000000000..2884ebff7f5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/InputXpathOverloadMethodsDeclarationOrderDefault.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.overloadmethodsdeclarationorder; + +public class InputXpathOverloadMethodsDeclarationOrderDefault { + + public void overloadMethod(String s) { + //do stuff + } + + public void separatorMethod() { + //do stuff + } + + //violation because overloads shouldn't be separated + public void overloadMethod(String s, Boolean b, int i) { //warn + //do stuff + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/SuppressionXpathRegressionOverloadMethodsDeclarationOrder1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/SuppressionXpathRegressionOverloadMethodsDeclarationOrder1.java deleted file mode 100644 index 84091a090cc..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/SuppressionXpathRegressionOverloadMethodsDeclarationOrder1.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.overloadmethodsdeclarationorder; - -public class SuppressionXpathRegressionOverloadMethodsDeclarationOrder1 { - - public void overloadMethod(String s) { - //do stuff - } - - public void separatorMethod() { - //do stuff - } - - //violation because overloads shouldn't be separated - public void overloadMethod(String s, Boolean b, int i) { //warn - //do stuff - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/SuppressionXpathRegressionOverloadMethodsDeclarationOrder2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/SuppressionXpathRegressionOverloadMethodsDeclarationOrder2.java deleted file mode 100644 index 1ec1212cc55..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/overloadmethodsdeclarationorder/SuppressionXpathRegressionOverloadMethodsDeclarationOrder2.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.overloadmethodsdeclarationorder; - -public class SuppressionXpathRegressionOverloadMethodsDeclarationOrder2 { - private SuppressionXpathRegressionOverloadMethodsDeclarationOrder2 anonymous - = new MySuppressionXpathRegressionOverloadMethodsDeclarationOrder2(); - - public SuppressionXpathRegressionOverloadMethodsDeclarationOrder2 getAnonymous() { - return anonymous; - } - - public void setAnonymous(SuppressionXpathRegressionOverloadMethodsDeclarationOrder2 anonymous) { - this.anonymous = anonymous; - } - - private static class MySuppressionXpathRegressionOverloadMethodsDeclarationOrder2 - extends SuppressionXpathRegressionOverloadMethodsDeclarationOrder2 { - public void overloadMethod(int i) { - //do stuff - } - - public void overloadMethod(String s) { - //do more stuff - } - - public void separatorMethod() { - //do other stuff - } - - //violation because overloads shouldn't be separated - public void overloadMethod(String s, Boolean b, int i) { //warn - //do stuff - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameOne.java new file mode 100644 index 00000000000..832d8899737 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameOne.java @@ -0,0 +1,4 @@ +package org.checkstyle.suppressionxpathfilter.packagename; // warn + +public class InputXpathPackageNameOne { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameTwo.java new file mode 100644 index 00000000000..22bf8aa0a12 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/packagename/InputXpathPackageNameTwo.java @@ -0,0 +1,7 @@ +/* test comment */ package + org.checkstyle. // warn + suppressionxpathfilter. + packagename; + +public interface InputXpathPackageNameTwo { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentCtor.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentCtor.java new file mode 100644 index 00000000000..7e22c64126b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentCtor.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.parameterassignment; + +public class InputXpathParameterAssignmentCtor { + int field; + InputXpathParameterAssignmentCtor(int field) { + int i = field; + this.field = field; + i++; + field += 1; // warn + this.field++; + } + // without parameters + InputXpathParameterAssignmentCtor() { + field = 0; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentLambdas.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentLambdas.java new file mode 100644 index 00000000000..16c84804a7e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentLambdas.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.parameterassignment; + +public class InputXpathParameterAssignmentLambdas { + + public interface SomeInterface { + void method(int a); + } + + SomeInterface obj1 = q -> q++; // warn + void method() { + int q = 12; + SomeInterface obj = (d) -> { + SomeInterface b = (c) -> obj1.equals(this); // ok + int c = 12; + c++; + }; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentMethods.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentMethods.java new file mode 100644 index 00000000000..ef9132890ca --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameterassignment/InputXpathParameterAssignmentMethods.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.parameterassignment; + +public class InputXpathParameterAssignmentMethods { + int field; + void Test1(int field) { + int i = field; + this.field = field; + i++; + field += 1; // warn + this.field++; + } + // without parameters + void Test2() { + field = 0; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameAccessModifier.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameAccessModifier.java new file mode 100644 index 00000000000..db8191c9b5e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameAccessModifier.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.parametername; + +class InputXpathParameterNameAccessModifier { + + private void method1(int a) { // ok + } + + public void method2(int b) { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameDefaultPattern.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameDefaultPattern.java new file mode 100644 index 00000000000..a992146e5ed --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameDefaultPattern.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.parametername; + +class InputXpathParameterNameDefaultPattern { + + void method1(int v_1) { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameDifferentPattern.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameDifferentPattern.java new file mode 100644 index 00000000000..d53bb33a709 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameDifferentPattern.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.parametername; + +class InputXpathParameterNameDifferentPattern { + + void method2(int V2) { // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameIgnoreOverridden.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameIgnoreOverridden.java new file mode 100644 index 00000000000..9615a078850 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/InputXpathParameterNameIgnoreOverridden.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.parametername; + +class InputXpathParameterNameIgnoreOverridden { + + void method2(int V2) { // warn + } + + @Override + public boolean equals(Object V3) { // ok + return true; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameAccessModifier.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameAccessModifier.java deleted file mode 100644 index 73e3ae929fa..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameAccessModifier.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.parametername; - -class SuppressionXpathRegressionParameterNameAccessModifier { - - private void method1(int a) { // ok - } - - public void method2(int b) { // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameDefaultPattern.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameDefaultPattern.java deleted file mode 100644 index b4a3d4b3245..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameDefaultPattern.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.parametername; - -class SuppressionXpathRegressionParameterNameDefaultPattern { - - void method1(int v_1) { // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameDifferentPattern.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameDifferentPattern.java deleted file mode 100644 index 4e798765568..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameDifferentPattern.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.parametername; - -class SuppressionXpathRegressionParameterNameDifferentPattern { - - void method2(int V2) { // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameIgnoreOverridden.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameIgnoreOverridden.java deleted file mode 100644 index b8f3af489b8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/parametername/SuppressionXpathRegressionParameterNameIgnoreOverridden.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.parametername; - -class SuppressionXpathRegressionParameterNameIgnoreOverridden { - - void method2(int V2) { // warn - } - - @Override - public boolean equals(Object V3) { // ok - return true; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberDefault.java new file mode 100644 index 00000000000..94f790ce682 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberDefault.java @@ -0,0 +1,15 @@ +package org.checkstyle.suppressionxpathfilter.parameternumber; + +public class InputXpathParameterNumberDefault { + + void myMethod(int a, int b, int c, int d, int e, int f, int g, int h, // warn + int i, int j, int k) { + } + + public InputXpathParameterNumberDefault() { // ok + } + + void myMethod2(int a, int b, int c, int d) { // ok + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberIgnoreAnnotatedBy.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberIgnoreAnnotatedBy.java new file mode 100644 index 00000000000..b1a43262c49 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberIgnoreAnnotatedBy.java @@ -0,0 +1,26 @@ +package org.checkstyle.suppressionxpathfilter.parameternumber; + +public class InputXpathParameterNumberIgnoreAnnotatedBy { + static class InnerClass { + static { + new Object() { + void method() { + if (true) { + new Object() { + @MyAnno + void ignoredMethod(int a, @MyAnno int b, int c) { + + } + + void checkedMethod(int a, @MyAnno int b, int c) { // warn + + } + }; + } + } + }; + } + } + + @interface MyAnno {} +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberIgnoreOverriddenMethods.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberIgnoreOverriddenMethods.java new file mode 100644 index 00000000000..dc88724641c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberIgnoreOverriddenMethods.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.parameternumber; + +public class InputXpathParameterNumberIgnoreOverriddenMethods + extends InputXpathParameterNumberDefault { + + public InputXpathParameterNumberIgnoreOverriddenMethods(int a, // warn + int b, int c, int d, int e, int f, int g, int h) + { + } + @Override + void myMethod(int a, int b, int c, int d, int e, int f, int g, int h, // ok + int k, int l, int m) { + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberMethods.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberMethods.java new file mode 100644 index 00000000000..b24fe82a7a7 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parameternumber/InputXpathParameterNumberMethods.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.parameternumber; + +public class InputXpathParameterNumberMethods + extends InputXpathParameterNumberDefault { + + @Override + void myMethod(int a, int b, int c, int d, int e, int f, int g, int h, // warn + int k, int l, int m) { + } + public InputXpathParameterNumberMethods(int a, int b, int c, // ok + int d, int e, int f, int g, int h, int k, int l, int m) + { + } + void myMethod3(int a, int b, int c, int d, int e, int f, int g, int h) { // ok + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadLeftFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadLeftFollowed.java new file mode 100644 index 00000000000..4c8d3478ea4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadLeftFollowed.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.parenpad; + +public class InputXpathParenPadLeftFollowed { + void method() { + if ( false) {//warn + } + if (true) { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadLeftNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadLeftNotFollowed.java new file mode 100644 index 00000000000..93a41818131 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadLeftNotFollowed.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.parenpad; + +public class InputXpathParenPadLeftNotFollowed { + void method() { + if (false ) {//warn + } + if ( true ) { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadRightNotPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadRightNotPreceded.java new file mode 100644 index 00000000000..05a881927e0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadRightNotPreceded.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.parenpad; + +public class InputXpathParenPadRightNotPreceded{ + void method() { + if ( false) {//warn + } + if ( true ) { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadRightPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadRightPreceded.java new file mode 100644 index 00000000000..170fa6a93d0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/InputXpathParenPadRightPreceded.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.parenpad; + +public class InputXpathParenPadRightPreceded { + void method() { + if (false ) {//warn + } + if (true) { + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadLeftFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadLeftFollowed.java deleted file mode 100644 index 29d6a7fd958..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadLeftFollowed.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.parenpad; - -public class SuppressionXpathRegressionParenPadLeftFollowed { - void method() { - if ( false) {//warn - } - if (true) { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadLeftNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadLeftNotFollowed.java deleted file mode 100644 index 131d08e9803..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadLeftNotFollowed.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.parenpad; - -public class SuppressionXpathRegressionParenPadLeftNotFollowed { - void method() { - if (false ) {//warn - } - if ( true ) { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadRightNotPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadRightNotPreceded.java deleted file mode 100644 index 30ac92875da..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadRightNotPreceded.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.parenpad; - -public class SuppressionXpathRegressionParenPadRightNotPreceded{ - void method() { - if ( false) {//warn - } - if ( true ) { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadRightPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadRightPreceded.java deleted file mode 100644 index 9d3a6ac5b93..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/parenpad/SuppressionXpathRegressionParenPadRightPreceded.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.parenpad; - -public class SuppressionXpathRegressionParenPadRightPreceded { - void method() { - if (false ) {//warn - } - if (true) { - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportDuplicate.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportDuplicate.java new file mode 100644 index 00000000000..9ef530bb56d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportDuplicate.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.redundantimport; + +import java.util.Scanner; +import java.util.Scanner; // warn + +public class InputXpathRedundantImportDuplicate { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportInternal.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportInternal.java new file mode 100644 index 00000000000..c65d4989e6a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportInternal.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.redundantimport; + +import org.checkstyle.suppressionxpathfilter.redundantimport.InputXpathRedundantImportInternal; // warn + +public class InputXpathRedundantImportInternal { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportLibrary.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportLibrary.java new file mode 100644 index 00000000000..0f614ca137c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/InputXpathRedundantImportLibrary.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.redundantimport; + +import java.lang.String; // warn + +public class InputXpathRedundantImportLibrary { +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport1.java deleted file mode 100644 index 93be31e0b69..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport1.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.redundantimport; - -import org.checkstyle.suppressionxpathfilter.redundantimport.SuppressionXpathRegressionRedundantImport1; // warn - -public class SuppressionXpathRegressionRedundantImport1 { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport2.java deleted file mode 100644 index 9f5d2b69629..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport2.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.redundantimport; - -import java.lang.String; // warn - -public class SuppressionXpathRegressionRedundantImport2 { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport3.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport3.java deleted file mode 100644 index 6438f4286b2..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/redundantimport/SuppressionXpathRegressionRedundantImport3.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.redundantimport; - -import java.util.Scanner; -import java.util.Scanner; // warn - -public class SuppressionXpathRegressionRedundantImport3 { -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/InputXpathRequireThisOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/InputXpathRequireThisOne.java new file mode 100644 index 00000000000..75a22224d7d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/InputXpathRequireThisOne.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.requirethis; + +public class InputXpathRequireThisOne { + private int age = 23; + + public void changeAge() { + age = 24; //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/InputXpathRequireThisTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/InputXpathRequireThisTwo.java new file mode 100644 index 00000000000..f36c48cd094 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/InputXpathRequireThisTwo.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.requirethis; + +public class InputXpathRequireThisTwo { + void method1() { + int i = 3; + } + + void method2(int i) { + method1(); //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/SuppressionXpathRegressionRequireThisOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/SuppressionXpathRegressionRequireThisOne.java deleted file mode 100644 index ffa6fc9542c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/SuppressionXpathRegressionRequireThisOne.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.requirethis; - -public class SuppressionXpathRegressionRequireThisOne { - private int age = 23; - - public void changeAge() { - age = 24; //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/SuppressionXpathRegressionRequireThisTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/SuppressionXpathRegressionRequireThisTwo.java deleted file mode 100644 index 566a866653f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/requirethis/SuppressionXpathRegressionRequireThisTwo.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.requirethis; - -public class SuppressionXpathRegressionRequireThisTwo { - void method1() { - int i = 3; - } - - void method2(int i) { - method1(); //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountCtor.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountCtor.java new file mode 100644 index 00000000000..835d5ea3ea2 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountCtor.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.returncount; + +public class InputXpathReturnCountCtor { + InputXpathReturnCountCtor() { // warn + int i = 1; + switch(i) { + case 1: return; + case 2: return; + case 3: return; + case 4: return; + } + return; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountLambda.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountLambda.java new file mode 100644 index 00000000000..172ef597785 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountLambda.java @@ -0,0 +1,16 @@ +package org.checkstyle.suppressionxpathfilter.returncount; + +import java.util.function.Function; + +public class InputXpathReturnCountLambda { + void testLambda() { + Function a = i -> { // warn + switch(i) { + case 1: return true; + case 2: return true; + case 3: return true; + } + return false; + }; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountNonVoid.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountNonVoid.java new file mode 100644 index 00000000000..c8d1e11e8d4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountNonVoid.java @@ -0,0 +1,26 @@ +package org.checkstyle.suppressionxpathfilter.returncount; + +public class InputXpathReturnCountNonVoid { + public boolean equals(Object obj) { // OK + int i = 1; + switch (i) { + case 1: return true; + case 2: return true; + case 3: return true; + case 4: return true; + case 5: return true; + case 6: return true; + } + return false; + } + boolean testNonVoid() { // warn + int i = 1; + switch(i) { + case 1: return true; + case 2: return true; + case 3: return true; + } + return false; + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountVoid.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountVoid.java new file mode 100644 index 00000000000..f0943f70294 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/InputXpathReturnCountVoid.java @@ -0,0 +1,26 @@ +package org.checkstyle.suppressionxpathfilter.returncount; + +class InputXpathReturnCountVoid { + public boolean equals(Object obj) { // OK + int i = 1; + switch (i) { + case 1: return true; + case 2: return true; + case 3: return true; + case 4: return true; + case 5: return true; + case 6: return true; + } + return false; + } + void testVoid() { // warn + int i = 1; + switch(i) { + case 1: return; + case 2: return; + case 3: return; + case 4: return; + } + return; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount1.java deleted file mode 100644 index b63032dfd91..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount1.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.returncount; - -class SuppressionXpathRegressionReturnCount1 { - public boolean equals(Object obj) { // OK - int i = 1; - switch (i) { - case 1: return true; - case 2: return true; - case 3: return true; - case 4: return true; - case 5: return true; - case 6: return true; - } - return false; - } - void testVoid() { // warn - int i = 1; - switch(i) { - case 1: return; - case 2: return; - case 3: return; - case 4: return; - } - return; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount2.java deleted file mode 100644 index 82def249827..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount2.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.returncount; - -public class SuppressionXpathRegressionReturnCount2 { - public boolean equals(Object obj) { // OK - int i = 1; - switch (i) { - case 1: return true; - case 2: return true; - case 3: return true; - case 4: return true; - case 5: return true; - case 6: return true; - } - return false; - } - boolean testNonVoid() { // warn - int i = 1; - switch(i) { - case 1: return true; - case 2: return true; - case 3: return true; - } - return false; - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount3.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount3.java deleted file mode 100644 index 73b4266b57a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount3.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.returncount; - -public class SuppressionXpathRegressionReturnCount3 { - SuppressionXpathRegressionReturnCount3() { // warn - int i = 1; - switch(i) { - case 1: return; - case 2: return; - case 3: return; - case 4: return; - } - return; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount4.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount4.java deleted file mode 100644 index 30862025ac1..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/returncount/SuppressionXpathRegressionReturnCount4.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.returncount; - -import java.util.function.Function; - -public class SuppressionXpathRegressionReturnCount4 { - void testLambda() { - Function a = i -> { // warn - switch(i) { - case 1: return true; - case 2: return true; - case 3: return true; - } - return false; - }; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyFour.java new file mode 100644 index 00000000000..6886432c9c5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyFour.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.rightcurly; + +public class InputXpathRightCurlyFour { + public void sample(boolean flag) { + if (flag) { + System.identityHashCode("heh"); + flag = !flag; } String.CASE_INSENSITIVE_ORDER. //warn + equals("Xe-xe"); + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyOne.java new file mode 100644 index 00000000000..891b452842c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyOne.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.rightcurly; + +public class InputXpathRightCurlyOne { + public void test(int x) { + if (x > 0) + { + return; + } //warn + else if (x < 0) { + ; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyThree.java new file mode 100644 index 00000000000..5a115e34702 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyThree.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.rightcurly; + +public class InputXpathRightCurlyThree { + public void sample(boolean flag) { + if (flag) { String.CASE_INSENSITIVE_ORDER.equals("it is ok."); } //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyTwo.java new file mode 100644 index 00000000000..c8169acfea1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/InputXpathRightCurlyTwo.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.rightcurly; + +import java.io.BufferedReader; +import java.io.IOException; + +public class InputXpathRightCurlyTwo { + public void fooMethod() throws IOException { + try (BufferedReader br1 = new BufferedReader(null)) { + ; } //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyFour.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyFour.java deleted file mode 100644 index 68fd53d5e2f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyFour.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.rightcurly; - -public class SuppressionXpathRegressionRightCurlyFour { - public void sample(boolean flag) { - if (flag) { - System.identityHashCode("heh"); - flag = !flag; } String.CASE_INSENSITIVE_ORDER. //warn - equals("Xe-xe"); - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyOne.java deleted file mode 100644 index 05cda1281cd..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyOne.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.rightcurly; - -public class SuppressionXpathRegressionRightCurlyOne { - public void test(int x) { - if (x > 0) - { - return; - } //warn - else if (x < 0) { - ; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyThree.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyThree.java deleted file mode 100644 index d034b07e05c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyThree.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.rightcurly; - -public class SuppressionXpathRegressionRightCurlyThree { - public void sample(boolean flag) { - if (flag) { String.CASE_INSENSITIVE_ORDER.equals("it is ok."); } //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyTwo.java deleted file mode 100644 index 0ae0cfa5cc2..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/rightcurly/SuppressionXpathRegressionRightCurlyTwo.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.rightcurly; - -import java.io.BufferedReader; -import java.io.IOException; - -public class SuppressionXpathRegressionRightCurlyTwo { - public void fooMethod() throws IOException { - try (BufferedReader br1 = new BufferedReader(null)) { - ; } //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionAnonymous.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionAnonymous.java new file mode 100644 index 00000000000..09c0683c3c8 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionAnonymous.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.simplifybooleanexpression; + +public class InputXpathSimplifyBooleanExpressionAnonymous { + + class Inner{ + boolean a,b,c,d; + void test(){ + if (a == true) {}; // warn + boolean e = e = (a && b) ? c : d; // ok + if (a == b) {}; // ok + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionInterface.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionInterface.java new file mode 100644 index 00000000000..c84f4f96126 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionInterface.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.simplifybooleanexpression; + +public class InputXpathSimplifyBooleanExpressionInterface { + interface Inner { + default void test() { + boolean a = false, b = false, c = false, d = false; + if (!(b != true)) {}; // warn + boolean e = e = (a && b) ? c : d; // ok + if (a == b) {}; // ok + + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionSimple.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionSimple.java new file mode 100644 index 00000000000..2423915e215 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanexpression/InputXpathSimplifyBooleanExpressionSimple.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.simplifybooleanexpression; + +public class InputXpathSimplifyBooleanExpressionSimple { + private Object c,d,e; + boolean a,b; + public void test(){ + boolean f = c == null ? false : c.equals(d); // ok + if (!false) {} // warn + e = (a && b) ? c : d; // ok + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/InputXpathSimplifyBooleanReturnIfBooleanEqualsBoolean.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/InputXpathSimplifyBooleanReturnIfBooleanEqualsBoolean.java new file mode 100644 index 00000000000..242bd654086 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/InputXpathSimplifyBooleanReturnIfBooleanEqualsBoolean.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.simplifybooleanreturn; + +public class InputXpathSimplifyBooleanReturnIfBooleanEqualsBoolean { + public static boolean toTest() { + boolean even = false; + if (even == true) { // warn + return false; + } + else { + return true; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/InputXpathSimplifyBooleanReturnIfBooleanReturnBoolean.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/InputXpathSimplifyBooleanReturnIfBooleanReturnBoolean.java new file mode 100644 index 00000000000..d4bade16433 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/InputXpathSimplifyBooleanReturnIfBooleanReturnBoolean.java @@ -0,0 +1,19 @@ +package org.checkstyle.suppressionxpathfilter.simplifybooleanreturn; + +import java.util.ArrayList; +import java.util.Arrays; + +public class InputXpathSimplifyBooleanReturnIfBooleanReturnBoolean { + public static void toTest() { + ArrayList boolList + = new ArrayList(Arrays.asList(false, true, false, false)); + boolList.stream().filter(statement -> { + if (!statement) { // warn + return true; + } + else { + return false; + } + }); + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanEqualsBoolean.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanEqualsBoolean.java deleted file mode 100644 index a154459a2b9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanEqualsBoolean.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.simplifybooleanreturn; - -public class SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanEqualsBoolean { - public static boolean toTest() { - boolean even = false; - if (even == true) { // warn - return false; - } - else { - return true; - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanReturnBoolean.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanReturnBoolean.java deleted file mode 100644 index cd7e74f066e..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/simplifybooleanreturn/SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanReturnBoolean.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.simplifybooleanreturn; - -import java.util.ArrayList; -import java.util.Arrays; - -public class SuppressionXpathRegressionSimplifyBooleanReturnIfBooleanReturnBoolean { - public static void toTest() { - ArrayList boolList - = new ArrayList(Arrays.asList(false, true, false, false)); - boolList.stream().filter(statement -> { - if (!statement) { // warn - return true; - } - else { - return false; - } - }); - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/InputXpathSingleSpaceSeparator.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/InputXpathSingleSpaceSeparator.java new file mode 100644 index 00000000000..4bab7813d5c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/InputXpathSingleSpaceSeparator.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.singlespaceseparator; + +public class InputXpathSingleSpaceSeparator { + long bad;//warn + long good; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/InputXpathSingleSpaceSeparatorValidateComments.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/InputXpathSingleSpaceSeparatorValidateComments.java new file mode 100644 index 00000000000..9f2404be9c8 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/InputXpathSingleSpaceSeparatorValidateComments.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.singlespaceseparator; + +public class InputXpathSingleSpaceSeparatorValidateComments { + long y; // an invalid comment // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/SuppressionXpathRegressionSingleSpaceSeparator.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/SuppressionXpathRegressionSingleSpaceSeparator.java deleted file mode 100644 index 8003b653c48..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/SuppressionXpathRegressionSingleSpaceSeparator.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.singlespaceseparator; - -public class SuppressionXpathRegressionSingleSpaceSeparator { - long bad;//warn - long good; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/SuppressionXpathRegressionSingleSpaceSeparatorValidateComments.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/SuppressionXpathRegressionSingleSpaceSeparatorValidateComments.java deleted file mode 100644 index 8877f640736..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/singlespaceseparator/SuppressionXpathRegressionSingleSpaceSeparatorValidateComments.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.singlespaceseparator; - -public class SuppressionXpathRegressionSingleSpaceSeparatorValidateComments { - long y; // an invalid comment // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableName.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableName.java new file mode 100644 index 00000000000..051aaf1239c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/staticvariablename/InputXpathStaticVariableName.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.staticvariablename; + +public class InputXpathStaticVariableName { + + public int num1; // OK + public static int NUM2; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityExp.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityExp.java new file mode 100644 index 00000000000..20c7ba6433a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityExp.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.stringliteralequality; + +public class InputXpathStringLiteralEqualityExp { + public void myFunction(){ + String foo = "pending"; + boolean flag = (foo == "done"); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityFalse.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityFalse.java new file mode 100644 index 00000000000..c0991262cf0 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityFalse.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.stringliteralequality; + +public class InputXpathStringLiteralEqualityFalse { + public void myFunction(){ + String foo = "pending"; + while (foo != "done") {} // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityTrue.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityTrue.java new file mode 100644 index 00000000000..4ae1574134d --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/InputXpathStringLiteralEqualityTrue.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.stringliteralequality; + +public class InputXpathStringLiteralEqualityTrue { + public void myFunction(){ + String foo = "pending"; + if (foo == "done") {} // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality.java deleted file mode 100644 index 782999ba68f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.stringliteralequality; - -public class SuppressionXpathRegressionStringLiteralEquality { - public void myFunction(){ - String foo = "pending"; - if (foo == "done") {} // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality1.java deleted file mode 100644 index a85e4bbc369..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality1.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.stringliteralequality; - -public class SuppressionXpathRegressionStringLiteralEquality1 { - public void myFunction(){ - String foo = "pending"; - while (foo != "done") {} // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality2.java deleted file mode 100644 index 8b23c9208cf..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/stringliteralequality/SuppressionXpathRegressionStringLiteralEquality2.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.stringliteralequality; - -public class SuppressionXpathRegressionStringLiteralEquality2 { - public void myFunction(){ - String foo = "pending"; - boolean flag = (foo == "done"); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperCloneInnerClone.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperCloneInnerClone.java new file mode 100644 index 00000000000..1c316ded608 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperCloneInnerClone.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.superclone; + +public class InputXpathSuperCloneInnerClone { + class InnerClone + { + public Object clone() // warn + { + class Inner + { + public Object clone() throws CloneNotSupportedException + { + return super.clone(); + } + } + return null; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperCloneNoSuperClone.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperCloneNoSuperClone.java new file mode 100644 index 00000000000..005a070c4ce --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperCloneNoSuperClone.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.superclone; + +public class InputXpathSuperCloneNoSuperClone { + class NoSuperClone + { + public Object clone() // warn + { + return null; + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperClonePlainAndSubclasses.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperClonePlainAndSubclasses.java new file mode 100644 index 00000000000..87a63338f4c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/superclone/InputXpathSuperClonePlainAndSubclasses.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.superclone; + +class InputXpathSuperClonePlainAndSubclasses { + public Object clone() { // warn + return null; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountCustomMax.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountCustomMax.java new file mode 100644 index 00000000000..d7d81bd8fac --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountCustomMax.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.throwscount; + +interface InputXpathThrowsCountCustomMax { + public void myFunction() throws IllegalStateException, // warn, max allowed is 2 + ArrayIndexOutOfBoundsException, + NullPointerException; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountDefault.java new file mode 100644 index 00000000000..7f8949a0518 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountDefault.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.throwscount; + +public class InputXpathThrowsCountDefault { + public void myFunction() throws CloneNotSupportedException, // warn, max allowed is 4 + ArrayIndexOutOfBoundsException, + StringIndexOutOfBoundsException, + IllegalStateException, + NullPointerException { + //body + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountPrivateMethods.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountPrivateMethods.java new file mode 100644 index 00000000000..b266237d771 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/InputXpathThrowsCountPrivateMethods.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.throwscount; + +public class InputXpathThrowsCountPrivateMethods { + interface myClass{ + //body + } + public void myFunc() { + myClass foo = new myClass() { + private void privateFunc() throws CloneNotSupportedException, // warn, max allowed is 4 + ClassNotFoundException, + IllegalAccessException, + ArithmeticException, + ClassCastException { + // body + } + }; + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount1.java deleted file mode 100644 index 316544842fa..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount1.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.throwscount; - -public class SuppressionXpathRegressionThrowsCount1 { - public void myFunction() throws CloneNotSupportedException, // warn, max allowed is 4 - ArrayIndexOutOfBoundsException, - StringIndexOutOfBoundsException, - IllegalStateException, - NullPointerException { - //body - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount2.java deleted file mode 100644 index e7432e43514..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount2.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.throwscount; - -interface SuppressionXpathRegressionThrowsCount2 { - public void myFunction() throws IllegalStateException, // warn, max allowed is 2 - ArrayIndexOutOfBoundsException, - NullPointerException; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount3.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount3.java deleted file mode 100644 index 37c9b74d263..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/throwscount/SuppressionXpathRegressionThrowsCount3.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.throwscount; - -public class SuppressionXpathRegressionThrowsCount3 { - interface myClass{ - //body - } - public void myFunc() { - myClass foo = new myClass() { - private void privateFunc() throws CloneNotSupportedException, // warn, max allowed is 4 - ClassNotFoundException, - IllegalAccessException, - ArithmeticException, - ClassCastException { - // body - } - }; - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/InputXpathTodoCommentBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/InputXpathTodoCommentBlock.java new file mode 100644 index 00000000000..b064916a38f --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/InputXpathTodoCommentBlock.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.todocomment; + +public class InputXpathTodoCommentBlock { + /* // warn + * FIXME: + * TODO + */ +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/InputXpathTodoCommentSingleLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/InputXpathTodoCommentSingleLine.java new file mode 100644 index 00000000000..f2e63c0ee49 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/InputXpathTodoCommentSingleLine.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.todocomment; + +public class InputXpathTodoCommentSingleLine { + // warn FIXME: +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/SuppressionXpathRegressionTodoCommentOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/SuppressionXpathRegressionTodoCommentOne.java deleted file mode 100644 index 76595bc80df..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/SuppressionXpathRegressionTodoCommentOne.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.todocomment; - -public class SuppressionXpathRegressionTodoCommentOne { - // warn FIXME: -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/SuppressionXpathRegressionTodoCommentTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/SuppressionXpathRegressionTodoCommentTwo.java deleted file mode 100644 index 23e883ebade..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/todocomment/SuppressionXpathRegressionTodoCommentTwo.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.todocomment; - -public class SuppressionXpathRegressionTodoCommentTwo { - /* // warn - * FIXME: - * TODO - */ -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/InputXpathTrailingCommentBlock.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/InputXpathTrailingCommentBlock.java new file mode 100644 index 00000000000..9576d9f2a05 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/InputXpathTrailingCommentBlock.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.trailingcomment; + +public class InputXpathTrailingCommentBlock { + int j; /* bad c-style comment. */ // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/InputXpathTrailingCommentSingleLine.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/InputXpathTrailingCommentSingleLine.java new file mode 100644 index 00000000000..b28316a8e63 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/InputXpathTrailingCommentSingleLine.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.trailingcomment; + +public class InputXpathTrailingCommentSingleLine { + int i; // don't use trailing comments :) // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/SuppressionXpathRegressionTrailingComment1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/SuppressionXpathRegressionTrailingComment1.java deleted file mode 100644 index 503f40d9a7d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/SuppressionXpathRegressionTrailingComment1.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.trailingcomment; - -public class SuppressionXpathRegressionTrailingComment1 { - int i; // don't use trailing comments :) // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/SuppressionXpathRegressionTrailingComment2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/SuppressionXpathRegressionTrailingComment2.java deleted file mode 100644 index cb5e9548557..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/trailingcomment/SuppressionXpathRegressionTrailingComment2.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.trailingcomment; - -public class SuppressionXpathRegressionTrailingComment2 { - int j; /* bad c-style comment. */ // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadLeftFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadLeftFollowed.java new file mode 100644 index 00000000000..9b3ef63130b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadLeftFollowed.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.typecastparenpad; + +public class InputXpathTypecastParenPadLeftFollowed { + Object bad = ( Object)null;//warn + Object good = (Object)null; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadLeftNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadLeftNotFollowed.java new file mode 100644 index 00000000000..1065c5fbded --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadLeftNotFollowed.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.typecastparenpad; + +public class InputXpathTypecastParenPadLeftNotFollowed { + Object bad = (Object )null;//warn + Object good = ( Object )null; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadRightNotPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadRightNotPreceded.java new file mode 100644 index 00000000000..bf88cf3a446 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadRightNotPreceded.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.typecastparenpad; + +public class InputXpathTypecastParenPadRightNotPreceded{ + Object bad = ( Object)null;//warn + Object good = ( Object )null; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadRightPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadRightPreceded.java new file mode 100644 index 00000000000..70da3a8f155 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/InputXpathTypecastParenPadRightPreceded.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.typecastparenpad; + +public class InputXpathTypecastParenPadRightPreceded { + Object bad = (Object )null;//warn + Object good = (Object)null; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadLeftFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadLeftFollowed.java deleted file mode 100644 index 8f5b559342f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadLeftFollowed.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.typecastparenpad; - -public class SuppressionXpathRegressionTypecastParenPadLeftFollowed { - Object bad = ( Object)null;//warn - Object good = (Object)null; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadLeftNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadLeftNotFollowed.java deleted file mode 100644 index eabf3524dc2..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadLeftNotFollowed.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.typecastparenpad; - -public class SuppressionXpathRegressionTypecastParenPadLeftNotFollowed { - Object bad = (Object )null;//warn - Object good = ( Object )null; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadRightNotPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadRightNotPreceded.java deleted file mode 100644 index ac755e4a69d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadRightNotPreceded.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.typecastparenpad; - -public class SuppressionXpathRegressionTypecastParenPadRightNotPreceded{ - Object bad = ( Object)null;//warn - Object good = ( Object )null; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadRightPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadRightPreceded.java deleted file mode 100644 index 9b79e9849d7..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/typecastparenpad/SuppressionXpathRegressionTypecastParenPadRightPreceded.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.typecastparenpad; - -public class SuppressionXpathRegressionTypecastParenPadRightPreceded { - Object bad = (Object )null;//warn - Object good = (Object)null; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/InputXpathTypeNameDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/InputXpathTypeNameDefault.java new file mode 100644 index 00000000000..b91721ea890 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/InputXpathTypeNameDefault.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.typename; + +public class InputXpathTypeNameDefault { + public interface FirstName {} // OK + private class SecondName_ {} // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/InputXpathTypeNameInterfaceDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/InputXpathTypeNameInterfaceDef.java new file mode 100644 index 00000000000..3228dc0e723 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/InputXpathTypeNameInterfaceDef.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.typename; + +public class InputXpathTypeNameInterfaceDef { + + public interface I_firstName {} // OK + interface SecondName {} // warn + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/SuppressionXpathRegressionTypeName1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/SuppressionXpathRegressionTypeName1.java deleted file mode 100644 index a896931d5bb..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/SuppressionXpathRegressionTypeName1.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.typename; - -public class SuppressionXpathRegressionTypeName1 { - public interface FirstName {} // OK - private class SecondName_ {} // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/SuppressionXpathRegressionTypeName2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/SuppressionXpathRegressionTypeName2.java deleted file mode 100644 index 3bd0bebfdca..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/typename/SuppressionXpathRegressionTypeName2.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.typename; - -public class SuppressionXpathRegressionTypeName2 { - - public interface I_firstName {} // OK - interface SecondName {} // warn - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/InputXpathUncommentedMainDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/InputXpathUncommentedMainDefault.java new file mode 100644 index 00000000000..8e9fcc53599 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/InputXpathUncommentedMainDefault.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.uncommentedmain; + +public class InputXpathUncommentedMainDefault { + public static void main(String... args) {} // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/InputXpathUncommentedMainInStaticClass.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/InputXpathUncommentedMainInStaticClass.java new file mode 100644 index 00000000000..474cd87a17b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/InputXpathUncommentedMainInStaticClass.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.uncommentedmain; + +public class InputXpathUncommentedMainInStaticClass { + public static class Launcher { + public static void main(String[] args) {} // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/SuppressionXpathRegressionUncommentedMain.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/SuppressionXpathRegressionUncommentedMain.java deleted file mode 100644 index 3af568f424d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/SuppressionXpathRegressionUncommentedMain.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.uncommentedmain; - -public class SuppressionXpathRegressionUncommentedMain { - public static void main(String... args) {} // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/SuppressionXpathRegressionUncommentedMainTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/SuppressionXpathRegressionUncommentedMainTwo.java deleted file mode 100644 index 4e2753e69fd..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/uncommentedmain/SuppressionXpathRegressionUncommentedMainTwo.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.uncommentedmain; - -public class SuppressionXpathRegressionUncommentedMainTwo { - public static class Launcher { - public static void main(String[] args) {} // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesClassFields.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesClassFields.java new file mode 100644 index 00000000000..d56c7c3d087 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesClassFields.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; + +public class InputXpathUnnecessaryParenthesesClassFields { + int a = (2*2); // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesConditionals.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesConditionals.java new file mode 100644 index 00000000000..5f5aa4cb3d8 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesConditionals.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; + +public class InputXpathUnnecessaryParenthesesConditionals { + void foo(String a) { + if (('A' == a.charAt(0))) { // warn + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesExprWithMethodParam.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesExprWithMethodParam.java new file mode 100644 index 00000000000..3b3f1b57f3e --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesExprWithMethodParam.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; + +public class InputXpathUnnecessaryParenthesesExprWithMethodParam { + void foo(int a, int b) { + int c = (a*b); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesLambdas.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesLambdas.java new file mode 100644 index 00000000000..0b1d71812e5 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesLambdas.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; + +public class InputXpathUnnecessaryParenthesesLambdas { + public interface Predicate { + boolean test(Integer t); + } + Predicate predicate = (value) -> value != null; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesLocalVariables.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesLocalVariables.java new file mode 100644 index 00000000000..a697f7859ed --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesLocalVariables.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; + +public class InputXpathUnnecessaryParenthesesLocalVariables { + void foo (int a) { + int b = (a) + 5; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesMethodDef.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesMethodDef.java new file mode 100644 index 00000000000..b1ab0dda609 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesMethodDef.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; + +public class InputXpathUnnecessaryParenthesesMethodDef { + void foo () { + int a = (10) + 5; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesReturnExpr.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesReturnExpr.java new file mode 100644 index 00000000000..02d1065b427 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesReturnExpr.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; + +public class InputXpathUnnecessaryParenthesesReturnExpr { + int foo (int a) { + return (a+6); // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesStringLiteral.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesStringLiteral.java new file mode 100644 index 00000000000..6ae7d1bc394 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/InputXpathUnnecessaryParenthesesStringLiteral.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; + +public class InputXpathUnnecessaryParenthesesStringLiteral { + void foo () { + String str = ("Checkstyle") + "is cool"; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses1.java deleted file mode 100644 index 020ecf74faf..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses1.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; - -public class SuppressionXpathRegressionUnnecessaryParentheses1 { - int a = (2*2); // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses2.java deleted file mode 100644 index 880e0a8327a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses2.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; - -public class SuppressionXpathRegressionUnnecessaryParentheses2 { - void foo(String a) { - if (('A' == a.charAt(0))) { // warn - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses3.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses3.java deleted file mode 100644 index b43a3527003..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses3.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; - -public class SuppressionXpathRegressionUnnecessaryParentheses3 { - public interface Predicate { - boolean test(Integer t); - } - Predicate predicate = (value) -> value != null; // warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses4.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses4.java deleted file mode 100644 index 41a24f71355..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses4.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; - -public class SuppressionXpathRegressionUnnecessaryParentheses4 { - void foo (int a) { - int b = (a) + 5; // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses5.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses5.java deleted file mode 100644 index a7e15795ac8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses5.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; - -public class SuppressionXpathRegressionUnnecessaryParentheses5 { - void foo () { - String str = ("Checkstyle") + "is cool"; // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses6.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses6.java deleted file mode 100644 index 66b7ace1ad0..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses6.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; - -public class SuppressionXpathRegressionUnnecessaryParentheses6 { - void foo () { - int a = (10) + 5; // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses7.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses7.java deleted file mode 100644 index 47c89097457..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses7.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; - -public class SuppressionXpathRegressionUnnecessaryParentheses7 { - int foo (int a) { - return (a+6); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses8.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses8.java deleted file mode 100644 index 5fe695b46c2..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessaryparentheses/SuppressionXpathRegressionUnnecessaryParentheses8.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessaryparentheses; - -public class SuppressionXpathRegressionUnnecessaryParentheses8 { - void foo(int a, int b) { - int c = (a*b); // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes.java new file mode 100644 index 00000000000..1e0fd4ab329 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes.java @@ -0,0 +1,25 @@ +package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonafteroutertypedeclaration; + +interface InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes { + + class Inner1 { + + }; // OK + + enum Inner2 { + + }; // OK + + interface Inner3 { + + }; // OK + + @interface Inner4 { + + }; // OK + +}; //warn + +class NoSemicolonAfter { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationSimple.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationSimple.java new file mode 100644 index 00000000000..dd9916aa027 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationSimple.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonafteroutertypedeclaration; + +public class InputXpathUnnecessarySemicolonAfterOuterTypeDeclarationSimple { + +}; //warn diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclaration.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclaration.java deleted file mode 100644 index d555ec085db..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclaration.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonafteroutertypedeclaration; - -public class SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclaration { - -}; //warn diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes.java deleted file mode 100644 index cb9d19fff91..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonafteroutertypedeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonafteroutertypedeclaration; - -interface SuppressionXpathRegressionUnnecessarySemicolonAfterOuterTypeDeclarationInnerTypes { - - class Inner1 { - - }; // OK - - enum Inner2 { - - }; // OK - - interface Inner3 { - - }; // OK - - @interface Inner4 { - - }; // OK - -}; //warn - -class NoSemicolonAfter { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationDefault.java new file mode 100644 index 00000000000..edba6c7c011 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationDefault.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonaftertypememberdeclaration; + +public class InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationDefault { + void method(){}; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationTokens.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationTokens.java new file mode 100644 index 00000000000..665750cc4b4 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationTokens.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonaftertypememberdeclaration; + +public class InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationTokens { + void method() {}; //warn + public InputXpathUnnecessarySemicolonAfterTypeMemberDeclarationTokens() {}; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclaration.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclaration.java deleted file mode 100644 index 78e8f455f7a..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclaration.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonaftertypememberdeclaration; - -public class SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclaration { - void method(){}; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTokens.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTokens.java deleted file mode 100644 index 07f29b0f273..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonaftertypememberdeclaration/SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTokens.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonaftertypememberdeclaration; - -public class SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTokens { - void method() {}; //warn - public SuppressionXpathRegressionUnnecessarySemicolonAfterTypeMemberDeclarationTokens() {}; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/InputXpathUnnecessarySemicolonInEnumerationAll.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/InputXpathUnnecessarySemicolonInEnumerationAll.java new file mode 100644 index 00000000000..122e520fc48 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/InputXpathUnnecessarySemicolonInEnumerationAll.java @@ -0,0 +1,5 @@ +package org.checkstyle.suppressionxpathfilter.unnecessarysemicoloninenumeration; + +enum InputXpathUnnecessarySemicolonInEnumerationAll { + A,B(){ public String toString() { return "";}},; /** warn */ +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/InputXpathUnnecessarySemicolonInEnumerationSimple.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/InputXpathUnnecessarySemicolonInEnumerationSimple.java new file mode 100644 index 00000000000..fe8e2d4e705 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/InputXpathUnnecessarySemicolonInEnumerationSimple.java @@ -0,0 +1,12 @@ +package org.checkstyle.suppressionxpathfilter.unnecessarysemicoloninenumeration; + +public class InputXpathUnnecessarySemicolonInEnumerationSimple { +} + +enum Good { + One, Two +} + +enum Bad { + Third; //warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/SuppressionXpathRegressionUnnecessarySemicolonInEnumeration.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/SuppressionXpathRegressionUnnecessarySemicolonInEnumeration.java deleted file mode 100644 index 1a2c3a146c5..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/SuppressionXpathRegressionUnnecessarySemicolonInEnumeration.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessarysemicoloninenumeration; - -public class SuppressionXpathRegressionUnnecessarySemicolonInEnumeration { -} - -enum Good { - One, Two -} - -enum Bad { - Third; //warn -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/SuppressionXpathRegressionUnnecessarySemicolonInEnumerationAll.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/SuppressionXpathRegressionUnnecessarySemicolonInEnumerationAll.java deleted file mode 100644 index 2d4e6ec23a9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicoloninenumeration/SuppressionXpathRegressionUnnecessarySemicolonInEnumerationAll.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessarysemicoloninenumeration; - -enum SuppressionXpathRegressionUnnecessarySemicolonInEnumerationAll { - A,B(){ public String toString() { return "";}},; /** warn */ -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/InputXpathUnnecessarySemicolonInTryWithResourcesDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/InputXpathUnnecessarySemicolonInTryWithResourcesDefault.java new file mode 100644 index 00000000000..fb6508eb764 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/InputXpathUnnecessarySemicolonInTryWithResourcesDefault.java @@ -0,0 +1,14 @@ +package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonintrywithresources; + +import java.io.PipedReader; +import java.io.Reader; + +public class InputXpathUnnecessarySemicolonInTryWithResourcesDefault { + void m() throws Exception { + try(Reader good = new PipedReader()){} + try(Reader good = new PipedReader();Reader better = new PipedReader()){} + + try(Reader bad = new PipedReader();Reader worse = new PipedReader();){} //warn + + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/InputXpathUnnecessarySemicolonInTryWithResourcesNoBrace.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/InputXpathUnnecessarySemicolonInTryWithResourcesNoBrace.java new file mode 100644 index 00000000000..fbd2177d9b1 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/InputXpathUnnecessarySemicolonInTryWithResourcesNoBrace.java @@ -0,0 +1,10 @@ +package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonintrywithresources; + +import java.io.PipedReader; +import java.io.Reader; + +public class InputXpathUnnecessarySemicolonInTryWithResourcesNoBrace { + void test() throws Exception { + try(Reader good = new PipedReader();){} // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/SuppressionXpathRegressionUnnecessarySemicolonInTryWithResources.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/SuppressionXpathRegressionUnnecessarySemicolonInTryWithResources.java deleted file mode 100644 index 7b3f9a70eb4..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/SuppressionXpathRegressionUnnecessarySemicolonInTryWithResources.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonintrywithresources; - -import java.io.PipedReader; -import java.io.Reader; - -public class SuppressionXpathRegressionUnnecessarySemicolonInTryWithResources { - void m() throws Exception { - try(Reader good = new PipedReader()){} - try(Reader good = new PipedReader();Reader better = new PipedReader()){} - - try(Reader bad = new PipedReader();){} //warn - try(Reader bad = new PipedReader();Reader worse = new PipedReader();){} //warn - - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/SuppressionXpathRegressionUnnecessarySemicolonInTryWithResourcesNoBrace.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/SuppressionXpathRegressionUnnecessarySemicolonInTryWithResourcesNoBrace.java deleted file mode 100644 index aa1bbd0715c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unnecessarysemicolonintrywithresources/SuppressionXpathRegressionUnnecessarySemicolonInTryWithResourcesNoBrace.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unnecessarysemicolonintrywithresources; - -import java.io.PipedReader; -import java.io.Reader; - -public class SuppressionXpathRegressionUnnecessarySemicolonInTryWithResourcesNoBrace { - void test() throws Exception { - try(Reader good = new PipedReader();){} // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/InputXpathUnusedImports.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/InputXpathUnusedImports.java new file mode 100644 index 00000000000..f8a90849c08 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/InputXpathUnusedImports.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.unusedimports; + +import java.util.List; // warn + +public class InputXpathUnusedImports { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/InputXpathUnusedImportsStatic.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/InputXpathUnusedImportsStatic.java new file mode 100644 index 00000000000..8924e008c49 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/InputXpathUnusedImportsStatic.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.unusedimports; + +import static java.util.Map.Entry; // warn + +public class InputXpathUnusedImportsStatic { + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/SuppressionXpathRegressionUnusedImportsOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/SuppressionXpathRegressionUnusedImportsOne.java deleted file mode 100644 index 3c8000bc75d..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/SuppressionXpathRegressionUnusedImportsOne.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unusedimports; - -import java.util.List; // warn - -public class SuppressionXpathRegressionUnusedImportsOne { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/SuppressionXpathRegressionUnusedImportsTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/SuppressionXpathRegressionUnusedImportsTwo.java deleted file mode 100644 index bb0db0178f9..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedimports/SuppressionXpathRegressionUnusedImportsTwo.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unusedimports; - -import static java.util.Map.Entry; // warn - -public class SuppressionXpathRegressionUnusedImportsTwo { - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/InputXpathUnusedLocalVariableOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/InputXpathUnusedLocalVariableOne.java new file mode 100644 index 00000000000..43fd14d3e67 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/InputXpathUnusedLocalVariableOne.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.unusedlocalvariable; + +public class InputXpathUnusedLocalVariableOne { + + public void foo() { + int a = 20; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/InputXpathUnusedLocalVariableTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/InputXpathUnusedLocalVariableTwo.java new file mode 100644 index 00000000000..fa0821eba3c --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/InputXpathUnusedLocalVariableTwo.java @@ -0,0 +1,17 @@ +package org.checkstyle.suppressionxpathfilter.unusedlocalvariable; + +import java.util.function.Predicate; + +public class InputXpathUnusedLocalVariableTwo { + + int b = 21; + + void foo() { + int b = 12; // warn + a(this.b); + } + + static void a(int a) { + } + +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/SuppressionXpathRegressionUnusedLocalVariableOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/SuppressionXpathRegressionUnusedLocalVariableOne.java deleted file mode 100644 index d302a9b1234..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/SuppressionXpathRegressionUnusedLocalVariableOne.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unusedlocalvariable; - -public class SuppressionXpathRegressionUnusedLocalVariableOne { - - public void foo() { - int a = 20; // warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/SuppressionXpathRegressionUnusedLocalVariableTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/SuppressionXpathRegressionUnusedLocalVariableTwo.java deleted file mode 100644 index 94fde4787c1..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/unusedlocalvariable/SuppressionXpathRegressionUnusedLocalVariableTwo.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.unusedlocalvariable; - -import java.util.function.Predicate; - -public class SuppressionXpathRegressionUnusedLocalVariableTwo { - - int b = 21; - - void foo() { - int b = 12; // warn - a(this.b); - } - - static void a(int a) { - } - -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/InputXpathUpperEllOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/InputXpathUpperEllOne.java new file mode 100644 index 00000000000..7782be8b63a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/InputXpathUpperEllOne.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.upperell; + +public class InputXpathUpperEllOne { + long bad = 0l;//warn + long good = 0L; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/InputXpathUpperEllTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/InputXpathUpperEllTwo.java new file mode 100644 index 00000000000..4ed7cb0ff4a --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/InputXpathUpperEllTwo.java @@ -0,0 +1,8 @@ +package org.checkstyle.suppressionxpathfilter.upperell; + +public interface InputXpathUpperEllTwo { + public static void test() { + long var1 = 508987; + long var2 = 508987l; //warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/SuppressionXpathRegressionUpperEllFirst.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/SuppressionXpathRegressionUpperEllFirst.java deleted file mode 100644 index 1e458724f28..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/SuppressionXpathRegressionUpperEllFirst.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.upperell; - -public class SuppressionXpathRegressionUpperEllFirst { - long bad = 0l;//warn - long good = 0L; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/SuppressionXpathRegressionUpperEllSecond.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/SuppressionXpathRegressionUpperEllSecond.java deleted file mode 100644 index aa2dd37ab4f..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/upperell/SuppressionXpathRegressionUpperEllSecond.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.upperell; - -public interface SuppressionXpathRegressionUpperEllSecond { - public static void test() { - long var1 = 508987; - long var2 = 508987l; //warn - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/InputXpathVariableDeclarationUsageDistanceOne.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/InputXpathVariableDeclarationUsageDistanceOne.java new file mode 100644 index 00000000000..616fb41e341 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/InputXpathVariableDeclarationUsageDistanceOne.java @@ -0,0 +1,11 @@ +package org.checkstyle.suppressionxpathfilter.variabledeclarationusagedistance; + +public class InputXpathVariableDeclarationUsageDistanceOne { + private int test1; + + public void test(int test1) { + int temp = -1; // warn + this.test1 = test1; + temp = test1; // DECLARATION OF VARIABLE 'temp' SHOULD BE HERE (distance = 2) + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/InputXpathVariableDeclarationUsageDistanceTwo.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/InputXpathVariableDeclarationUsageDistanceTwo.java new file mode 100644 index 00000000000..ed696f3a29b --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/InputXpathVariableDeclarationUsageDistanceTwo.java @@ -0,0 +1,18 @@ +package org.checkstyle.suppressionxpathfilter.variabledeclarationusagedistance; + + +public class InputXpathVariableDeclarationUsageDistanceTwo { + public void testMethod2() { + int count; // warn + int a = 3; + int b = 2; + { + a = a + + b + - 5 + + 2 + * a; + count = b; // DECLARATION OF VARIABLE 'count' SHOULD BE HERE (distance = 2) + } + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/SuppressionXpathRegressionVariableDeclarationUsageDistance1.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/SuppressionXpathRegressionVariableDeclarationUsageDistance1.java deleted file mode 100644 index 24ace80d3a4..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/SuppressionXpathRegressionVariableDeclarationUsageDistance1.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.variabledeclarationusagedistance; - -public class SuppressionXpathRegressionVariableDeclarationUsageDistance1 { - private int test1; - - public void test(int test1) { - int temp = -1; // warn - this.test1 = test1; - temp = test1; // DECLARATION OF VARIABLE 'temp' SHOULD BE HERE (distance = 2) - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/SuppressionXpathRegressionVariableDeclarationUsageDistance2.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/SuppressionXpathRegressionVariableDeclarationUsageDistance2.java deleted file mode 100644 index f3d823977e5..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/variabledeclarationusagedistance/SuppressionXpathRegressionVariableDeclarationUsageDistance2.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.variabledeclarationusagedistance; - - -public class SuppressionXpathRegressionVariableDeclarationUsageDistance2 { - public void testMethod2() { - int count; // warn - int a = 3; - int b = 2; - { - a = a - + b - - 5 - + 2 - * a; - count = b; // DECLARATION OF VARIABLE 'count' SHOULD BE HERE (distance = 2) - } - } -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierAnnotation.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierAnnotation.java new file mode 100644 index 00000000000..8e4e54ffe97 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierAnnotation.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.visibilitymodifier; + +public class InputXpathVisibilityModifierAnnotation { + @java.lang.Deprecated + String annotatedString; // warn + + @Deprecated + String shortCustomAnnotated; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierAnonymous.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierAnonymous.java new file mode 100644 index 00000000000..fc46d090baa --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierAnonymous.java @@ -0,0 +1,13 @@ +package org.checkstyle.suppressionxpathfilter.visibilitymodifier; + +public class InputXpathVisibilityModifierAnonymous { + private Runnable runnable = new Runnable() { + + public String field1; // warn + + @Override + public void run() { + + } + }; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierDefault.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierDefault.java new file mode 100644 index 00000000000..f4d51703059 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierDefault.java @@ -0,0 +1,7 @@ +package org.checkstyle.suppressionxpathfilter.visibilitymodifier; + +public class InputXpathVisibilityModifierDefault { + private int myPrivateField; // ok, private class member is allowed + + int field; // warn +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierInner.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierInner.java new file mode 100644 index 00000000000..ddfaa00e028 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/visibilitymodifier/InputXpathVisibilityModifierInner.java @@ -0,0 +1,9 @@ +package org.checkstyle.suppressionxpathfilter.visibilitymodifier; + +public class InputXpathVisibilityModifierInner { + class InnerClass { + private int field1; + + public int field2; // warn + } +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/InputXpathWhitespaceAfterNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/InputXpathWhitespaceAfterNotFollowed.java new file mode 100644 index 00000000000..2b94bbfa793 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/InputXpathWhitespaceAfterNotFollowed.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.whitespaceafter; + +public class InputXpathWhitespaceAfterNotFollowed { + int[] bad = {1,2}; //warn + int[] good = {1, 2}; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/InputXpathWhitespaceAfterTypecast.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/InputXpathWhitespaceAfterTypecast.java new file mode 100644 index 00000000000..e49beb1e7f3 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/InputXpathWhitespaceAfterTypecast.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.whitespaceafter; + +public class InputXpathWhitespaceAfterTypecast { + Object bad = (Object)null; //warn + Object good = (Object) null; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/SuppressionXpathRegressionWhitespaceAfterNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/SuppressionXpathRegressionWhitespaceAfterNotFollowed.java deleted file mode 100644 index 318370eb37c..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/SuppressionXpathRegressionWhitespaceAfterNotFollowed.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.whitespaceafter; - -public class SuppressionXpathRegressionWhitespaceAfterNotFollowed { - int[] bad = {1,2}; //warn - int[] good = {1, 2}; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/SuppressionXpathRegressionWhitespaceAfterTypecast.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/SuppressionXpathRegressionWhitespaceAfterTypecast.java deleted file mode 100644 index c0c9c1f6ba3..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespaceafter/SuppressionXpathRegressionWhitespaceAfterTypecast.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.whitespaceafter; - -public class SuppressionXpathRegressionWhitespaceAfterTypecast { - Object bad = (Object)null; //warn - Object good = (Object) null; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/InputXpathWhitespaceAroundNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/InputXpathWhitespaceAroundNotFollowed.java new file mode 100644 index 00000000000..fce10267c88 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/InputXpathWhitespaceAroundNotFollowed.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.whitespacearound; + +public class InputXpathWhitespaceAroundNotFollowed { + int bad =0; //warn + int good = 0; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/InputXpathWhitespaceAroundNotPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/InputXpathWhitespaceAroundNotPreceded.java new file mode 100644 index 00000000000..118542f9633 --- /dev/null +++ b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/InputXpathWhitespaceAroundNotPreceded.java @@ -0,0 +1,6 @@ +package org.checkstyle.suppressionxpathfilter.whitespacearound; + +public class InputXpathWhitespaceAroundNotPreceded { + int bad= 0; //warn + int good = 0; +} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/SuppressionXpathRegressionWhitespaceAroundNotFollowed.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/SuppressionXpathRegressionWhitespaceAroundNotFollowed.java deleted file mode 100644 index fa04b7a906e..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/SuppressionXpathRegressionWhitespaceAroundNotFollowed.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.whitespacearound; - -public class SuppressionXpathRegressionWhitespaceAroundNotFollowed { - int bad =0; //warn - int good = 0; -} diff --git a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/SuppressionXpathRegressionWhitespaceAroundNotPreceded.java b/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/SuppressionXpathRegressionWhitespaceAroundNotPreceded.java deleted file mode 100644 index 358f5af48b8..00000000000 --- a/src/it/resources/org/checkstyle/suppressionxpathfilter/whitespacearound/SuppressionXpathRegressionWhitespaceAroundNotPreceded.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.checkstyle.suppressionxpathfilter.whitespacearound; - -public class SuppressionXpathRegressionWhitespaceAroundNotPreceded { - int bad= 0; //warn - int good = 0; -} diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.java b/src/main/java/com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.java index e7f95250bb0..3f5b4834ebc 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/AbstractAutomaticBean.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -29,6 +29,8 @@ import java.util.StringTokenizer; import java.util.regex.Pattern; +import javax.annotation.Nullable; + import org.apache.commons.beanutils.BeanUtilsBean; import org.apache.commons.beanutils.ConversionException; import org.apache.commons.beanutils.ConvertUtilsBean; @@ -168,6 +170,7 @@ private static void registerIntegralTypes(ConvertUtilsBean cub) { */ private static void registerCustomTypes(ConvertUtilsBean cub) { cub.register(new PatternConverter(), Pattern.class); + cub.register(new PatternArrayConverter(), Pattern[].class); cub.register(new SeverityLevelConverter(), SeverityLevel.class); cub.register(new ScopeConverter(), Scope.class); cub.register(new UriConverter(), URI.class); @@ -311,6 +314,25 @@ public Object convert(Class type, Object value) { } + /** A converter that converts a comma-separated string into an array of patterns. */ + private static final class PatternArrayConverter implements Converter { + + @SuppressWarnings("unchecked") + @Override + public Object convert(Class type, Object value) { + final StringTokenizer tokenizer = new StringTokenizer( + value.toString(), COMMA_SEPARATOR); + final List result = new ArrayList<>(); + + while (tokenizer.hasMoreTokens()) { + final String token = tokenizer.nextToken(); + result.add(CommonUtil.createPattern(token.trim())); + } + + return result.toArray(new Pattern[0]); + } + } + /** A converter that converts strings to severity level. */ private static final class SeverityLevelConverter implements Converter { @@ -338,6 +360,7 @@ private static final class UriConverter implements Converter { @SuppressWarnings("unchecked") @Override + @Nullable public Object convert(Class type, Object value) { final String url = value.toString(); URI result = null; diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/AstTreeStringPrinter.java b/src/main/java/com/puppycrawl/tools/checkstyle/AstTreeStringPrinter.java index 87758b356e2..d0d2da45b0e 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/AstTreeStringPrinter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/AstTreeStringPrinter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter.java b/src/main/java/com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter.java index c138512d5ee..606311a189e 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -55,9 +55,7 @@ public String format(AuditEvent event) { severityLevelName = severityLevel.getName().toUpperCase(Locale.US); } - // Avoid StringBuffer.expandCapacity - final int bufLen = calculateBufferLength(event, severityLevelName.length()); - final StringBuilder sb = new StringBuilder(bufLen); + final StringBuilder sb = initStringBuilderWithOptimalBuffer(event, severityLevelName); sb.append('[').append(severityLevelName).append("] ") .append(fileName).append(':').append(event.getLine()); @@ -78,18 +76,21 @@ public String format(AuditEvent event) { } /** - * Returns the length of the buffer for StringBuilder. + * Returns the StringBuilder that should avoid StringBuffer.expandCapacity. * bufferLength = fileNameLength + messageLength + lengthOfAllSeparators + * + severityNameLength + checkNameLength. + * Method is excluded from pitest validation. * * @param event audit event. - * @param severityLevelNameLength length of severity level name. - * @return the length of the buffer for StringBuilder. + * @param severityLevelName severity level name. + * @return optimal StringBuilder. */ - private static int calculateBufferLength(AuditEvent event, int severityLevelNameLength) { - return LENGTH_OF_ALL_SEPARATORS + event.getFileName().length() - + event.getMessage().length() + severityLevelNameLength + private static StringBuilder initStringBuilderWithOptimalBuffer(AuditEvent event, + String severityLevelName) { + final int bufLen = LENGTH_OF_ALL_SEPARATORS + event.getFileName().length() + + event.getMessage().length() + severityLevelName.length() + getCheckShortName(event).length(); + return new StringBuilder(bufLen); } /** diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/AuditEventFormatter.java b/src/main/java/com/puppycrawl/tools/checkstyle/AuditEventFormatter.java index 7526357536d..1dc2fbabfae 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/AuditEventFormatter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/AuditEventFormatter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/Checker.java b/src/main/java/com/puppycrawl/tools/checkstyle/Checker.java index 6676f5c0952..6dd3473aee8 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/Checker.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/Checker.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -108,7 +108,7 @@ public class Checker extends AbstractAutomaticBean implements MessageDispatcher, private Context childContext; /** The file extensions that are accepted. */ - private String[] fileExtensions = CommonUtil.EMPTY_STRING_ARRAY; + private String[] fileExtensions; /** * The severity level of any violations found by submodules. @@ -222,7 +222,7 @@ public int process(List files) throws CheckstyleException { final List targetFiles = files.stream() .filter(file -> CommonUtil.matchesFileExtension(file, fileExtensions)) - .collect(Collectors.toList()); + .collect(Collectors.toUnmodifiableList()); processFiles(targetFiles); // Finish up @@ -247,9 +247,11 @@ public int process(List files) throws CheckstyleException { private Set getExternalResourceLocations() { return Stream.concat(fileSetChecks.stream(), filters.getFilters().stream()) .filter(ExternalResourceHolder.class::isInstance) - .map(ExternalResourceHolder.class::cast) - .flatMap(resource -> resource.getExternalResourceLocations().stream()) - .collect(Collectors.toSet()); + .flatMap(resource -> { + return ((ExternalResourceHolder) resource) + .getExternalResourceLocations().stream(); + }) + .collect(Collectors.toUnmodifiableSet()); } /** Notify all listeners about the audit start. */ @@ -282,6 +284,7 @@ private void fireAuditFinished() { private void processFiles(List files) throws CheckstyleException { for (final File file : files) { String fileName = null; + final String filePath = file.getPath(); try { fileName = file.getAbsolutePath(); final long timestamp = file.lastModified(); @@ -305,8 +308,8 @@ private void processFiles(List files) throws CheckstyleException { } // We need to catch all exceptions to put a reason failure (file name) in exception - throw new CheckstyleException("Exception was thrown while processing " - + file.getPath(), ex); + throw new CheckstyleException( + getLocalizedMessage("Checker.processFilesException", filePath), ex); } catch (Error error) { if (fileName != null && cacheFile != null) { @@ -314,7 +317,7 @@ private void processFiles(List files) throws CheckstyleException { } // We need to catch all errors to put a reason failure (file name) in error - throw new Error("Error was thrown while processing " + file.getPath(), error); + throw new Error("Error was thrown while processing " + filePath, error); } } } @@ -372,7 +375,7 @@ private SortedSet processFile(File file) throws CheckstyleException { * @return {@code true} if the file is accepted. */ private boolean acceptFileStarted(String fileName) { - final String stripped = CommonUtil.relativizeAndNormalizePath(basedir, fileName); + final String stripped = CommonUtil.relativizePath(basedir, fileName); return beforeExecutionFileFilters.accept(stripped); } @@ -384,7 +387,7 @@ private boolean acceptFileStarted(String fileName) { */ @Override public void fireFileStarted(String fileName) { - final String stripped = CommonUtil.relativizeAndNormalizePath(basedir, fileName); + final String stripped = CommonUtil.relativizePath(basedir, fileName); final AuditEvent event = new AuditEvent(this, stripped); for (final AuditListener listener : listeners) { listener.fileStarted(event); @@ -399,7 +402,7 @@ public void fireFileStarted(String fileName) { */ @Override public void fireErrors(String fileName, SortedSet errors) { - final String stripped = CommonUtil.relativizeAndNormalizePath(basedir, fileName); + final String stripped = CommonUtil.relativizePath(basedir, fileName); boolean hasNonFilteredViolations = false; for (final Violation element : errors) { final AuditEvent event = new AuditEvent(this, stripped, element); @@ -423,7 +426,7 @@ public void fireErrors(String fileName, SortedSet errors) { */ @Override public void fireFileFinished(String fileName) { - final String stripped = CommonUtil.relativizeAndNormalizePath(basedir, fileName); + final String stripped = CommonUtil.relativizePath(basedir, fileName); final AuditEvent event = new AuditEvent(this, stripped); for (final AuditListener listener : listeners) { listener.fileFinished(event); @@ -437,9 +440,7 @@ protected void finishLocalSetup() throws CheckstyleException { if (moduleFactory == null) { if (moduleClassLoader == null) { - throw new CheckstyleException( - "if no custom moduleFactory is set, " - + "moduleClassLoader must be specified"); + throw new CheckstyleException(getLocalizedMessage("Checker.finishLocalSetup")); } final Set packageNames = PackageNamesLoader @@ -479,8 +480,8 @@ protected void setupChild(Configuration childConf) } } catch (final CheckstyleException ex) { - throw new CheckstyleException("cannot initialize module " + name - + " - " + ex.getMessage(), ex); + throw new CheckstyleException( + getLocalizedMessage("Checker.setupChildModule", name, ex.getMessage()), ex); } if (child instanceof FileSetCheck) { final FileSetCheck fsc = (FileSetCheck) child; @@ -500,8 +501,8 @@ else if (child instanceof AuditListener) { addListener(listener); } else { - throw new CheckstyleException(name - + " is not allowed as a child in Checker"); + throw new CheckstyleException( + getLocalizedMessage("Checker.setupChildNotAllowed", name)); } } @@ -547,10 +548,7 @@ public final void addListener(AuditListener listener) { * initial '.' character of an extension is automatically added. */ public final void setFileExtensions(String... extensions) { - if (extensions == null) { - fileExtensions = null; - } - else { + if (extensions != null) { fileExtensions = new String[extensions.length]; for (int i = 0; i < extensions.length; i++) { final String extension = extensions[i]; @@ -616,8 +614,8 @@ public final void setModuleClassLoader(ClassLoader moduleClassLoader) { public void setCharset(String charset) throws UnsupportedEncodingException { if (!Charset.isSupported(charset)) { - final String message = "unsupported charset: '" + charset + "'"; - throw new UnsupportedEncodingException(message); + throw new UnsupportedEncodingException( + getLocalizedMessage("Checker.setCharset", charset)); } this.charset = charset; } @@ -649,4 +647,19 @@ public void clearCache() { } } + /** + * Extracts localized messages from properties files. + * + * @param messageKey the key pointing to localized message in respective properties file. + * @param args the arguments of message in respective properties file. + * @return a string containing extracted localized message + */ + private String getLocalizedMessage(String messageKey, Object... args) { + final LocalizedMessage localizedMessage = new LocalizedMessage( + Definitions.CHECKSTYLE_BUNDLE, getClass(), + messageKey, args); + + return localizedMessage.getMessage(); + } + } diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/CheckstyleParserErrorStrategy.java b/src/main/java/com/puppycrawl/tools/checkstyle/CheckstyleParserErrorStrategy.java index d596b43a77d..075ba386b16 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/CheckstyleParserErrorStrategy.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/CheckstyleParserErrorStrategy.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java b/src/main/java/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java index d2fee5107c7..d274edf5c86 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -20,7 +20,6 @@ package com.puppycrawl.tools.checkstyle; import java.io.IOException; -import java.net.URI; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; @@ -260,10 +259,7 @@ public static Configuration loadConfiguration(String config, IgnoredModulesOptions ignoredModulesOptions, ThreadModeSettings threadModeSettings) throws CheckstyleException { - // figure out if this is a File or a URL - final URI uri = CommonUtil.getUriByFilename(config); - final InputSource source = new InputSource(uri.toString()); - return loadConfiguration(source, overridePropsResolver, + return loadConfiguration(CommonUtil.sourceFromFilename(config), overridePropsResolver, ignoredModulesOptions, threadModeSettings); } diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/DefaultConfiguration.java b/src/main/java/com/puppycrawl/tools/checkstyle/DefaultConfiguration.java index 514984b9b19..a68e2f46aa6 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/DefaultConfiguration.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/DefaultConfiguration.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/DefaultContext.java b/src/main/java/com/puppycrawl/tools/checkstyle/DefaultContext.java index c1e9242f36b..e5024929567 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/DefaultContext.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/DefaultContext.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/DefaultLogger.java b/src/main/java/com/puppycrawl/tools/checkstyle/DefaultLogger.java index a18ced254a0..041055ae298 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/DefaultLogger.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/DefaultLogger.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/Definitions.java b/src/main/java/com/puppycrawl/tools/checkstyle/Definitions.java index 28766aa0152..58f3c19dfd6 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/Definitions.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/Definitions.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -32,7 +32,8 @@ public final class Definitions { /** Name of modules which are not checks, but are internal modules. */ public static final Set INTERNAL_MODULES = Set.of( - "com.puppycrawl.tools.checkstyle.meta.JavadocMetadataScraper"); + "com.puppycrawl.tools.checkstyle.meta.JavadocMetadataScraper", + "com.puppycrawl.tools.checkstyle.site.ClassAndPropertiesSettersJavadocScraper"); /** * Do no allow {@code Definitions} instances to be created. diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java b/src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java index 3064b9cc613..474e7380ce8 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -47,7 +47,7 @@ public final class DetailAstImpl implements DetailAST { private int columnNo = NOT_INITIALIZED; /** Number of children. */ - private int childCount = NOT_INITIALIZED; + private int childCount; /** The parent token. */ private DetailAstImpl parent; /** Previous sibling. */ @@ -144,13 +144,8 @@ public void addNextSibling(DetailAST ast) { // parent is set in setNextSibling final DetailAstImpl sibling = nextSibling; final DetailAstImpl astImpl = (DetailAstImpl) ast; + astImpl.setNextSibling(sibling); - if (sibling != null) { - astImpl.setNextSibling(sibling); - sibling.previousSibling = astImpl; - } - - astImpl.previousSibling = this; setNextSibling(astImpl); } } @@ -166,7 +161,6 @@ public void addChild(DetailAST child) { if (child != null) { final DetailAstImpl astImpl = (DetailAstImpl) child; astImpl.setParent(this); - astImpl.previousSibling = (DetailAstImpl) getLastChild(); } DetailAST temp = firstChild; if (temp == null) { diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/DetailNodeTreeStringPrinter.java b/src/main/java/com/puppycrawl/tools/checkstyle/DetailNodeTreeStringPrinter.java index 61c59b61361..ccd5e5428a9 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/DetailNodeTreeStringPrinter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/DetailNodeTreeStringPrinter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/FileStatefulCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/FileStatefulCheck.java index e7fee377422..f64e45dc659 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/FileStatefulCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/FileStatefulCheck.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/GlobalStatefulCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/GlobalStatefulCheck.java index 566cd385ca7..225549c7cc9 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/GlobalStatefulCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/GlobalStatefulCheck.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java b/src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java index 7e39fd4caee..cdbf62ab677 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/JavaAstVisitor.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -23,6 +23,7 @@ import java.util.Collections; import java.util.Iterator; import java.util.List; +import java.util.Objects; import java.util.Optional; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; @@ -103,6 +104,9 @@ public final class JavaAstVisitor extends JavaLanguageParserBaseVisitor !(child instanceof JavaLanguageParser.ArrayDeclaratorContext)) - .collect(Collectors.toList())); + .collect(Collectors.toUnmodifiableList())); // We add C style array declarator brackets to TYPE ast final DetailAstImpl typeAst = (DetailAstImpl) methodDef.findFirstToken(TokenTypes.TYPE); @@ -483,7 +487,7 @@ public DetailAstImpl visitInterfaceMethodDeclaration( final List children = ctx.children .stream() .filter(child -> !(child instanceof JavaLanguageParser.ArrayDeclaratorContext)) - .collect(Collectors.toList()); + .collect(Collectors.toUnmodifiableList()); processChildren(methodDef, children); // We add C style array declarator brackets to TYPE ast @@ -834,7 +838,7 @@ public DetailAstImpl visitAnnotationMethodRest( // Process all children except C style array declarators processChildren(annotationFieldDef, ctx.children.stream() .filter(child -> !(child instanceof JavaLanguageParser.ArrayDeclaratorContext)) - .collect(Collectors.toList())); + .collect(Collectors.toUnmodifiableList())); // We add C style array declarator brackets to TYPE ast final DetailAstImpl typeAst = @@ -881,7 +885,7 @@ public DetailAstImpl visitPrimaryCtorCall(JavaLanguageParser.PrimaryCtorCallCont // filter 'LITERAL_SUPER' processChildren(primaryCtorCall, ctx.children.stream() .filter(child -> !child.equals(ctx.LITERAL_SUPER())) - .collect(Collectors.toList())); + .collect(Collectors.toUnmodifiableList())); return primaryCtorCall; } @@ -1119,7 +1123,7 @@ public DetailAstImpl visitCatchParameter(JavaLanguageParser.CatchParameterContex // filter mods processChildren(catchParameterDef, ctx.children.stream() .filter(child -> !(child instanceof JavaLanguageParser.VariableModifierContext)) - .collect(Collectors.toList())); + .collect(Collectors.toUnmodifiableList())); return catchParameterDef; } @@ -1533,6 +1537,14 @@ public DetailAstImpl visitPrimaryExp(JavaLanguageParser.PrimaryExpContext ctx) { return flattenedTree(ctx); } + @Override + public DetailAstImpl visitTemplateExp(JavaLanguageParser.TemplateExpContext ctx) { + final DetailAstImpl dot = create(ctx.DOT()); + dot.addChild(visit(ctx.expr())); + dot.addChild(visit(ctx.templateArgument())); + return dot; + } + @Override public DetailAstImpl visitPostfix(JavaLanguageParser.PostfixContext ctx) { final DetailAstImpl postfix; @@ -1552,7 +1564,7 @@ public DetailAstImpl visitMethodRef(JavaLanguageParser.MethodRefContext ctx) { (Token) ctx.DOUBLE_COLON().getPayload()); final List children = ctx.children.stream() .filter(child -> !child.equals(ctx.DOUBLE_COLON())) - .collect(Collectors.toList()); + .collect(Collectors.toUnmodifiableList()); processChildren(doubleColon, children); return doubleColon; } @@ -1562,7 +1574,7 @@ public DetailAstImpl visitTernaryOp(JavaLanguageParser.TernaryOpContext ctx) { final DetailAstImpl root = create(ctx.QUESTION()); processChildren(root, ctx.children.stream() .filter(child -> !child.equals(ctx.QUESTION())) - .collect(Collectors.toList())); + .collect(Collectors.toUnmodifiableList())); return root; } @@ -1742,6 +1754,137 @@ public DetailAstImpl visitPrimitivePrimary(JavaLanguageParser.PrimitivePrimaryCo return dot; } + @Override + public DetailAstImpl visitTemplateArgument(JavaLanguageParser.TemplateArgumentContext ctx) { + return Objects.requireNonNullElseGet(visit(ctx.template()), + () -> buildSimpleStringTemplateArgument(ctx)); + } + + /** + * Builds a simple string template argument AST, which basically means that we + * transform a string literal into a string template AST because it is a + * string template argument. + * + * @param ctx the TemplateArgumentContext to build AST from + * @return DetailAstImpl of string template argument + */ + private static DetailAstImpl buildSimpleStringTemplateArgument( + JavaLanguageParser.TemplateArgumentContext ctx) { + final int startColumn = ctx.start.getCharPositionInLine(); + final int endColumn = startColumn + ctx.getText().length() - 1; + final int lineNumber = ctx.start.getLine(); + + final DetailAstImpl templateArgument = createImaginary( + TokenTypes.STRING_TEMPLATE_BEGIN, QUOTE, + lineNumber, startColumn + ); + + final int quoteLength = QUOTE.length(); + final int tokenTextLength = ctx.getText().length(); + + final String actualContent = ctx.getText() + .substring(quoteLength, tokenTextLength - quoteLength); + + final DetailAstImpl content = createImaginary( + TokenTypes.STRING_TEMPLATE_CONTENT, actualContent, + lineNumber, startColumn + quoteLength + ); + templateArgument.addChild(content); + + final DetailAstImpl end = createImaginary( + TokenTypes.STRING_TEMPLATE_END, QUOTE, + lineNumber, endColumn + ); + templateArgument.addChild(end); + + return templateArgument; + } + + @Override + public DetailAstImpl visitStringTemplate(JavaLanguageParser.StringTemplateContext ctx) { + final DetailAstImpl stringTemplateBegin = visit(ctx.stringTemplateBegin()); + + final Optional expression = Optional.ofNullable(ctx.expr()) + .map(this::visit); + + if (expression.isPresent()) { + final DetailAstImpl imaginaryExpression = + createImaginary(TokenTypes.EMBEDDED_EXPRESSION); + imaginaryExpression.addChild(expression.orElseThrow()); + stringTemplateBegin.addChild(imaginaryExpression); + } + + ctx.stringTemplateMiddle().stream() + .map(this::buildStringTemplateMiddle) + .forEach(stringTemplateBegin::addChild); + + final DetailAstImpl stringTemplateEnd = visit(ctx.stringTemplateEnd()); + stringTemplateBegin.addChild(stringTemplateEnd); + return stringTemplateBegin; + } + + /** + * Builds a string template middle AST. + * + * @param ctx the StringTemplateMiddleContext to build AST from + * @return DetailAstImpl of string template middle + */ + private DetailAstImpl buildStringTemplateMiddle( + JavaLanguageParser.StringTemplateMiddleContext ctx) { + final DetailAstImpl stringTemplateMiddle = + visit(ctx.stringTemplateMid()); + + final Optional expression = Optional.ofNullable(ctx.expr()) + .map(this::visit); + + if (expression.isPresent()) { + final DetailAstImpl imaginaryExpression = + createImaginary(TokenTypes.EMBEDDED_EXPRESSION); + imaginaryExpression.addChild(expression.orElseThrow()); + addLastSibling(stringTemplateMiddle, imaginaryExpression); + } + + return stringTemplateMiddle; + } + + @Override + public DetailAstImpl visitStringTemplateBegin( + JavaLanguageParser.StringTemplateBeginContext ctx) { + final DetailAstImpl stringTemplateBegin = + create(ctx.STRING_TEMPLATE_BEGIN()); + final Optional stringTemplateContent = + Optional.ofNullable(ctx.STRING_TEMPLATE_CONTENT()) + .map(this::create); + stringTemplateContent.ifPresent(stringTemplateBegin::addChild); + final DetailAstImpl embeddedExpressionBegin = create(ctx.EMBEDDED_EXPRESSION_BEGIN()); + stringTemplateBegin.addChild(embeddedExpressionBegin); + return stringTemplateBegin; + } + + @Override + public DetailAstImpl visitStringTemplateMid(JavaLanguageParser.StringTemplateMidContext ctx) { + final DetailAstImpl embeddedExpressionEnd = create(ctx.EMBEDDED_EXPRESSION_END()); + final Optional stringTemplateContent = + Optional.ofNullable(ctx.STRING_TEMPLATE_CONTENT()) + .map(this::create); + stringTemplateContent.ifPresent(self -> addLastSibling(embeddedExpressionEnd, self)); + final DetailAstImpl embeddedExpressionBegin = create(ctx.EMBEDDED_EXPRESSION_BEGIN()); + addLastSibling(embeddedExpressionEnd, embeddedExpressionBegin); + return embeddedExpressionEnd; + } + + @Override + public DetailAstImpl visitStringTemplateEnd(JavaLanguageParser.StringTemplateEndContext ctx) { + final DetailAstImpl embeddedExpressionEnd = create(ctx.EMBEDDED_EXPRESSION_END()); + final Optional stringTemplateContent = + Optional.ofNullable(ctx.STRING_TEMPLATE_CONTENT()) + .map(this::create); + stringTemplateContent.ifPresent(self -> addLastSibling(embeddedExpressionEnd, self)); + final DetailAstImpl stringTemplateEnd = create(ctx.STRING_TEMPLATE_END()); + addLastSibling(embeddedExpressionEnd, stringTemplateEnd); + return embeddedExpressionEnd; + } + @Override public DetailAstImpl visitCreator(JavaLanguageParser.CreatorContext ctx) { return flattenedTree(ctx); @@ -2012,8 +2155,8 @@ public DetailAstImpl visitRecordPatternDef(JavaLanguageParser.RecordPatternDefCo } @Override - public DetailAstImpl visitTypePattern( - JavaLanguageParser.TypePatternContext ctx) { + public DetailAstImpl visitTypePatternDef( + JavaLanguageParser.TypePatternDefContext ctx) { final DetailAstImpl type = visit(ctx.type); final DetailAstImpl patternVariableDef = createImaginary(TokenTypes.PATTERN_VARIABLE_DEF); patternVariableDef.addChild(createModifiers(ctx.mods)); @@ -2022,6 +2165,11 @@ public DetailAstImpl visitTypePattern( return patternVariableDef; } + @Override + public DetailAstImpl visitUnnamedPatternDef(JavaLanguageParser.UnnamedPatternDefContext ctx) { + return create(TokenTypes.UNNAMED_PATTERN_DEF, ctx.start); + } + @Override public DetailAstImpl visitRecordPattern(JavaLanguageParser.RecordPatternContext ctx) { final DetailAstImpl recordPattern = createImaginary(TokenTypes.RECORD_PATTERN_DEF); @@ -2094,7 +2242,7 @@ private void processChildren(DetailAstImpl parent, List chi * should be used for imaginary nodes only, i.e. 'OBJBLOCK -> OBJBLOCK', * where the text on the RHS matches the text on the LHS. * - * @param tokenType the token type of this DetailAstImpl + * @param tokenType the token type of this DetailAstImpl * @return new DetailAstImpl of given type */ private static DetailAstImpl createImaginary(int tokenType) { @@ -2104,6 +2252,39 @@ private static DetailAstImpl createImaginary(int tokenType) { return detailAst; } + /** + * Create a DetailAstImpl from a given token type and text. This method + * should be used for imaginary nodes only, i.e. 'OBJBLOCK -> OBJBLOCK', + * where the text on the RHS matches the text on the LHS. + * + * @param tokenType the token type of this DetailAstImpl + * @param text the text of this DetailAstImpl + * @return new DetailAstImpl of given type + */ + private static DetailAstImpl createImaginary(int tokenType, String text) { + final DetailAstImpl imaginary = new DetailAstImpl(); + imaginary.setType(tokenType); + imaginary.setText(text); + return imaginary; + } + + /** + * Creates an imaginary DetailAstImpl with the given token details. + * + * @param tokenType the token type of this DetailAstImpl + * @param text the text of this DetailAstImpl + * @param lineNumber the line number of this DetailAstImpl + * @param columnNumber the column number of this DetailAstImpl + * @return imaginary DetailAstImpl from given details + */ + private static DetailAstImpl createImaginary( + int tokenType, String text, int lineNumber, int columnNumber) { + final DetailAstImpl imaginary = createImaginary(tokenType, text); + imaginary.setLineNo(lineNumber); + imaginary.setColumnNo(columnNumber); + return imaginary; + } + /** * Create a DetailAstImpl from a given token and token type. This method * should be used for literal nodes only, i.e. 'PACKAGE_DEF -> package'. diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/JavaParser.java b/src/main/java/com/puppycrawl/tools/checkstyle/JavaParser.java index adfdc335101..e56c35d8c9e 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/JavaParser.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/JavaParser.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,6 +40,7 @@ import com.puppycrawl.tools.checkstyle.api.FileContents; import com.puppycrawl.tools.checkstyle.api.FileText; import com.puppycrawl.tools.checkstyle.api.TokenTypes; +import com.puppycrawl.tools.checkstyle.grammar.CompositeLexerContextCache; import com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageLexer; import com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser; import com.puppycrawl.tools.checkstyle.utils.ParserUtil; @@ -84,8 +85,9 @@ public static DetailAST parse(FileContents contents) final String fullText = contents.getText().getFullText().toString(); final CharStream codePointCharStream = CharStreams.fromString(fullText); final JavaLanguageLexer lexer = new JavaLanguageLexer(codePointCharStream, true); + final CompositeLexerContextCache contextCache = new CompositeLexerContextCache(lexer); lexer.setCommentListener(contents); - lexer.removeErrorListeners(); + lexer.setContextCache(contextCache); final CommonTokenStream tokenStream = new CommonTokenStream(lexer); final JavaLanguageParser parser = @@ -137,7 +139,7 @@ public static DetailAST parseFileText(FileText text, Options options) */ public static DetailAST parseFile(File file, Options options) throws IOException, CheckstyleException { - final FileText text = new FileText(file.getAbsoluteFile(), + final FileText text = new FileText(file, StandardCharsets.UTF_8.name()); return parseFileText(text, options); } diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.java b/src/main/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.java index 3e42140870f..012cef704cc 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/JavadocPropertiesGenerator.java b/src/main/java/com/puppycrawl/tools/checkstyle/JavadocPropertiesGenerator.java index 4600bce9a4a..bda00e6f50d 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/JavadocPropertiesGenerator.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/JavadocPropertiesGenerator.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -63,9 +63,6 @@ public final class JavadocPropertiesGenerator { private static final Pattern END_OF_SENTENCE_PATTERN = Pattern.compile( "(([^.?!]|[.?!](?!\\s|$))*+[.?!])(\\s|$)"); - /** Max width of the usage help message for this command. */ - private static final int USAGE_HELP_WIDTH = 100; - /** * Don't create instance of this class, use the {@link #main(String[])} method instead. */ @@ -80,7 +77,7 @@ private JavadocPropertiesGenerator() { **/ public static void main(String... args) throws CheckstyleException { final CliOptions cliOptions = new CliOptions(); - final CommandLine cmd = new CommandLine(cliOptions).setUsageHelpWidth(USAGE_HELP_WIDTH); + final CommandLine cmd = new CommandLine(cliOptions); try { final ParseResult parseResult = cmd.parseArgs(args); if (parseResult.isUsageHelpRequested()) { diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/LocalizedMessage.java b/src/main/java/com/puppycrawl/tools/checkstyle/LocalizedMessage.java index 926b1ffbc70..3a21e14be6f 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/LocalizedMessage.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/LocalizedMessage.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -26,13 +26,14 @@ import java.net.URLConnection; import java.nio.charset.StandardCharsets; import java.text.MessageFormat; -import java.util.Arrays; import java.util.Locale; import java.util.MissingResourceException; import java.util.PropertyResourceBundle; import java.util.ResourceBundle; import java.util.ResourceBundle.Control; +import com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil; + /** * Represents a message that can be localised. The translations come from * message.properties files. The underlying implementation uses @@ -80,7 +81,7 @@ public LocalizedMessage(String bundle, Class sourceClass, String key, this.args = null; } else { - this.args = Arrays.copyOf(args, args.length); + this.args = UnmodifiableCollectionUtil.copyOfArray(args, args.length); } } diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/Main.java b/src/main/java/com/puppycrawl/tools/checkstyle/Main.java index ad8df04c69e..a6839e675a1 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/Main.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/Main.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -503,7 +503,7 @@ private static AuditListener createListener(OutputFormat format, Path outputLoca } /** - * Create output stream or return System.out + * Create output stream or return System.out. * * @param outputPath output location * @return output stream @@ -680,7 +680,7 @@ private static final class CliOptions { + "Argument is the line and column number (separated by a : ) in the file " + "that the suppression should be generated for. The option cannot be used " + "with other options and requires exactly one file to run on to be " - + "specified. ATTENTION: generated result will have few queries, joined " + + "specified. Note that the generated result will have few queries, joined " + "by pipe(|). Together they will match all AST nodes on " + "specified line and column. You need to choose only one and recheck " + "that it works. Usage of all of them is also ok, but might result in " @@ -723,35 +723,32 @@ private static final class CliOptions { /** Option that controls whether to print the AST of the file. */ @Option(names = {"-t", "--tree"}, - description = "Prints Abstract Syntax Tree(AST) of the checked file. The option " - + "cannot be used other options and requires exactly one file to run on " - + "to be specified.") + description = "This option is used to display the Abstract Syntax Tree (AST) " + + "without any comments of the specified file. It can only be used on " + + "a single file and cannot be combined with other options.") private boolean printAst; /** Option that controls whether to print the AST of the file including comments. */ @Option(names = {"-T", "--treeWithComments"}, - description = "Prints Abstract Syntax Tree(AST) with comment nodes " - + "of the checked file. The option cannot be used with other options " - + "and requires exactly one file to run on to be specified.") + description = "This option is used to display the Abstract Syntax Tree (AST) " + + "with comment nodes excluding Javadoc of the specified file. It can only" + + " be used on a single file and cannot be combined with other options.") private boolean printAstWithComments; /** Option that controls whether to print the parse tree of the javadoc comment. */ @Option(names = {"-j", "--javadocTree"}, - description = "Prints Parse Tree of the Javadoc comment. " - + "The file have to contain only Javadoc comment content without " - + "including '/**' and '*/' at the beginning and at the end respectively. " - + "The option cannot be used other options and requires exactly one file " - + "to run on to be specified.") + description = "This option is used to print the Parse Tree of the Javadoc comment." + + " The file has to contain only Javadoc comment content " + + "excluding '/**' and '*/' at the beginning and at the end respectively. " + + "It can only be used on a single file and cannot be combined " + + "with other options.") private boolean printJavadocTree; /** Option that controls whether to print the full AST of the file. */ @Option(names = {"-J", "--treeWithJavadoc"}, - description = "Prints Abstract Syntax Tree(AST) with Javadoc nodes " - + "and comment nodes of the checked file. Attention that line number and " - + "columns will not be the same as it is a file due to the fact that each " - + "javadoc comment is parsed separately from java file. The option cannot " - + "be used with other options and requires exactly one file to run on to " - + "be specified.") + description = "This option is used to display the Abstract Syntax Tree (AST) " + + "with Javadoc nodes of the specified file. It can only be used on a " + + "single file and cannot be combined with other options.") private boolean printTreeWithJavadoc; /** Option that controls whether to print debug info. */ diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/MetadataGeneratorLogger.java b/src/main/java/com/puppycrawl/tools/checkstyle/MetadataGeneratorLogger.java index c5855f7ae70..04b1defd256 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/MetadataGeneratorLogger.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/MetadataGeneratorLogger.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/ModuleFactory.java b/src/main/java/com/puppycrawl/tools/checkstyle/ModuleFactory.java index c8aae3e2ab5..4681ee36364 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/ModuleFactory.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/ModuleFactory.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/PackageNamesLoader.java b/src/main/java/com/puppycrawl/tools/checkstyle/PackageNamesLoader.java index 15d8f1ccf61..d0d13d6ad68 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/PackageNamesLoader.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/PackageNamesLoader.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java b/src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java index c46649e3dcf..d0cab1e2c56 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -28,6 +28,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Set; +import java.util.function.Supplier; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -187,11 +188,7 @@ public Object createModule(String name) throws CheckstyleException { instance = createFromStandardCheckSet(name); // find the name in third party map if (instance == null) { - if (thirdPartyNameToFullModuleNames == null) { - thirdPartyNameToFullModuleNames = - generateThirdPartyNameToFullModuleName(moduleClassLoader); - } - instance = createObjectFromMap(name, thirdPartyNameToFullModuleNames); + instance = createObjectFromClassPath(name); } } if (instance == null) { @@ -241,19 +238,23 @@ private Object createFromStandardCheckSet(String name) throws CheckstyleExceptio } /** - * Create object with the help of the supplied map. + * Create object with the help of the classpath. * * @param name name of module. - * @param map the supplied map. * @return instance of module if it is found in modules map and no ambiguous classes exist. * @throws CheckstyleException if the class fails to instantiate or there are ambiguous classes. */ - private Object createObjectFromMap(String name, Map> map) + private Object createObjectFromClassPath(String name) throws CheckstyleException { - final Set fullModuleNames = map.get(name); + thirdPartyNameToFullModuleNames = lazyLoad( + thirdPartyNameToFullModuleNames, + () -> generateThirdPartyNameToFullModuleName(moduleClassLoader) + ); + final Set fullModuleNames = thirdPartyNameToFullModuleNames.get(name); Object instance = null; if (fullModuleNames == null) { - final Set fullCheckModuleNames = map.get(name + CHECK_SUFFIX); + final Set fullCheckModuleNames = + thirdPartyNameToFullModuleNames.get(name + CHECK_SUFFIX); if (fullCheckModuleNames != null) { instance = createObjectFromFullModuleNames(name, fullCheckModuleNames); } @@ -388,7 +389,7 @@ private Object createModuleByTryInEachPackage(String name) throws CheckstyleExce final List possibleNames = packages.stream() .map(packageName -> packageName + PACKAGE_SEPARATOR + name) .flatMap(className -> Stream.of(className, className + CHECK_SUFFIX)) - .collect(Collectors.toList()); + .collect(Collectors.toUnmodifiableList()); Object instance = null; for (String possibleName : possibleNames) { instance = createObject(possibleName); @@ -399,6 +400,25 @@ private Object createModuleByTryInEachPackage(String name) throws CheckstyleExce return instance; } + /** + * Initialize object by supplier if object is null. + * + * @param type of object + * @param object object to initialize + * @param supplier function to initialize if object is null + * @return object as it was provided in method or initialized + */ + private static T lazyLoad(T object, Supplier supplier) { + final T result; + if (object == null) { + result = supplier.get(); + } + else { + result = object; + } + return result; + } + /** * Fill short-to-full module names map. */ @@ -475,6 +495,8 @@ private static void fillChecksFromCodingPackage() { BASE_PACKAGE + ".checks.coding.AvoidInlineConditionalsCheck"); NAME_TO_FULL_MODULE_NAME.put("AvoidNoArgumentSuperConstructorCallCheck", BASE_PACKAGE + ".checks.coding.AvoidNoArgumentSuperConstructorCallCheck"); + NAME_TO_FULL_MODULE_NAME.put("ConstructorsDeclarationGroupingCheck", + BASE_PACKAGE + ".checks.coding.ConstructorsDeclarationGroupingCheck"); NAME_TO_FULL_MODULE_NAME.put("CovariantEqualsCheck", BASE_PACKAGE + ".checks.coding.CovariantEqualsCheck"); NAME_TO_FULL_MODULE_NAME.put("DeclarationOrderCheck", diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/PropertiesExpander.java b/src/main/java/com/puppycrawl/tools/checkstyle/PropertiesExpander.java index 68828a538c1..331869e6b45 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/PropertiesExpander.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/PropertiesExpander.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -48,7 +48,8 @@ public PropertiesExpander(Properties properties) { } values = properties.stringPropertyNames() .stream() - .collect(Collectors.toMap(Function.identity(), properties::getProperty)); + .collect( + Collectors.toUnmodifiableMap(Function.identity(), properties::getProperty)); } @Override diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java b/src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java index caf685eaaea..a8d8d570ae8 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/PropertyCacheFile.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,6 +41,7 @@ import com.puppycrawl.tools.checkstyle.api.CheckstyleException; import com.puppycrawl.tools.checkstyle.api.Configuration; import com.puppycrawl.tools.checkstyle.utils.CommonUtil; +import com.puppycrawl.tools.checkstyle.utils.OsSpecificUtil; /** * This class maintains a persistent(on file-system) store of the files @@ -144,8 +145,9 @@ public void load() throws IOException { public void persist() throws IOException { final Path path = Paths.get(fileName); final Path directory = path.getParent(); + if (directory != null) { - Files.createDirectories(directory); + OsSpecificUtil.updateDirectory(directory); } try (OutputStream out = Files.newOutputStream(path)) { details.store(out, null); diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/PropertyResolver.java b/src/main/java/com/puppycrawl/tools/checkstyle/PropertyResolver.java index 0413e1a8175..eccec434e08 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/PropertyResolver.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/PropertyResolver.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/PropertyType.java b/src/main/java/com/puppycrawl/tools/checkstyle/PropertyType.java index 6d54aa86f8f..d8ed6ffa1fa 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/PropertyType.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/PropertyType.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/SarifLogger.java b/src/main/java/com/puppycrawl/tools/checkstyle/SarifLogger.java index bfa2a879f70..82e848bd21d 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/SarifLogger.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/SarifLogger.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/StatelessCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/StatelessCheck.java index 77a9e5a45d7..6eefd501de6 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/StatelessCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/StatelessCheck.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/SuppressionsStringPrinter.java b/src/main/java/com/puppycrawl/tools/checkstyle/SuppressionsStringPrinter.java index 7114eb8aeae..dbec81d96cf 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/SuppressionsStringPrinter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/SuppressionsStringPrinter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/ThreadModeSettings.java b/src/main/java/com/puppycrawl/tools/checkstyle/ThreadModeSettings.java index ec63ddb38ca..7d55c091feb 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/ThreadModeSettings.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/ThreadModeSettings.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalker.java b/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalker.java index ae9a0e64648..df4fcfd078a 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalker.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalker.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -388,9 +388,11 @@ public Set getExternalResourceLocations() { return Stream.concat(filters.stream(), Stream.concat(ordinaryChecks.stream(), commentChecks.stream())) .filter(ExternalResourceHolder.class::isInstance) - .map(ExternalResourceHolder.class::cast) - .flatMap(resource -> resource.getExternalResourceLocations().stream()) - .collect(Collectors.toSet()); + .flatMap(resource -> { + return ((ExternalResourceHolder) resource) + .getExternalResourceLocations().stream(); + }) + .collect(Collectors.toUnmodifiableSet()); } /** @@ -425,7 +427,7 @@ private static SortedSet createNewCheckSortedSet() { Comparator.comparing(check -> check.getClass().getName()) .thenComparing(AbstractCheck::getId, Comparator.nullsLast(Comparator.naturalOrder())) - .thenComparing(AbstractCheck::hashCode)); + .thenComparingInt(AbstractCheck::hashCode)); } /** diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalkerAuditEvent.java b/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalkerAuditEvent.java index c8e1fd6736f..840a10c96e0 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalkerAuditEvent.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalkerAuditEvent.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalkerFilter.java b/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalkerFilter.java index aa905ed034a..9d408aac788 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalkerFilter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/TreeWalkerFilter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java b/src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java index 926e23e2072..c6b38751195 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/XMLLogger.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/XdocsPropertyType.java b/src/main/java/com/puppycrawl/tools/checkstyle/XdocsPropertyType.java index 73897710cfa..6871826b8e5 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/XdocsPropertyType.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/XdocsPropertyType.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java b/src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java index 440bc165f51..e20ded04447 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -32,6 +32,8 @@ import org.xml.sax.XMLReader; import org.xml.sax.helpers.DefaultHandler; +import com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil; + /** * Contains the common implementation of a loader, for loading a configuration * from an XML file. @@ -65,7 +67,8 @@ public class XmlLoader */ protected XmlLoader(Map publicIdToResourceNameMap) throws SAXException, ParserConfigurationException { - this.publicIdToResourceNameMap = Map.copyOf(publicIdToResourceNameMap); + this.publicIdToResourceNameMap = + UnmodifiableCollectionUtil.copyOfMap(publicIdToResourceNameMap); parser = createXmlReader(this); } @@ -82,26 +85,16 @@ public void parseInputSource(InputSource inputSource) } @Override - public InputSource resolveEntity(String publicId, String systemId) - throws SAXException, IOException { - final String dtdResourceName; - if (publicId == null) { - dtdResourceName = null; - } - else { - dtdResourceName = publicIdToResourceNameMap.get(publicId); - } - final InputSource inputSource; - if (dtdResourceName == null) { - inputSource = super.resolveEntity(publicId, systemId); - } - else { - final ClassLoader loader = - getClass().getClassLoader(); - final InputStream dtdIs = - loader.getResourceAsStream(dtdResourceName); - - inputSource = new InputSource(dtdIs); + public InputSource resolveEntity(String publicId, String systemId) { + InputSource inputSource = null; + if (publicId != null) { + final String dtdResourceName = publicIdToResourceNameMap.get(publicId); + + if (dtdResourceName != null) { + final ClassLoader loader = getClass().getClassLoader(); + final InputStream dtdIs = loader.getResourceAsStream(dtdResourceName); + inputSource = new InputSource(dtdIs); + } } return inputSource; } diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAstFilter.java b/src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAstFilter.java index 6a9198d53e3..4b0fbae038a 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAstFilter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAstFilter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAuditListener.java b/src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAuditListener.java index aa14346dbac..43c11a51448 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAuditListener.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAuditListener.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java b/src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java index 33d75e3d368..b7a95d0ea9e 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -445,9 +445,9 @@ private Properties createOverridingProperties() { } /** - * Return the list of listeners set in this task. + * Return the array of listeners set in this task. * - * @return the list of listeners. + * @return the array of listeners. * @throws BuildException if the listeners could not be created. */ private AuditListener[] getListeners() { @@ -587,7 +587,7 @@ private List retrieveAllScannedFiles(DirectoryScanner scanner, int logInde return Arrays.stream(fileNames) .map(name -> scanner.getBasedir() + File.separator + name) .map(File::new) - .collect(Collectors.toList()); + .collect(Collectors.toUnmodifiableList()); } /** diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/ant/package-info.java b/src/main/java/com/puppycrawl/tools/checkstyle/ant/package-info.java index de5e2d6d771..49dc9bfc11a 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/ant/package-info.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/ant/package-info.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractCheck.java index fc988630918..8d8aa657f3a 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractCheck.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.java index 4a36b036b4d..cd8a44f6014 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractFileSetCheck.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -54,7 +54,7 @@ public abstract class AbstractFileSetCheck private MessageDispatcher messageDispatcher; /** - * Specify the file type extension of files to process. + * Specify the file extensions of the files to process. * Default is uninitialized as the value is inherited from the parent module. */ private String[] fileExtensions; @@ -163,7 +163,7 @@ public String[] getFileExtensions() { } /** - * Setter to specify the file type extension of files to process. + * Setter to specify the file extensions of the files to process. * * @param extensions the set of file extensions. A missing * initial '.' character of an extension is automatically added. diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractViolationReporter.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractViolationReporter.java index 6d8efe749fb..816bf5b6236 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractViolationReporter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/AbstractViolationReporter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/AuditEvent.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/AuditEvent.java index ab02ab1ecfb..c5e0f2461b2 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/AuditEvent.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/AuditEvent.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/AuditListener.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/AuditListener.java index 1a94c26d6f6..b9207d0aa98 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/AuditListener.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/AuditListener.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java index 82a340a84b7..20f34336c31 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilter.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilter.java index 50f43b9241b..bdc08ce4777 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilterSet.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilterSet.java index cbdb2e8c3b0..eef36ab215e 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilterSet.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/BeforeExecutionFileFilterSet.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/CheckstyleException.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/CheckstyleException.java index efc1ee50578..bc878b01cef 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/CheckstyleException.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/CheckstyleException.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Comment.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Comment.java index fd9eae868f1..a4cfe7a9c96 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Comment.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Comment.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Configurable.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Configurable.java index 61f256ca3fd..a1ce8818d3e 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Configurable.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Configurable.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Configuration.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Configuration.java index 5cb02308b52..83986662a62 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Configuration.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Configuration.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Context.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Context.java index 411139a00c1..44464210e02 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Context.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Context.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Contextualizable.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Contextualizable.java index ae3b8c586f6..a347889ff35 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Contextualizable.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Contextualizable.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/DetailAST.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/DetailAST.java index f23bc546b35..e803762975f 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/DetailAST.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/DetailAST.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/DetailNode.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/DetailNode.java index f821383b23e..3e143c14c5b 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/DetailNode.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/DetailNode.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/ExternalResourceHolder.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/ExternalResourceHolder.java index 0c8281269fb..c742a28af86 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/ExternalResourceHolder.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/ExternalResourceHolder.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java index c43277fb827..fdf5a57fa8e 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/FileSetCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/FileSetCheck.java index 4158f5ad58d..86ff8f345bd 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/FileSetCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/FileSetCheck.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java index 259da68789d..d1b76c64a05 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/FileText.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Filter.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Filter.java index 749eba59915..3e00cda953a 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Filter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Filter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/FilterSet.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/FilterSet.java index 98214784433..947bee0f292 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/FilterSet.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/FilterSet.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/FullIdent.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/FullIdent.java index 0a4a57c0c26..0745f5c21e8 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/FullIdent.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/FullIdent.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -74,6 +74,8 @@ public static FullIdent createFullIdent(DetailAST ast) { * * @param full the FullIdent to add to * @param ast the node to recurse from + * @noinspection TailRecursion + * @noinspectionreason TailRecursion - until issue #14814 */ private static void extractFullIdent(FullIdent full, DetailAST ast) { if (ast != null) { diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.java index 60c992bdbb4..503dad78dfc 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -43,11 +43,11 @@ public final class JavadocTokenTypes { *
{@code @return true if file exists}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[4x3] : [@return true if file exists]
-     *       |--RETURN_LITERAL[4x3] : [@return]
-     *       |--WS[4x10] : [ ]
-     *       |--DESCRIPTION[4x11] : [true if file exists]
-     *           |--TEXT[4x11] : [true if file exists]
+     * JAVADOC_TAG -> JAVADOC_TAG
+     *  |--RETURN_LITERAL -> @return
+     *  |--WS ->
+     *  `--DESCRIPTION -> DESCRIPTION
+     *      |--TEXT -> true if file exists
      * }
* * @see @@ -63,14 +63,14 @@ public final class JavadocTokenTypes { *

Such Javadoc tag can have one argument - {@link #DESCRIPTION}

* *

Example:

- *
{@code @deprecated it is deprecated method}
+ *
{@code @deprecated It is deprecated method}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[3x0] : [@deprecated it is deprecated method]
-     *   |--DEPRECATED_LITERAL[3x0] : [@deprecated]
-     *   |--WS[3x11] : [ ]
-     *   |--DESCRIPTION[3x12] : [it is deprecated method]
-     *       |--TEXT[3x12] : [it is deprecated method]
+     * JAVADOC_TAG -> JAVADOC_TAG
+     *  |--DEPRECATED_LITERAL -> @deprecated
+     *  |--WS ->
+     *  `--DESCRIPTION -> DESCRIPTION
+     *      |--TEXT -> It is deprecated method
      * }
* * @see @@ -89,11 +89,11 @@ public final class JavadocTokenTypes { *
{@code @since 3.4 RELEASE}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[3x0] : [@since 3.4 RELEASE]
-     *       |--SINCE_LITERAL[3x0] : [@since]
-     *       |--WS[3x6] : [ ]
-     *       |--DESCRIPTION[3x7] : [3.4 RELEASE]
-     *           |--TEXT[3x7] : [3.4 RELEASE]
+     * JAVADOC_TAG -> JAVADOC_TAG
+     *  |--SINCE_LITERAL -> @since
+     *  |--WS ->
+     *  `--DESCRIPTION -> DESCRIPTION
+     *      |--TEXT -> 3.4 RELEASE
      * }
* * @see @@ -109,14 +109,14 @@ public final class JavadocTokenTypes { *

Such Javadoc tag can have one argument - {@link #DESCRIPTION}

* *

Example:

- *
{@code @serialData two values of Integer type}
+ *
{@code @serialData Two values of Integer type}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[3x0] : [@serialData two values of Integer type ]
-     *       |--SERIAL_DATA_LITERAL[3x0] : [@serialData]
-     *       |--WS[3x11] : [ ]
-     *       |--DESCRIPTION[3x12] : [two values of Integer type ]
-     *           |--TEXT[3x12] : [two values of Integer type ]
+     * JAVADOC_TAG -> JAVADOC_TAG
+     *  |--SERIAL_DATA_LITERAL -> @serialData
+     *  |--WS ->
+     *  `--DESCRIPTION -> DESCRIPTION
+     *      |--TEXT -> Two values of Integer type
      * }
      * 
* @@ -141,15 +141,15 @@ public final class JavadocTokenTypes { *
{@code @serialField counter Integer objects counter}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[3x0] : [@serialField counter Integer objects counter]
-     *       |--SERIAL_FIELD_LITERAL[3x0] : [@serialField]
-     *       |--WS[3x12] : [ ]
-     *       |--FIELD_NAME[3x13] : [counter]
-     *       |--WS[3x20] : [ ]
-     *       |--FIELD_TYPE[3x21] : [Integer]
-     *       |--WS[3x28] : [ ]
-     *       |--DESCRIPTION[3x29] : [objects counter]
-     *           |--TEXT[3x29] : [objects counter]
+     * JAVADOC_TAG -> JAVADOC_TAG
+     *  |--SERIAL_FIELD_LITERAL -> @serialField
+     *  |--WS ->
+     *  |--FIELD_NAME -> counter
+     *  |--WS ->
+     *  |--FIELD_TYPE -> Integer
+     *  |--WS ->
+     *  `--DESCRIPTION -> DESCRIPTION
+     *      |--TEXT -> objects counter
      * }
* * @see @@ -169,16 +169,16 @@ public final class JavadocTokenTypes { * * *

Example:

- *
{@code @param T The bar.}
+ *
{@code @param value The parameter of method.}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[4x3] : [@param T The bar.]
-     *       |--PARAM_LITERAL[4x3] : [@param]
-     *       |--WS[4x9] : [ ]
-     *       |--PARAMETER_NAME[4x10] : [T]
-     *       |--WS[4x11] : [ ]
-     *       |--DESCRIPTION[4x12] : [The bar.]
-     *           |--TEXT[4x12] : [The bar.]
+     * JAVADOC_TAG -> JAVADOC_TAG
+     *  |--PARAM_LITERAL -> @param
+     *  |--WS ->
+     *  |--PARAMETER_NAME -> value
+     *  |--WS ->
+     *  `--DESCRIPTION -> DESCRIPTION
+     *      |--TEXT -> The parameter of method.
      * }
* * @see @@ -197,21 +197,17 @@ public final class JavadocTokenTypes { *
{@code @see org.apache.utils.Lists.Comparator#compare(Object)}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[3x0] : [@see org.apache.utils.Lists.Comparator#compare(Object)]
-     *       |--SEE_LITERAL[3x0] : [@see]
-     *       |--WS[3x4] : [ ]
-     *       |--REFERENCE[3x5] : [org.apache.utils.Lists.Comparator#compare(Object)]
-     *           |--PACKAGE_CLASS[3x5] : [org.apache.utils]
-     *           |--DOT[3x21] : [.]
-     *           |--CLASS[3x22] : [Lists]
-     *           |--DOT[3x27] : [.]
-     *           |--CLASS[3x28] : [Comparator]
-     *           |--HASH[3x38] : [#]
-     *           |--MEMBER[3x39] : [compare]
-     *           |--PARAMETERS[3x46] : [(Object)]
-     *               |--LEFT_BRACE[3x46] : [(]
-     *               |--ARGUMENT[3x47] : [Object]
-     *               |--RIGHT_BRACE[3x53] : [)]
+     *   JAVADOC_TAG -> JAVADOC_TAG
+     *    |--SEE_LITERAL -> @see
+     *    |--WS ->
+     *    |--REFERENCE -> REFERENCE
+     *        |--PACKAGE_CLASS -> org.apache.utils.Lists.Comparator
+     *        |--HASH -> #
+     *        |--MEMBER -> compare
+     *        `--PARAMETERS -> PARAMETERS
+     *            |--LEFT_BRACE -> (
+     *            |--ARGUMENT -> Object
+     *            `--RIGHT_BRACE -> )
      * }
* * @see @@ -264,11 +260,11 @@ public final class JavadocTokenTypes { *
{@code @version 1.3}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[3x0] : [@version 1.3]
-     *       |--VERSION_LITERAL[3x0] : [@version]
-     *       |--WS[3x8] : [ ]
-     *       |--DESCRIPTION[3x9] : [1.3]
-     *           |--TEXT[3x9] : [1.3]
+     *   JAVADOC_TAG -> JAVADOC_TAG
+     *    |--VERSION_LITERAL -> @version
+     *    |--WS ->
+     *    `--DESCRIPTION -> DESCRIPTION
+     *        |--TEXT -> 1.3
      * }
* * @see @@ -287,13 +283,13 @@ public final class JavadocTokenTypes { *
{@code @exception SQLException if query is not correct}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[3x0] : [@exception SQLException if query is not correct]
-     *       |--EXCEPTION_LITERAL[3x0] : [@exception]
-     *       |--WS[3x10] : [ ]
-     *       |--CLASS_NAME[3x11] : [SQLException]
-     *       |--WS[3x23] : [ ]
-     *       |--DESCRIPTION[3x24] : [if query is not correct]
-     *           |--TEXT[3x24] : [if query is not correct]
+     *   JAVADOC_TAG -> JAVADOC_TAG
+     *    |--EXCEPTION_LITERAL -> @exception
+     *    |--WS ->
+     *    |--CLASS_NAME -> SQLException
+     *    |--WS ->
+     *    `--DESCRIPTION -> DESCRIPTION
+     *        `--TEXT -> if query is not correct
      * }
* * @see @@ -337,11 +333,12 @@ public final class JavadocTokenTypes { *
{@code @author Baratali Izmailov}
* Tree: *
{@code
-     *   |--JAVADOC_TAG[3x0] : [@author Baratali Izmailov]
-     *       |--AUTHOR_LITERAL[3x0] : [@author]
-     *       |--WS[3x7] : [ ]
-     *       |--DESCRIPTION[3x8] : [Baratali Izmailov]
-     *           |--TEXT[3x8] : [Baratali Izmailov]
+     *   --JAVADOC_TAG -> JAVADOC_TAG
+     *      |--AUTHOR_LITERAL -> @author
+     *      |--WS ->
+     *      `--DESCRIPTION -> DESCRIPTION
+     *          |--TEXT -> Baratali Izmailov
+     *          |--NEWLINE -> \r\n
      * }
* * @see diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/LineColumn.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/LineColumn.java index e46eeca9d47..7ef76b50c80 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/LineColumn.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/LineColumn.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/MessageDispatcher.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/MessageDispatcher.java index f9ae36ef395..07ef0a7c32c 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/MessageDispatcher.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/MessageDispatcher.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/RootModule.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/RootModule.java index fa992a4d716..a9453d1b716 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/RootModule.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/RootModule.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Scope.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Scope.java index 9d2125ccdb1..9f6a432f05c 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Scope.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Scope.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/SeverityLevel.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/SeverityLevel.java index 80e10cd12e6..e91f521e8c5 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/SeverityLevel.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/SeverityLevel.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/SeverityLevelCounter.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/SeverityLevelCounter.java index bc3e9e5c358..790cb013573 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/SeverityLevelCounter.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/SeverityLevelCounter.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/TextBlock.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/TextBlock.java index 2a28a409af9..95fbf2c071e 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/TextBlock.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/TextBlock.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java index e91c987eb74..2c499776b90 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -37,7 +37,7 @@ public final class TokenTypes { * This is the root node for the source file. It's children * are an optional package definition, zero or more import statements, * and zero or more type declarations. - *

For example:

+ *

For example:

*
      * import java.util.List;
      *
@@ -681,23 +681,18 @@ public final class TokenTypes {
      * 
*

parses as:

*
-     * +--PARAMETERS
-     *     |
-     *     +--PARAMETER_DEF
-     *         |
-     *         +--MODIFIERS
-     *         +--TYPE
-     *             |
-     *             +--LITERAL_INT (int)
-     *         +--IDENT (start)
-     *     +--COMMA (,)
-     *     +--PARAMETER_DEF
-     *         |
-     *         +--MODIFIERS
-     *         +--TYPE
-     *             |
-     *             +--LITERAL_INT (int)
-     *         +--IDENT (end)
+     * PARAMETERS -> PARAMETERS
+     *  |--PARAMETER_DEF -> PARAMETER_DEF
+     *  |   |--MODIFIERS -> MODIFIERS
+     *  |   |--TYPE -> TYPE
+     *  |   |   `--LITERAL_INT -> int
+     *  |   `--IDENT -> start
+     *  |--COMMA -> ,
+     *  `--PARAMETER_DEF -> PARAMETER_DEF
+     *      |--MODIFIERS -> MODIFIERS
+     *      |--TYPE -> TYPE
+     *      |   `--LITERAL_INT -> int
+     *      `--IDENT -> end
      * 
* * @see #PARAMETER_DEF @@ -4288,119 +4283,115 @@ public final class TokenTypes { *

For example:

* *
-     * new ArrayList(50)
+     * List<String> l = new ArrayList<String>();
      * 
* *

parses as:

*
-     * LITERAL_NEW -> new
-     *  |--IDENT -> ArrayList
-     *  |--TYPE_ARGUMENTS -> TYPE_ARGUMENTS
-     *  |   |--GENERIC_START -> <
-     *  |   `--GENERIC_END -> >
-     *  |--LPAREN -> (
-     *  |--ELIST -> ELIST
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   |--IDENT -> List
+     *  |   `--TYPE_ARGUMENTS -> TYPE_ARGUMENTS
+     *  |       |--GENERIC_START -> <
+     *  |       |--TYPE_ARGUMENT -> TYPE_ARGUMENT
+     *  |       |   `--IDENT -> String
+     *  |       `--GENERIC_END -> >
+     *  |--IDENT -> l
+     *  |--ASSIGN -> =
      *  |   `--EXPR -> EXPR
-     *  |       `--NUM_INT -> 50
-     *  `--RPAREN -> )
+     *  |       `--LITERAL_NEW -> new
+     *  |           |--IDENT -> ArrayList
+     *  |           |--TYPE_ARGUMENTS -> TYPE_ARGUMENTS
+     *  |           |   |--GENERIC_START -> <
+     *  |           |   |--TYPE_ARGUMENT -> TYPE_ARGUMENT
+     *  |           |   |   `--IDENT -> String
+     *  |           |   `--GENERIC_END -> >
+     *  |           |--LPAREN -> (
+     *  |           |--ELIST -> ELIST
+     *  |           `--RPAREN -> )
+     *  `--SEMI -> ;
      * 
* *

For example:

*
-     * new float[]
-     *   {
-     *     3.0f,
-     *     4.0f
-     *   };
+     * String[] strings = new String[3];
      * 
* *

parses as:

*
-     * +--LITERAL_NEW (new)
-     *     |
-     *     +--LITERAL_FLOAT (float)
-     *     +--ARRAY_DECLARATOR ([)
-     *     +--ARRAY_INIT ({)
-     *         |
-     *         +--EXPR
-     *             |
-     *             +--NUM_FLOAT (3.0f)
-     *         +--COMMA (,)
-     *         +--EXPR
-     *             |
-     *             +--NUM_FLOAT (4.0f)
-     *         +--RCURLY (})
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   |--IDENT -> String
+     *  |   `--ARRAY_DECLARATOR -> [
+     *  |       `--RBRACK -> ]
+     *  |--IDENT -> strings
+     *  |--ASSIGN -> =
+     *  |   `--EXPR -> EXPR
+     *  |       `--LITERAL_NEW -> new
+     *  |           |--IDENT -> String
+     *  |           `--ARRAY_DECLARATOR -> [
+     *  |               |--EXPR -> EXPR
+     *  |               |   `--NUM_INT -> 3
+     *  |               `--RBRACK -> ]
+     *  `--SEMI -> ;
      * 
* *

For example:

*
-     * new FilenameFilter()
-     * {
-     *   public boolean accept(File dir, String name)
-     *   {
-     *     return name.endsWith(".java");
-     *   }
-     * }
+     * Supplier<Integer> s = new Supplier<>() {
+     *     @Override
+     *     public Integer get() {
+     *         return 42;
+     *     }
+     * };
      * 
* *

parses as:

*
-     * +--LITERAL_NEW (new)
-     *     |
-     *     +--IDENT (FilenameFilter)
-     *     +--LPAREN (()
-     *     +--ELIST
-     *     +--RPAREN ())
-     *     +--OBJBLOCK
-     *         |
-     *         +--LCURLY ({)
-     *         +--METHOD_DEF
-     *             |
-     *             +--MODIFIERS
-     *                 |
-     *                 +--LITERAL_PUBLIC (public)
-     *             +--TYPE
-     *                 |
-     *                 +--LITERAL_BOOLEAN (boolean)
-     *             +--IDENT (accept)
-     *             +--PARAMETERS
-     *                 |
-     *                 +--PARAMETER_DEF
-     *                     |
-     *                     +--MODIFIERS
-     *                     +--TYPE
-     *                         |
-     *                         +--IDENT (File)
-     *                     +--IDENT (dir)
-     *                 +--COMMA (,)
-     *                 +--PARAMETER_DEF
-     *                     |
-     *                     +--MODIFIERS
-     *                     +--TYPE
-     *                         |
-     *                         +--IDENT (String)
-     *                     +--IDENT (name)
-     *             +--SLIST ({)
-     *                 |
-     *                 +--LITERAL_RETURN (return)
-     *                     |
-     *                     +--EXPR
-     *                         |
-     *                         +--METHOD_CALL (()
-     *                             |
-     *                             +--DOT (.)
-     *                                 |
-     *                                 +--IDENT (name)
-     *                                 +--IDENT (endsWith)
-     *                             +--ELIST
-     *                                 |
-     *                                 +--EXPR
-     *                                     |
-     *                                     +--STRING_LITERAL (".java")
-     *                             +--RPAREN ())
-     *                     +--SEMI (;)
-     *                 +--RCURLY (})
-     *         +--RCURLY (})
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   |--IDENT -> Supplier
+     *  |   `--TYPE_ARGUMENTS -> TYPE_ARGUMENTS
+     *  |       |--GENERIC_START -> <
+     *  |       |--TYPE_ARGUMENT -> TYPE_ARGUMENT
+     *  |       |   `--IDENT -> Integer
+     *  |       `--GENERIC_END -> >
+     *  |--IDENT -> s
+     *  |--ASSIGN -> =
+     *  |   `--EXPR -> EXPR
+     *  |       `--LITERAL_NEW -> new
+     *  |           |--IDENT -> Supplier
+     *  |           |--TYPE_ARGUMENTS -> TYPE_ARGUMENTS
+     *  |           |   |--GENERIC_START -> <
+     *  |           |   `--GENERIC_END -> >
+     *  |           |--LPAREN -> (
+     *  |           |--ELIST -> ELIST
+     *  |           |--RPAREN -> )
+     *  |           `--OBJBLOCK -> OBJBLOCK
+     *  |               |--LCURLY -> {
+     *  |               |--METHOD_DEF -> METHOD_DEF
+     *  |               |   |--MODIFIERS -> MODIFIERS
+     *  |               |   |   |--ANNOTATION -> ANNOTATION
+     *  |               |   |   |   |--AT -> @
+     *  |               |   |   |   `--IDENT -> Override
+     *  |               |   |   `--LITERAL_PUBLIC -> public
+     *  |               |   |--TYPE -> TYPE
+     *  |               |   |   `--IDENT -> Integer
+     *  |               |   |--IDENT -> get
+     *  |               |   |--LPAREN -> (
+     *  |               |   |--PARAMETERS -> PARAMETERS
+     *  |               |   |--RPAREN -> )
+     *  |               |   `--SLIST -> {
+     *  |               |       |--LITERAL_RETURN -> return
+     *  |               |       |   |--EXPR -> EXPR
+     *  |               |       |   |   `--NUM_INT -> 42
+     *  |               |       |   `--SEMI -> ;
+     *  |               |       `--RCURLY -> }
+     *  |               `--RCURLY -> }
+     *  `--SEMI -> ;
      * 
* * @see #IDENT @@ -5508,9 +5499,8 @@ public final class TokenTypes { * Beginning of single-line comment: '//'. * *
-     * +--SINGLE_LINE_COMMENT
-     *         |
-     *         +--COMMENT_CONTENT
+     * SINGLE_LINE_COMMENT -> //
+     *  `--COMMENT_CONTENT -> \r\n
      * 
* *

For example:

@@ -5795,7 +5785,9 @@ public final class TokenTypes { JavaLanguageLexer.COMPACT_CTOR_DEF; /** - * Beginning of a Java 14 Text Block literal, + * Text blocks are a new feature added to to Java SE 15 and later + * that will make writing multi-line strings much easier and cleaner. + * Beginning of a Java 15 Text Block literal, * delimited by three double quotes. * *

For example:

@@ -5814,9 +5806,9 @@ public final class TokenTypes { * | `--ASSIGN -> = * | `--EXPR -> EXPR * | `--TEXT_BLOCK_LITERAL_BEGIN -> """ - * | |--TEXT_BLOCK_CONTENT -> \r\n Hello, world!\r\n + * | |--TEXT_BLOCK_CONTENT -> \n Hello, world!\n * | `--TEXT_BLOCK_LITERAL_END -> """ - * |--SEMI -> ; + * `--SEMI -> ; * * * @since 8.36 @@ -5825,7 +5817,7 @@ public final class TokenTypes { JavaLanguageLexer.TEXT_BLOCK_LITERAL_BEGIN; /** - * Content of a Java 14 text block. This is a + * Content of a Java 15 text block. This is a * sequence of characters, possibly escaped with '\'. Actual line terminators * are represented by '\n'. * @@ -5847,7 +5839,7 @@ public final class TokenTypes { * | `--TEXT_BLOCK_LITERAL_BEGIN -> """ * | |--TEXT_BLOCK_CONTENT -> \n Hello, world!\n * | `--TEXT_BLOCK_LITERAL_END -> """ - * |--SEMI -> ; + * `--SEMI -> ; * * * @since 8.36 @@ -5856,7 +5848,7 @@ public final class TokenTypes { JavaLanguageLexer.TEXT_BLOCK_CONTENT; /** - * End of a Java 14 text block literal, delimited by three + * End of a Java 15 text block literal, delimited by three * double quotes. * *

For example:

@@ -5867,17 +5859,17 @@ public final class TokenTypes { * *

parses as:

*
-     * |--VARIABLE_DEF
-     * |   |--MODIFIERS
-     * |   |--TYPE
-     * |   |   `--IDENT (String)
-     * |   |--IDENT (hello)
-     * |   |--ASSIGN (=)
-     * |   |   `--EXPR
-     * |   |       `--TEXT_BLOCK_LITERAL_BEGIN (""")
-     * |   |           |--TEXT_BLOCK_CONTENT (\n                Hello, world!\n                    )
-     * |   |           `--TEXT_BLOCK_LITERAL_END (""")
-     * |   `--SEMI (;)
+     * |--VARIABLE_DEF -> VARIABLE_DEF
+     * |   |--MODIFIERS -> MODIFIERS
+     * |   |--TYPE -> TYPE
+     * |   |   `--IDENT -> String
+     * |   |--IDENT -> hello
+     * |   `--ASSIGN -> =
+     * |       `--EXPR -> EXPR
+     * |           `--TEXT_BLOCK_LITERAL_BEGIN -> """
+     * |               |--TEXT_BLOCK_CONTENT -> \n                Hello, world!\n
+     * |               `--TEXT_BLOCK_LITERAL_END -> """
+     * `--SEMI -> ;
      * 
* * @since 8.36 @@ -6469,6 +6461,328 @@ public final class TokenTypes { public static final int RECORD_PATTERN_COMPONENTS = JavaLanguageLexer.RECORD_PATTERN_COMPONENTS; + /** + * A string template opening delimiter. This element ({@code "}) appears + * at the beginning of a string template. + *

For example:

+ *
+     *     String s = STR."Hello, \{firstName + " " + lastName}!";
+     * 
+ *

parses as:

+ *
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   `--IDENT -> String
+     *  |--IDENT -> s
+     *  `--ASSIGN -> =
+     *      `--EXPR -> EXPR
+     *          `--DOT -> .
+     *              |--IDENT -> STR
+     *              `--STRING_TEMPLATE_BEGIN -> "
+     *                  |--STRING_TEMPLATE_CONTENT -> Hello,
+     *                  |--EMBEDDED_EXPRESSION_BEGIN -> \{
+     *                  |--EMBEDDED_EXPRESSION -> EMBEDDED_EXPRESSION
+     *                  |   `--PLUS -> +
+     *                  |       |--PLUS -> +
+     *                  |       |   |--IDENT -> firstName
+     *                  |       |   `--STRING_LITERAL -> " "
+     *                  |       `--IDENT -> lastName
+     *                  |--EMBEDDED_EXPRESSION_END -> }
+     *                  |--STRING_TEMPLATE_CONTENT -> !
+     *                  `--STRING_TEMPLATE_END -> "
+     * 
+ * + * @see #STRING_TEMPLATE_END + * @see #STRING_TEMPLATE_CONTENT + * @see #EMBEDDED_EXPRESSION_BEGIN + * @see #EMBEDDED_EXPRESSION + * @see #EMBEDDED_EXPRESSION_END + * @see #STRING_LITERAL + * + * @since 10.13.0 + */ + public static final int STRING_TEMPLATE_BEGIN = + JavaLanguageLexer.STRING_TEMPLATE_BEGIN; + + /** + * A string template closing delimiter. This element ({@code "}) appears + * at the end of a string template. + *

For example:

+ *
+     *     String s = STR."Hello, \{firstName + " " + lastName}!";
+     * 
+ *

parses as:

+ *
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   `--IDENT -> String
+     *  |--IDENT -> s
+     *  `--ASSIGN -> =
+     *      `--EXPR -> EXPR
+     *          `--DOT -> .
+     *              |--IDENT -> STR
+     *              `--STRING_TEMPLATE_BEGIN -> "
+     *                  |--STRING_TEMPLATE_CONTENT -> Hello,
+     *                  |--EMBEDDED_EXPRESSION_BEGIN -> \{
+     *                  |--EMBEDDED_EXPRESSION -> EMBEDDED_EXPRESSION
+     *                  |   `--PLUS -> +
+     *                  |       |--PLUS -> +
+     *                  |       |   |--IDENT -> firstName
+     *                  |       |   `--STRING_LITERAL -> " "
+     *                  |       `--IDENT -> lastName
+     *                  |--EMBEDDED_EXPRESSION_END -> }
+     *                  |--STRING_TEMPLATE_CONTENT -> !
+     *                  `--STRING_TEMPLATE_END -> "
+     * 
+ * + * @see #STRING_TEMPLATE_END + * @see #STRING_TEMPLATE_CONTENT + * @see #EMBEDDED_EXPRESSION_BEGIN + * @see #EMBEDDED_EXPRESSION + * @see #EMBEDDED_EXPRESSION_END + * @see #STRING_LITERAL + * + * @since 10.13.0 + */ + public static final int STRING_TEMPLATE_END = + JavaLanguageLexer.STRING_TEMPLATE_END; + + /** + * The (possibly empty) content of a string template. A given string + * template may have more than one node of this type. + *

For example:

+ *
+     *     String s = STR."Hello, \{firstName + " " + lastName}";
+     * 
+ *

parses as:

+ *
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   `--IDENT -> String
+     *  |--IDENT -> s
+     *  `--ASSIGN -> =
+     *      `--EXPR -> EXPR
+     *          `--DOT -> .
+     *              |--IDENT -> STR
+     *              `--STRING_TEMPLATE_BEGIN -> "
+     *                  |--STRING_TEMPLATE_CONTENT -> Hello,
+     *                  |--EMBEDDED_EXPRESSION_BEGIN -> \{
+     *                  |--EMBEDDED_EXPRESSION -> EMBEDDED_EXPRESSION
+     *                  |   `--PLUS -> +
+     *                  |       |--PLUS -> +
+     *                  |       |   |--IDENT -> firstName
+     *                  |       |   `--STRING_LITERAL -> " "
+     *                  |       `--IDENT -> lastName
+     *                  |--EMBEDDED_EXPRESSION_END -> }
+     *                  `--STRING_TEMPLATE_END -> "
+     * 
+ * + * @see #STRING_TEMPLATE_END + * @see #STRING_TEMPLATE_CONTENT + * @see #EMBEDDED_EXPRESSION_BEGIN + * @see #EMBEDDED_EXPRESSION + * @see #EMBEDDED_EXPRESSION_END + * @see #STRING_LITERAL + * + * @since 10.13.0 + */ + public static final int STRING_TEMPLATE_CONTENT = + JavaLanguageLexer.STRING_TEMPLATE_CONTENT; + + /** + * The opening delimiter of an embedded expression within a string template. + *

For example:

+ *
+     *     String s = STR."Hello, \{getName("Mr. ", firstName, lastName)}!";
+     * 
+ *

parses as:

+ *
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   `--IDENT -> String
+     *  |--IDENT -> s
+     *  `--ASSIGN -> =
+     *      `--EXPR -> EXPR
+     *          `--DOT -> .
+     *              |--IDENT -> STR
+     *              `--STRING_TEMPLATE_BEGIN -> "
+     *                  |--STRING_TEMPLATE_CONTENT -> Hello,
+     *                  |--EMBEDDED_EXPRESSION_BEGIN -> \{
+     *                  |--EMBEDDED_EXPRESSION -> EMBEDDED_EXPRESSION
+     *                  |   `--METHOD_CALL -> (
+     *                  |       |--IDENT -> getName
+     *                  |       |--ELIST -> ELIST
+     *                  |       |   |--EXPR -> EXPR
+     *                  |       |   |   `--STRING_LITERAL -> "Mr. "
+     *                  |       |   |--COMMA -> ,
+     *                  |       |   |--EXPR -> EXPR
+     *                  |       |   |   `--IDENT -> firstName
+     *                  |       |   |--COMMA -> ,
+     *                  |       |   `--EXPR -> EXPR
+     *                  |       |       `--IDENT -> lastName
+     *                  |       `--RPAREN -> )
+     *                  |--EMBEDDED_EXPRESSION_END -> }
+     *                  |--STRING_TEMPLATE_CONTENT -> !
+     *                  `--STRING_TEMPLATE_END -> "
+     * 
+ * + * @see #STRING_TEMPLATE_END + * @see #STRING_TEMPLATE_CONTENT + * @see #EMBEDDED_EXPRESSION_BEGIN + * @see #EMBEDDED_EXPRESSION + * @see #EMBEDDED_EXPRESSION_END + * @see #STRING_LITERAL + * + * @since 10.13.0 + */ + public static final int EMBEDDED_EXPRESSION_BEGIN = + JavaLanguageLexer.EMBEDDED_EXPRESSION_BEGIN; + + /** + * An expression embedded within a string template. + *

For example:

+ *
+     *     String s = STR."Hello, \{getName("Mr. ", firstName, lastName)}!";
+     * 
+ *

parses as:

+ *
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   `--IDENT -> String
+     *  |--IDENT -> s
+     *  `--ASSIGN -> =
+     *      `--EXPR -> EXPR
+     *          `--DOT -> .
+     *              |--IDENT -> STR
+     *              `--STRING_TEMPLATE_BEGIN -> "
+     *                  |--STRING_TEMPLATE_CONTENT -> Hello,
+     *                  |--EMBEDDED_EXPRESSION_BEGIN -> \{
+     *                  |--EMBEDDED_EXPRESSION -> EMBEDDED_EXPRESSION
+     *                  |   `--METHOD_CALL -> (
+     *                  |       |--IDENT -> getName
+     *                  |       |--ELIST -> ELIST
+     *                  |       |   |--EXPR -> EXPR
+     *                  |       |   |   `--STRING_LITERAL -> "Mr. "
+     *                  |       |   |--COMMA -> ,
+     *                  |       |   |--EXPR -> EXPR
+     *                  |       |   |   `--IDENT -> firstName
+     *                  |       |   |--COMMA -> ,
+     *                  |       |   `--EXPR -> EXPR
+     *                  |       |       `--IDENT -> lastName
+     *                  |       `--RPAREN -> )
+     *                  |--EMBEDDED_EXPRESSION_END -> }
+     *                  |--STRING_TEMPLATE_CONTENT -> !
+     *                  `--STRING_TEMPLATE_END -> "
+     * 
+ * + * @see #STRING_TEMPLATE_END + * @see #STRING_TEMPLATE_CONTENT + * @see #EMBEDDED_EXPRESSION_BEGIN + * @see #EMBEDDED_EXPRESSION + * @see #EMBEDDED_EXPRESSION_END + * @see #STRING_LITERAL + * + * @since 10.13.0 + */ + public static final int EMBEDDED_EXPRESSION = + JavaLanguageLexer.EMBEDDED_EXPRESSION; + + /** + * The closing delimiter of an embedded expression within a string + * template. + *

For example:

+ *
+     *     String s = STR."Hello, \{getName("Mr. ", firstName, lastName)}!";
+     * 
+ *

parses as:

+ *
+     * VARIABLE_DEF -> VARIABLE_DEF
+     *  |--MODIFIERS -> MODIFIERS
+     *  |--TYPE -> TYPE
+     *  |   `--IDENT -> String
+     *  |--IDENT -> s
+     *  `--ASSIGN -> =
+     *      `--EXPR -> EXPR
+     *          `--DOT -> .
+     *              |--IDENT -> STR
+     *              `--STRING_TEMPLATE_BEGIN -> "
+     *                  |--STRING_TEMPLATE_CONTENT -> Hello,
+     *                  |--EMBEDDED_EXPRESSION_BEGIN -> \{
+     *                  |--EMBEDDED_EXPRESSION -> EMBEDDED_EXPRESSION
+     *                  |   `--METHOD_CALL -> (
+     *                  |       |--IDENT -> getName
+     *                  |       |--ELIST -> ELIST
+     *                  |       |   |--EXPR -> EXPR
+     *                  |       |   |   `--STRING_LITERAL -> "Mr. "
+     *                  |       |   |--COMMA -> ,
+     *                  |       |   |--EXPR -> EXPR
+     *                  |       |   |   `--IDENT -> firstName
+     *                  |       |   |--COMMA -> ,
+     *                  |       |   `--EXPR -> EXPR
+     *                  |       |       `--IDENT -> lastName
+     *                  |       `--RPAREN -> )
+     *                  |--EMBEDDED_EXPRESSION_END -> }
+     *                  |--STRING_TEMPLATE_CONTENT -> !
+     *                  `--STRING_TEMPLATE_END -> "
+     * 
+ * + * @see #STRING_TEMPLATE_END + * @see #STRING_TEMPLATE_CONTENT + * @see #EMBEDDED_EXPRESSION_BEGIN + * @see #EMBEDDED_EXPRESSION + * @see #EMBEDDED_EXPRESSION_END + * @see #STRING_LITERAL + * + * @since 10.13.0 + */ + public static final int EMBEDDED_EXPRESSION_END = + JavaLanguageLexer.EMBEDDED_EXPRESSION_END; + + /** + * An unnamed pattern variable definition. Appears as part of a pattern definition. + *

For example:

+ *
+     *    if (r instanceof R(_)) {}
+     * 
+ *

parses as:

+ *
+     * LITERAL_IF -> if
+     *  |--LPAREN -> (
+     *  |--EXPR -> EXPR
+     *  |   `--LITERAL_INSTANCEOF -> instanceof
+     *  |       |--IDENT -> r
+     *  |       `--RECORD_PATTERN_DEF -> RECORD_PATTERN_DEF
+     *  |           |--MODIFIERS -> MODIFIERS
+     *  |           |--TYPE -> TYPE
+     *  |           |   `--IDENT -> R
+     *  |           |--LPAREN -> (
+     *  |           |--RECORD_PATTERN_COMPONENTS -> RECORD_PATTERN_COMPONENTS
+     *  |           |   `--UNNAMED_PATTERN_DEF -> _
+     *  |           `--RPAREN -> )
+     *  |--RPAREN -> )
+     *  `--SLIST -> {
+     *      `--RCURLY -> }
+     * 
+ * + * @see #RECORD_PATTERN_COMPONENTS + * @see #RECORD_PATTERN_DEF + * @see #LITERAL_SWITCH + * @see #LITERAL_INSTANCEOF + * @see #SWITCH_RULE + * @see #LITERAL_WHEN + * @see #PATTERN_VARIABLE_DEF + * @see #PATTERN_DEF + * + * @since 10.14.0 + */ + public static final int UNNAMED_PATTERN_DEF = + JavaLanguageLexer.UNNAMED_PATTERN_DEF; + /** Prevent instantiation. */ private TokenTypes() { } diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Violation.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Violation.java index afa7f8e6b91..4c2cef418e4 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Violation.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Violation.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -25,6 +25,7 @@ import java.util.Objects; import com.puppycrawl.tools.checkstyle.LocalizedMessage; +import com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil; /** * Represents a violation that can be localised. The translations come from @@ -111,7 +112,7 @@ public Violation(int lineNo, this.args = null; } else { - this.args = Arrays.copyOf(args, args.length); + this.args = UnmodifiableCollectionUtil.copyOfArray(args, args.length); } this.bundle = bundle; this.severityLevel = severityLevel; diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/package-info.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/package-info.java index 17c1684107b..5d0135e3269 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/package-info.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/package-info.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/ArrayTypeStyleCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/ArrayTypeStyleCheck.java index a92c0bab878..9e0581429f0 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/ArrayTypeStyleCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/ArrayTypeStyleCheck.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.java index 9cd5aee1bc4..7373c437a7c 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/AvoidEscapedUnicodeCharactersCheck.java @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code and other text files for adherence to a set of rules. -// Copyright (C) 2001-2023 the original author or authors. +// Copyright (C) 2001-2024 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -47,13 +47,13 @@ *

*