Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-ubuntu2004-docker-2c-2g-7941 (ubuntu2004-docker-2c-2g) in workspace /w/workspace/infrautils-sonar The recommended git tool is: NONE using credential jenkins-ssh Wiping out workspace first. Cloning the remote Git repository Cloning repository git://devvexx.opendaylight.org/mirror/infrautils > git init /w/workspace/infrautils-sonar # timeout=10 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/infrautils > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials jenkins-ssh Verifying host key using known hosts file You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/infrautils +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/infrautils # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 6d88482761b670fd77c1068cdda9ee9e8a880e46 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 6d88482761b670fd77c1068cdda9ee9e8a880e46 # timeout=10 Commit message: "Bump versions to 7.0.5-SNAPSHOT" > git rev-list --no-walk 6d88482761b670fd77c1068cdda9ee9e8a880e46 # timeout=10 Run condition [Boolean condition] enabling prebuild for step [BuilderChain] Run condition [Not] preventing prebuild for step [BuilderChain] [infrautils-sonar] $ /bin/bash /tmp/jenkins13315402049007804349.sh ---> python-tools-install.sh Setup pyenv: * system (set by /opt/pyenv/version) * 3.8.20 (set by /opt/pyenv/version) * 3.9.20 (set by /opt/pyenv/version) * 3.10.15 (set by /opt/pyenv/version) * 3.11.10 (set by /opt/pyenv/version) lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-1CWl lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-1CWl/bin to PATH Generating Requirements File Python 3.11.10 pip 24.3.1 from /tmp/venv-1CWl/lib/python3.11/site-packages/pip (python 3.11) appdirs==1.4.4 argcomplete==3.5.1 aspy.yaml==1.3.0 attrs==24.2.0 autopage==0.5.2 beautifulsoup4==4.12.3 boto3==1.35.63 botocore==1.35.63 bs4==0.0.2 cachetools==5.5.0 certifi==2024.8.30 cffi==1.17.1 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.4.0 click==8.1.7 cliff==4.7.0 cmd2==2.5.6 cryptography==3.3.2 debtcollector==3.0.0 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.15 distlib==0.3.9 dnspython==2.7.0 docker==4.2.2 dogpile.cache==1.3.3 durationpy==0.9 email_validator==2.2.0 filelock==3.16.1 future==1.0.0 gitdb==4.0.11 GitPython==3.1.43 google-auth==2.36.0 httplib2==0.22.0 identify==2.6.2 idna==3.10 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.4 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 jsonschema==4.23.0 jsonschema-specifications==2024.10.1 keystoneauth1==5.8.0 kubernetes==31.0.0 lftools==0.37.10 lxml==5.3.0 MarkupSafe==3.0.2 msgpack==1.1.0 multi_key_dict==2.0.3 munch==4.0.0 netaddr==1.3.0 netifaces==0.11.0 niet==1.4.2 nodeenv==1.9.1 oauth2client==4.1.3 oauthlib==3.2.2 openstacksdk==4.1.0 os-client-config==2.1.0 os-service-types==1.7.0 osc-lib==3.1.0 oslo.config==9.6.0 oslo.context==5.6.0 oslo.i18n==6.4.0 oslo.log==6.1.2 oslo.serialization==5.5.0 oslo.utils==7.4.0 packaging==24.2 pbr==6.1.0 platformdirs==4.3.6 prettytable==3.12.0 psutil==6.1.0 pyasn1==0.6.1 pyasn1_modules==0.4.1 pycparser==2.22 pygerrit2==2.0.15 PyGithub==2.5.0 PyJWT==2.9.0 PyNaCl==1.5.0 pyparsing==2.4.7 pyperclip==1.9.0 pyrsistent==0.20.0 python-cinderclient==9.6.0 python-dateutil==2.9.0.post0 python-heatclient==4.0.0 python-jenkins==1.8.2 python-keystoneclient==5.5.0 python-magnumclient==4.7.0 python-openstackclient==7.2.1 python-swiftclient==4.6.0 PyYAML==6.0.2 referencing==0.35.1 requests==2.32.3 requests-oauthlib==2.0.0 requestsexceptions==1.4.0 rfc3986==2.0.0 rpds-py==0.21.0 rsa==4.9 ruamel.yaml==0.18.6 ruamel.yaml.clib==0.2.12 s3transfer==0.10.3 simplejson==3.19.3 six==1.16.0 smmap==5.0.1 soupsieve==2.6 stevedore==5.3.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.13.2 tqdm==4.67.0 typing_extensions==4.12.2 tzdata==2024.2 urllib3==1.26.20 virtualenv==20.27.1 wcwidth==0.2.13 websocket-client==1.8.0 wrapt==1.16.0 xdg==6.0.0 xmltodict==0.14.2 yq==3.4.3 [Boolean condition] checking [true] against [^(1|y|yes|t|true|on|run)$] (origin token: true) Run condition [Boolean condition] enabling perform for step [BuilderChain] [infrautils-sonar] $ /bin/sh -xe /tmp/jenkins16229011930284999736.sh + echo Using SonarCloud Using SonarCloud [infrautils-sonar] $ /bin/sh -xe /tmp/jenkins6016492899142366845.sh + echo quiet=on Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip to /w/tools/hudson.tasks.Maven_MavenInstallation/mvn39 on prd-ubuntu2004-docker-2c-2g-7941 [infrautils-sonar] $ /w/tools/hudson.tasks.Maven_MavenInstallation/mvn39/bin/mvn -DGERRIT_BRANCH=master -DPROJECT=infrautils -DMVN=/w/tools/hudson.tasks.Maven_MavenInstallation/mvn39/bin/mvn -DSTREAM=master "-DARCHIVE_ARTIFACTS=**/*.log **/hs_err_*.log **/target/**/feature.xml **/target/failsafe-reports/failsafe-summary.xml **/target/surefire-reports/*-output.txt " -DJAVA_OPTS= -DGERRIT_PROJECT=infrautils -Dsha1=origin/master -DMAVEN_OPTS= -DGERRIT_REFSPEC=refs/heads/master -DM2_HOME=/w/tools/hudson.tasks.Maven_MavenInstallation/mvn39 "-DMAVEN_PARAMS=-Dodl.jacoco.aggregateFile=$WORKSPACE/target/jacoco.exec -Dskip.karaf.featureTest=true " "-DSONAR_MAVEN_GOAL=jacoco:report -Djacoco.dataFile=$WORKSPACE/target/jacoco.exec sonar:sonar " --version Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) Maven home: /w/tools/hudson.tasks.Maven_MavenInstallation/mvn39 Java version: 11.0.24, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "5.4.0-200-generic", arch: "amd64", family: "unix" [infrautils-sonar] $ /bin/sh -xe /tmp/jenkins4321320146457306125.sh + rm /home/jenkins/.wgetrc [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SET_JDK_VERSION=openjdk21 GIT_URL="git://devvexx.opendaylight.org/mirror" [EnvInject] - Variables injected successfully. [infrautils-sonar] $ /bin/sh /tmp/jenkins923582376372814202.sh ---> update-java-alternatives.sh ---> Updating Java version ---> Ubuntu/Debian system detected update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/java to provide /usr/bin/java (java) in manual mode update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in manual mode update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64 to provide /usr/lib/jvm/java-openjdk (java_sdk_openjdk) in manual mode openjdk version "21.0.4" 2024-07-16 OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu220.04) OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu220.04, mixed mode, sharing) JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties file path '/tmp/java.env' [EnvInject] - Variables injected successfully. [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content MAVEN_GOALS=clean install SONARCLOUD_JAVA_VERSION=openjdk21 SONARCLOUD_QUALITYGATE_WAIT=False SCAN_DEV_BRANCH=False PROJECT_ORGANIZATION=opendaylight SONAR_HOST_URL=https://sonarcloud.io PROJECT_KEY=opendaylight_infrautils [EnvInject] - Variables injected successfully. provisioning config files... copy managed file [global-settings] to file:/w/workspace/infrautils-sonar@tmp/config3718745805497523723tmp copy managed file [infrautils-settings] to file:/w/workspace/infrautils-sonar@tmp/config10565366496974217157tmp [infrautils-sonar] $ /bin/bash -l /tmp/jenkins4606249711862021633.sh ---> common-variables.sh --show-version --batch-mode -Djenkins -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ---> maven-sonar.sh + set +u + export MAVEN_OPTS + declare -a params + params+=("--global-settings $GLOBAL_SETTINGS_FILE") + params+=("--settings $SETTINGS_FILE") + _JAVA_OPTIONS= + /w/tools/hudson.tasks.Maven_MavenInstallation/mvn39/bin/mvn clean install -e -Dsonar --global-settings /w/workspace/infrautils-sonar@tmp/config3718745805497523723tmp --settings /w/workspace/infrautils-sonar@tmp/config10565366496974217157tmp --show-version --batch-mode -Djenkins -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dodl.jacoco.aggregateFile=/w/workspace/infrautils-sonar/target/jacoco.exec -Dskip.karaf.featureTest=true Picked up _JAVA_OPTIONS: Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) Maven home: /w/tools/hudson.tasks.Maven_MavenInstallation/mvn39 Java version: 21.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "5.4.0-200-generic", arch: "amd64", family: "unix" [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] ODL :: infrautils :: infrautils-artifacts [pom] [INFO] ODL :: infrautils :: parent [pom] [INFO] ODL :: infrautils :: infrautils-testutils [jar] [INFO] ODL :: infrautils :: infrautils-util [bundle] [INFO] ODL :: infrautils :: inject [bundle] [INFO] ODL :: infrautils :: inject.guice.testutils [jar] [INFO] ODL :: infrautils :: itestutils [bundle] [INFO] ODL :: infrautils :: ready-api [bundle] [INFO] diagstatus-api [bundle] [INFO] diagstatus-impl [bundle] [INFO] diagstatus-shell [bundle] [INFO] diagstatus-web [bundle] [INFO] ODL :: infrautils :: ready-impl [bundle] [INFO] ODL :: infrautils :: inject-spi [bundle] [INFO] ODL :: infrautils :: inject.guice [bundle] [INFO] ODL :: infrautils :: ready-guice [jar] [INFO] infrautils-docs [jar] [INFO] OpenDaylight :: Infrautils :: feature-parent [pom] [INFO] OpenDaylight :: Infrautils :: Utils [feature] [INFO] OpenDaylight :: Infrautils :: Ready [feature] [INFO] OpenDaylight :: Infrautils :: DiagStatus [feature] [INFO] ODL :: infrautils :: features-infrautils [feature] [INFO] OpenDaylight :: Infrautils :: @Inject [feature] [INFO] ODL :: infrautils :: features-infrautils-experimental [feature] [INFO] ODL :: infrautils :: features-infrautils-samples [feature] [INFO] ODL :: infrautils :: infrautils-features [feature] [INFO] ODL :: infrautils :: features-aggregator [pom] [INFO] ODL :: infrautils :: common-aggregator [pom] [INFO] ODL :: infrautils :: itestutils-parent [pom] [INFO] ODL :: infrautils :: diagstatus-it [jar] [INFO] diagstatus-aggregator [pom] [INFO] ODL :: infrautils :: inject-aggregator [pom] [INFO] ODL :: infrautils :: itestutils-it [jar] [INFO] ODL :: infrautils :: itestutils-aggregator [pom] [INFO] ODL :: infrautils :: ready-it [jar] [INFO] ODL :: infrautils :: ready-aggregator [pom] [INFO] infrautils [pom] [INFO] [INFO] ----------< org.opendaylight.infrautils:infrautils-artifacts >---------- [INFO] Building ODL :: infrautils :: infrautils-artifacts 7.0.5-SNAPSHOT [1/37] [INFO] from artifacts/pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- clean:3.4.0:clean (default-clean) @ infrautils-artifacts --- [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ infrautils-artifacts --- [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed [INFO] Rule 1: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id:9.0.1:revision (get-git-infos) @ infrautils-artifacts --- [INFO] [INFO] --- cyclonedx:2.8.2:makeBom (default) @ infrautils-artifacts --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.5 with 0 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/artifacts/target/bom.xml [INFO] attaching as infrautils-artifacts-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/artifacts/target/bom.json [INFO] attaching as infrautils-artifacts-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- install:3.1.3:install (default-install) @ infrautils-artifacts --- [INFO] Installing /w/workspace/infrautils-sonar/artifacts/pom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-artifacts/7.0.5-SNAPSHOT/infrautils-artifacts-7.0.5-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/artifacts/target/bom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-artifacts/7.0.5-SNAPSHOT/infrautils-artifacts-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/artifacts/target/bom.json to /tmp/r/org/opendaylight/infrautils/infrautils-artifacts/7.0.5-SNAPSHOT/infrautils-artifacts-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] -----------------< org.opendaylight.infrautils:parent >----------------- [INFO] Building ODL :: infrautils :: parent 7.0.5-SNAPSHOT [2/37] [INFO] from common/parent/pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- clean:3.4.0:clean (default-clean) @ parent --- [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ parent --- [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed [INFO] Rule 1: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-banned-dependencies) @ parent --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id:9.0.1:revision (get-git-infos) @ parent --- [INFO] [INFO] --- jacoco:0.8.12:prepare-agent (pre-unit-test) @ parent --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.12/org.jacoco.agent-0.8.12-runtime.jar=destfile=/w/workspace/infrautils-sonar/common/parent/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- checkstyle:3.5.0:check (check-license) @ parent --- [INFO] [INFO] --- checkstyle:3.5.0:check (default) @ parent --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- dependency:3.8.0:copy (unpack-license) @ parent --- [INFO] Copying artifact 'org.opendaylight.odlparent:odl-license:license:14.0.4' (/tmp/r/org/opendaylight/odlparent/odl-license/14.0.4/odl-license-14.0.4.license) to /w/workspace/infrautils-sonar/common/parent/target/classes/LICENSE [INFO] [INFO] >>> spotbugs:4.8.6.4:check (analyze-compile) > :spotbugs @ parent >>> [INFO] [INFO] --- spotbugs:4.8.6.4:spotbugs (spotbugs) @ parent --- [INFO] [INFO] <<< spotbugs:4.8.6.4:check (analyze-compile) < :spotbugs @ parent <<< [INFO] [INFO] [INFO] --- spotbugs:4.8.6.4:check (analyze-compile) @ parent --- [INFO] [INFO] --- copy:14.0.4:copy-files (default) @ parent --- [INFO] [INFO] --- javadoc:3.10.1:jar (attach-javadocs) @ parent --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx:2.8.2:makeBom (default) @ parent --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.5 with 4 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/common/parent/target/bom.xml [INFO] attaching as parent-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/common/parent/target/bom.json [INFO] attaching as parent-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder:2.0.1:check (find-duplicate-classpath-entries) @ parent --- [INFO] Ignoring POM project! [INFO] [INFO] --- dependency:3.8.0:analyze-only (analyze-declarations) @ parent --- [INFO] Skipping pom project [INFO] [INFO] --- source:3.3.1:jar-no-fork (attach-sources) @ parent --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer:2.9.0:modernizer (modernizer) @ parent --- [INFO] [INFO] --- jacoco:0.8.12:report (report) @ parent --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- install:3.1.3:install (default-install) @ parent --- [INFO] Installing /w/workspace/infrautils-sonar/common/parent/pom.xml to /tmp/r/org/opendaylight/infrautils/parent/7.0.5-SNAPSHOT/parent-7.0.5-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/common/parent/target/bom.xml to /tmp/r/org/opendaylight/infrautils/parent/7.0.5-SNAPSHOT/parent-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/common/parent/target/bom.json to /tmp/r/org/opendaylight/infrautils/parent/7.0.5-SNAPSHOT/parent-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] ----------< org.opendaylight.infrautils:infrautils-testutils >---------- [INFO] Building ODL :: infrautils :: infrautils-testutils 7.0.5-SNAPSHOT [3/37] [INFO] from testutils/pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.4.0:clean (default-clean) @ infrautils-testutils --- [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ infrautils-testutils --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-banned-dependencies) @ infrautils-testutils --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id:9.0.1:revision (get-git-infos) @ infrautils-testutils --- [INFO] [INFO] --- jacoco:0.8.12:prepare-agent (pre-unit-test) @ infrautils-testutils --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.12/org.jacoco.agent-0.8.12-runtime.jar=destfile=/w/workspace/infrautils-sonar/testutils/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- checkstyle:3.5.0:check (check-license) @ infrautils-testutils --- [INFO] [INFO] --- checkstyle:3.5.0:check (default) @ infrautils-testutils --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- dependency:3.8.0:copy (unpack-license) @ infrautils-testutils --- [INFO] Copying artifact 'org.opendaylight.odlparent:odl-license:license:14.0.4' (/tmp/r/org/opendaylight/odlparent/odl-license/14.0.4/odl-license-14.0.4.license) to /w/workspace/infrautils-sonar/testutils/target/classes/LICENSE [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ infrautils-testutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/testutils/src/main/resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ infrautils-testutils --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 21 source files with javac [forked debug release 21] to target/classes [WARNING] Picked up _JAVA_OPTIONS: Note: Writing META-INF/services/org.slf4j.spi.SLF4JServiceProvider /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[43,18] [deprecation] URL(String) in URL has been deprecated [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesCheckRule.java:[44,21] [CanIgnoreReturnValueSuggester] Methods that always return 'this' (or return an input parameter) should be annotated with @com.google.errorprone.annotations.CanIgnoreReturnValue (see https://errorprone.info/bugpattern/CanIgnoreReturnValueSuggester) Did you mean '@CanIgnoreReturnValue'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[33,28] [this-escape] possible 'this' escape before subclass is fully initialized [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[58,40] [this-escape] previous possible 'this' escape happens here via invocation [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[41,22] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var sb = new StringBuilder();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[73,39] [StringCaseLocaleUsage] Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.) (see https://errorprone.info/bugpattern/StringCaseLocaleUsage) Did you mean '|| resourcePath.toUpperCase(Locale.ROOT).startsWith("META-INF/NOTICE")' or '|| resourcePath.toUpperCase(Locale.getDefault()).startsWith("META-INF/NOTICE")' or '|| Ascii.toUpperCase(resourcePath).startsWith("META-INF/NOTICE")'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[74,39] [StringCaseLocaleUsage] Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.) (see https://errorprone.info/bugpattern/StringCaseLocaleUsage) Did you mean '|| resourcePath.toUpperCase(Locale.ROOT).startsWith("META-INF/LICENSE")' or '|| resourcePath.toUpperCase(Locale.getDefault()).startsWith("META-INF/LICENSE")' or '|| Ascii.toUpperCase(resourcePath).startsWith("META-INF/LICENSE")'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[75,39] [StringCaseLocaleUsage] Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.) (see https://errorprone.info/bugpattern/StringCaseLocaleUsage) Did you mean '|| resourcePath.toUpperCase(Locale.ROOT).startsWith("LICENSE")' or '|| resourcePath.toUpperCase(Locale.getDefault()).startsWith("LICENSE")' or '|| Ascii.toUpperCase(resourcePath).startsWith("LICENSE")'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/ClasspathHellDuplicatesChecker.java:[76,39] [StringCaseLocaleUsage] Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.) (see https://errorprone.info/bugpattern/StringCaseLocaleUsage) Did you mean '|| resourcePath.toUpperCase(Locale.ROOT).startsWith("LICENSE/NOTICE")' or '|| resourcePath.toUpperCase(Locale.getDefault()).startsWith("LICENSE/NOTICE")' or '|| Ascii.toUpperCase(resourcePath).startsWith("LICENSE/NOTICE")'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogCapture.java:[59,19] [EqualsGetClass] Prefer instanceof to getClass when implementing Object#equals. (see https://errorprone.info/bugpattern/EqualsGetClass) Did you mean 'if (!(obj instanceof LogCapture)) {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogCapture.java:[66,19] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var other = (LogCapture) obj;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogCaptureRuleException.java:[33,25] [this-escape] possible 'this' escape before subclass is fully initialized [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogRule.java:[57,21] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case), but startTimeInMS is not (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) Did you mean 'long startTimeInMs = System.currentTimeMillis();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/LogRule.java:[65,25] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case), but durationInMS is not (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) Did you mean 'long durationInMs = System.currentTimeMillis() - startTimeInMS;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/RunUntilFailureRule.java:[51,66] [UnusedVariable] The parameter 'description' is never read. (see https://errorprone.info/bugpattern/UnusedVariable) Did you mean 'RunUntilFailureStatement(Statement statement) {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[85,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: trace(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[145,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: debug(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[205,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: info(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[265,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: warn(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/internal/DelegatingLogger.java:[325,16] [OverridingMethodInconsistentArgumentNamesChecker] The parameters of this method are inconsistent with the overridden method. A consistent order would be: error(arg0, arg1, arg2, arg3) (see https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/mockito/MethodExtensions.java:[30,32] [AnnotationPosition] @Regex is a TYPE_USE annotation, so should appear after modifiers and directly before the type. (see https://google.github.io/styleguide/javaguide.html#s4.8.5-annotations) Did you mean to remove this line? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/mockito/MethodExtensions.java:[37,22] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var sb = new StringBuilder();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[32,25] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case), but baseURL is not (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) Did you mean 'private final String baseUrl;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[38,32] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case), but baseURL is not; did you mean 'baseUrl'? (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[43,12] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var url = new URL(baseURL + (path.startsWith("/") ? path.substring(1) : path));'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebClient.java:[44,26] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var conn = (HttpURLConnection) url.openConnection();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebServer.java:[49,24] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var http = new ServerConnector(server);'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebServer.java:[55,33] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var contextHandlerCollection = new ContextHandlerCollection();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebServer.java:[82,18] [MemberName] Methods and non-static variables should be named in lowerCamelCase, with acronyms treated as words (https://google.github.io/styleguide/javaguide.html#s5.3-camel-case), but getTestContextURL is not; did you mean 'getTestContextUrl'? (see https://google.github.io/styleguide/javaguide.html#s5.2-specific-identifier-names) [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/opendaylight/infrautils/testutils/web/TestWebServer.java:[87,22] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var servletHolder = new ServletHolder(servlet);'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/main/java/org/slf4j/simpl/SimpleServiceProvider.java:[32,25] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [INFO] [INFO] >>> spotbugs:4.8.6.4:check (analyze-compile) > :spotbugs @ infrautils-testutils >>> [INFO] [INFO] --- spotbugs:4.8.6.4:spotbugs (spotbugs) @ infrautils-testutils --- [INFO] Fork Value is true [java] Picked up _JAVA_OPTIONS: [INFO] Done SpotBugs Analysis.... [INFO] [INFO] <<< spotbugs:4.8.6.4:check (analyze-compile) < :spotbugs @ infrautils-testutils <<< [INFO] [INFO] [INFO] --- spotbugs:4.8.6.4:check (analyze-compile) @ infrautils-testutils --- [INFO] BugInstance size is 0 [INFO] Error size is 0 [INFO] No errors/warnings found [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ infrautils-testutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/testutils/src/test/resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ infrautils-testutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 11 source files with javac [forked debug release 21] to target/test-classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[47,30] [DirectInvocationOnMock] Methods should not be directly invoked on the mock `service`. Should this be part of a verify(..) call? (see https://errorprone.info/bugpattern/DirectInvocationOnMock) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[54,40] [DirectInvocationOnMock] Methods should not be directly invoked on the mock `service`. Should this be part of a verify(..) call? (see https://errorprone.info/bugpattern/DirectInvocationOnMock) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[66,38] [DirectInvocationOnMock] Methods should not be directly invoked on the mock `service`. Should this be part of a verify(..) call? (see https://errorprone.info/bugpattern/DirectInvocationOnMock) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[79,16] [MockitoDoSetup] Prefer using when/thenReturn over doReturn/when for additional type safety. (see https://errorprone.info/bugpattern/MockitoDoSetup) Did you mean 'when(service.foobar(any())).thenReturn(123);'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[88,16] [MockitoDoSetup] Prefer using when/thenReturn over doReturn/when for additional type safety. (see https://errorprone.info/bugpattern/MockitoDoSetup) Did you mean 'when(service.foobar(any())).thenAnswer(invocation -> {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[64,19] [YodaCondition] The non-constant portion of an equals check generally comes first. Prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be (see https://errorprone.info/bugpattern/YodaCondition) Did you mean 'return Objects.equals(file.getName(), "hello.txt") ? 123 : 0;' or 'return file.getName().equals("hello.txt") ? 123 : 0;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[91,17] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var file = (File) invocation.getArguments()[0];'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoExampleTutorialTest.java:[92,19] [YodaCondition] The non-constant portion of an equals check generally comes first. Prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be (see https://errorprone.info/bugpattern/YodaCondition) Did you mean 'return Objects.equals(file.getName(), "hello.txt") ? 123 : 0;' or 'return file.getName().equals("hello.txt") ? 123 : 0;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoTest.java:[48,33] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var ex = assertThrows(UnstubbedMethodException.class, () -> service.foo());'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoTest.java:[55,19] [YodaCondition] The non-constant portion of an equals check generally comes first. Prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be (see https://errorprone.info/bugpattern/YodaCondition) Did you mean 'return Objects.equals(file.getName(), "hello.txt") ? 123 : 0;' or 'return file.getName().equals("hello.txt") ? 123 : 0;'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoUnstubbedMethodExceptionAnswerTest.java:[20,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void answering() throws IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/mockito/MockitoUnstubbedMethodExceptionAnswerTest.java:[22,33] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var ex = assertThrows(UnstubbedMethodException.class, () -> mock.close());'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ClasspathHellDuplicatesCheckRuleTest.java:[24,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void something() throws Exception {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ClasspathHellDuplicatesCheckRuleTest.java:[21,62] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ClasspathHellDuplicatesCheckerTest.java:[24,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void noDuplicates() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ClasspathHellDuplicatesCheckerTest.java:[29,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void noDuplicates() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[46,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void a() throws InterruptedException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[39,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void a() throws InterruptedException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[30,54] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[36,62] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[41,20] [PreferJavaTimeOverload] If the numeric primitive (50) represents a Duration, please call Thread.sleep(Duration) instead. (see https://errorprone.info/bugpattern/PreferJavaTimeOverload) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/ExampleTest.java:[48,20] [PreferJavaTimeOverload] If the numeric primitive (100) represents a Duration, please call Thread.sleep(Duration) instead. (see https://errorprone.info/bugpattern/PreferJavaTimeOverload) [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[50,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[98,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[110,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[38,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[63,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void logCaptureRule() {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[68,22] [ThrowSpecificExceptions] Base exception classes should be treated as abstract. If the exception is intended to be caught, throw a domain-specific exception. Otherwise, prefer a more specific exception for clarity. Common alternatives include: AssertionError, IllegalArgumentException, IllegalStateException, and (Guava's) VerifyException. (see https://errorprone.info/bugpattern/ThrowSpecificExceptions) Did you mean 'throw new AssertionError("boum thrown message", new IllegalArgumentException("boum thrown cause"));'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[72,32] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var ex = assertThrows(LogCaptureRuleException.class, () -> stmt.evaluate());'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[90,21] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var sw = new StringWriter();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[91,20] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var pw = new PrintWriter(sw);'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[99,23] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var logCaptureRule = new LogCaptureRule();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/tests/LogCaptureRuleInternalTest.java:[111,23] [Varifier] Consider using `var` here to avoid boilerplate. (see https://errorprone.info/bugpattern/Varifier) Did you mean 'var logCaptureRule = new LogCaptureRule();'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[72,16] [UnnecessarilyFullyQualified] This fully qualified name is unambiguous to the compiler if imported. (see https://errorprone.info/bugpattern/UnnecessarilyFullyQualified) Did you mean '@Serial'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[82,16] [UnnecessarilyFullyQualified] This fully qualified name is unambiguous to the compiler if imported. (see https://errorprone.info/bugpattern/UnnecessarilyFullyQualified) Did you mean '@Serial'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[41,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void webServerWithoutServlet() throws ServletException, IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[59,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void webServerWithoutServlet() throws ServletException, IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[49,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void webServerWithoutServlet() throws ServletException, IOException {'? [WARNING] /w/workspace/infrautils-sonar/testutils/src/test/java/org/opendaylight/infrautils/testutils/web/TestWebServerTest.java:[34,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void webServerWithoutServlet() throws ServletException, IOException {'? [INFO] [INFO] --- surefire:3.5.1:test (default-test) @ infrautils-testutils --- [INFO] Surefire report directory: /w/workspace/infrautils-sonar/testutils/target/surefire-reports [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- Picked up _JAVA_OPTIONS: [INFO] Running org.opendaylight.infrautils.testutils.web.TestWebServerTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.912 s -- in org.opendaylight.infrautils.testutils.web.TestWebServerTest [INFO] Running org.opendaylight.infrautils.testutils.tests.ClasspathHellDuplicatesCheckerTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.609 s -- in org.opendaylight.infrautils.testutils.tests.ClasspathHellDuplicatesCheckerTest [INFO] Running org.opendaylight.infrautils.testutils.tests.ClasspathHellDuplicatesCheckRuleTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s -- in org.opendaylight.infrautils.testutils.tests.ClasspathHellDuplicatesCheckRuleTest [INFO] Running org.opendaylight.infrautils.testutils.tests.ExampleTest [INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.561 s -- in org.opendaylight.infrautils.testutils.tests.ExampleTest [INFO] Running org.opendaylight.infrautils.testutils.tests.LogCaptureRuleInternalTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 s -- in org.opendaylight.infrautils.testutils.tests.LogCaptureRuleInternalTest [INFO] Running org.opendaylight.infrautils.testutils.tests.LogCaptureRuleTest [WARNING] Tests run: 13, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.025 s -- in org.opendaylight.infrautils.testutils.tests.LogCaptureRuleTest [INFO] Running org.opendaylight.infrautils.testutils.mockito.MockitoTest OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.823 s -- in org.opendaylight.infrautils.testutils.mockito.MockitoTest [INFO] Running org.opendaylight.infrautils.testutils.mockito.MethodExtensionsTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s -- in org.opendaylight.infrautils.testutils.mockito.MethodExtensionsTest [INFO] Running org.opendaylight.infrautils.testutils.mockito.MockitoUnstubbedMethodExceptionAnswerTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.070 s -- in org.opendaylight.infrautils.testutils.mockito.MockitoUnstubbedMethodExceptionAnswerTest [INFO] Running org.opendaylight.infrautils.testutils.mockito.MockitoExampleTutorialTest [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 s -- in org.opendaylight.infrautils.testutils.mockito.MockitoExampleTutorialTest [INFO] [INFO] Results: [INFO] [WARNING] Tests run: 55, Failures: 0, Errors: 0, Skipped: 2 [INFO] [INFO] [INFO] --- copy:14.0.4:copy-files (default) @ infrautils-testutils --- [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ infrautils-testutils --- [INFO] Building jar: /w/workspace/infrautils-sonar/testutils/target/infrautils-testutils-7.0.5-SNAPSHOT.jar [INFO] [INFO] --- javadoc:3.10.1:jar (attach-javadocs) @ infrautils-testutils --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx:2.8.2:makeBom (default) @ infrautils-testutils --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.5 with 32 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/testutils/target/bom.xml [INFO] attaching as infrautils-testutils-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/testutils/target/bom.json [INFO] attaching as infrautils-testutils-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder:2.0.1:check (find-duplicate-classpath-entries) @ infrautils-testutils --- [INFO] Checking compile classpath [INFO] Checking runtime classpath [INFO] Checking test classpath [INFO] [INFO] --- dependency:3.8.0:analyze-only (analyze-declarations) @ infrautils-testutils --- [WARNING] Used undeclared dependencies found: [WARNING] javax.servlet:javax.servlet-api:jar:3.1.0:compile [WARNING] org.eclipse.jetty:jetty-server:jar:9.4.54.v20240208:compile [WARNING] org.eclipse.jetty:jetty-servlet:jar:9.4.54.v20240208:compile [WARNING] org.eclipse.jetty:jetty-util:jar:9.4.54.v20240208:compile [WARNING] Unused declared dependencies found: [WARNING] org.awaitility:awaitility:jar:4.2.2:compile [WARNING] org.hamcrest:hamcrest-library:jar:3.0:compile [WARNING] org.eclipse.jetty:jetty-webapp:jar:9.4.54.v20240208:compile [WARNING] Non-test scoped test only dependencies found: [WARNING] org.hamcrest:hamcrest:jar:3.0:compile [INFO] [INFO] --- source:3.3.1:jar-no-fork (attach-sources) @ infrautils-testutils --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer:2.9.0:modernizer (modernizer) @ infrautils-testutils --- [INFO] [INFO] --- jacoco:0.8.12:report (report) @ infrautils-testutils --- [INFO] Loading execution data file /w/workspace/infrautils-sonar/testutils/target/code-coverage/jacoco.exec [INFO] Analyzed bundle 'ODL :: infrautils :: infrautils-testutils' with 26 classes [INFO] [INFO] --- install:3.1.3:install (default-install) @ infrautils-testutils --- [INFO] Installing /w/workspace/infrautils-sonar/testutils/pom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-testutils/7.0.5-SNAPSHOT/infrautils-testutils-7.0.5-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/testutils/target/infrautils-testutils-7.0.5-SNAPSHOT.jar to /tmp/r/org/opendaylight/infrautils/infrautils-testutils/7.0.5-SNAPSHOT/infrautils-testutils-7.0.5-SNAPSHOT.jar [INFO] Installing /w/workspace/infrautils-sonar/testutils/target/bom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-testutils/7.0.5-SNAPSHOT/infrautils-testutils-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/testutils/target/bom.json to /tmp/r/org/opendaylight/infrautils/infrautils-testutils/7.0.5-SNAPSHOT/infrautils-testutils-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] ------------< org.opendaylight.infrautils:infrautils-util >------------- [INFO] Building ODL :: infrautils :: infrautils-util 7.0.5-SNAPSHOT [4/37] [INFO] from common/util/pom.xml [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- clean:3.4.0:clean (default-clean) @ infrautils-util --- [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ infrautils-util --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-banned-dependencies) @ infrautils-util --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id:9.0.1:revision (get-git-infos) @ infrautils-util --- [INFO] [INFO] --- jacoco:0.8.12:prepare-agent (pre-unit-test) @ infrautils-util --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.12/org.jacoco.agent-0.8.12-runtime.jar=destfile=/w/workspace/infrautils-sonar/common/util/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- checkstyle:3.5.0:check (check-license) @ infrautils-util --- [INFO] [INFO] --- checkstyle:3.5.0:check (default) @ infrautils-util --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- dependency:3.8.0:copy (unpack-license) @ infrautils-util --- [INFO] Copying artifact 'org.opendaylight.odlparent:odl-license:license:14.0.4' (/tmp/r/org/opendaylight/odlparent/odl-license/14.0.4/odl-license-14.0.4.license) to /w/workspace/infrautils-sonar/common/util/target/classes/LICENSE [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ infrautils-util --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/common/util/src/main/resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ infrautils-util --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 9 source files with javac [forked debug release 21] to target/classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/common/util/src/main/java/org/opendaylight/infrautils/utils/concurrent/LoggingFutures.java:[189,56] [CanIgnoreReturnValueSuggester] Methods that always return 'this' (or return an input parameter) should be annotated with @com.google.errorprone.annotations.CanIgnoreReturnValue (see https://errorprone.info/bugpattern/CanIgnoreReturnValueSuggester) Did you mean '@CanIgnoreReturnValue'? [INFO] [INFO] >>> spotbugs:4.8.6.4:check (analyze-compile) > :spotbugs @ infrautils-util >>> [INFO] [INFO] --- spotbugs:4.8.6.4:spotbugs (spotbugs) @ infrautils-util --- [INFO] Fork Value is true [java] Picked up _JAVA_OPTIONS: [INFO] Done SpotBugs Analysis.... [INFO] [INFO] <<< spotbugs:4.8.6.4:check (analyze-compile) < :spotbugs @ infrautils-util <<< [INFO] [INFO] [INFO] --- spotbugs:4.8.6.4:check (analyze-compile) @ infrautils-util --- [INFO] BugInstance size is 0 [INFO] Error size is 0 [INFO] No errors/warnings found [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ infrautils-util --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/common/util/src/test/resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ infrautils-util --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 2 source files with javac [forked debug release 21] to target/test-classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[63,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[55,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[42,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[48,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/concurrent/tests/FutureListenerLogTest.java:[35,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void failingListenableFuture() {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/tests/ClasspathHellDuplicatesCheckRuleTest.java:[28,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void something() throws Exception {'? [WARNING] /w/workspace/infrautils-sonar/common/util/src/test/java/org/opendaylight/infrautils/utils/tests/ClasspathHellDuplicatesCheckRuleTest.java:[25,62] [NonFinalStaticField] Static fields should almost always be final. (see https://errorprone.info/bugpattern/NonFinalStaticField) [INFO] [INFO] --- surefire:3.5.1:test (default-test) @ infrautils-util --- [INFO] Surefire report directory: /w/workspace/infrautils-sonar/common/util/target/surefire-reports [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- Picked up _JAVA_OPTIONS: [INFO] Running org.opendaylight.infrautils.utils.tests.ClasspathHellDuplicatesCheckRuleTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.332 s -- in org.opendaylight.infrautils.utils.tests.ClasspathHellDuplicatesCheckRuleTest [INFO] Running org.opendaylight.infrautils.utils.concurrent.tests.FutureListenerLogTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.108 s -- in org.opendaylight.infrautils.utils.concurrent.tests.FutureListenerLogTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] --- copy:14.0.4:copy-files (default) @ infrautils-util --- [INFO] [INFO] --- bundle:5.1.9:bundle (default-bundle) @ infrautils-util --- [INFO] Building bundle: /w/workspace/infrautils-sonar/common/util/target/infrautils-util-7.0.5-SNAPSHOT.jar [INFO] Writing manifest: /w/workspace/infrautils-sonar/common/util/target/classes/META-INF/MANIFEST.MF [INFO] [INFO] --- javadoc:3.10.1:jar (attach-javadocs) @ infrautils-util --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx:2.8.2:makeBom (default) @ infrautils-util --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.5 with 12 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/common/util/target/bom.xml [INFO] attaching as infrautils-util-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/common/util/target/bom.json [INFO] attaching as infrautils-util-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder:2.0.1:check (find-duplicate-classpath-entries) @ infrautils-util --- [INFO] Checking compile classpath [INFO] Checking runtime classpath [INFO] Checking test classpath [INFO] [INFO] --- dependency:3.8.0:analyze-only (analyze-declarations) @ infrautils-util --- [INFO] No dependency problems found [INFO] [INFO] --- source:3.3.1:jar-no-fork (attach-sources) @ infrautils-util --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer:2.9.0:modernizer (modernizer) @ infrautils-util --- [INFO] [INFO] --- jacoco:0.8.12:report (report) @ infrautils-util --- [INFO] Loading execution data file /w/workspace/infrautils-sonar/common/util/target/code-coverage/jacoco.exec [INFO] Analyzed bundle 'ODL :: infrautils :: infrautils-util' with 8 classes [INFO] [INFO] --- install:3.1.3:install (default-install) @ infrautils-util --- [INFO] Installing /w/workspace/infrautils-sonar/common/util/pom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-util/7.0.5-SNAPSHOT/infrautils-util-7.0.5-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/common/util/target/infrautils-util-7.0.5-SNAPSHOT.jar to /tmp/r/org/opendaylight/infrautils/infrautils-util/7.0.5-SNAPSHOT/infrautils-util-7.0.5-SNAPSHOT.jar [INFO] Installing /w/workspace/infrautils-sonar/common/util/target/bom.xml to /tmp/r/org/opendaylight/infrautils/infrautils-util/7.0.5-SNAPSHOT/infrautils-util-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/common/util/target/bom.json to /tmp/r/org/opendaylight/infrautils/infrautils-util/7.0.5-SNAPSHOT/infrautils-util-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- bundle:5.1.9:install (default-install) @ infrautils-util --- [INFO] Writing OBR metadata [INFO] Installing org/opendaylight/infrautils/infrautils-util/7.0.5-SNAPSHOT/infrautils-util-7.0.5-SNAPSHOT.jar [INFO] Writing OBR metadata [INFO] [INFO] -----------------< org.opendaylight.infrautils:inject >----------------- [INFO] Building ODL :: infrautils :: inject 7.0.5-SNAPSHOT [5/37] [INFO] from inject/inject/pom.xml [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- clean:3.4.0:clean (default-clean) @ inject --- [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ inject --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-banned-dependencies) @ inject --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id:9.0.1:revision (get-git-infos) @ inject --- [INFO] [INFO] --- jacoco:0.8.12:prepare-agent (pre-unit-test) @ inject --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.12/org.jacoco.agent-0.8.12-runtime.jar=destfile=/w/workspace/infrautils-sonar/inject/inject/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- checkstyle:3.5.0:check (check-license) @ inject --- [INFO] [INFO] --- checkstyle:3.5.0:check (default) @ inject --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- dependency:3.8.0:copy (unpack-license) @ inject --- [INFO] Copying artifact 'org.opendaylight.odlparent:odl-license:license:14.0.4' (/tmp/r/org/opendaylight/odlparent/odl-license/14.0.4/odl-license-14.0.4.license) to /w/workspace/infrautils-sonar/inject/inject/target/classes/LICENSE [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ inject --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/inject/inject/src/main/resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ inject --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 5 source files with javac [forked debug release 21] to target/classes [INFO] [INFO] >>> spotbugs:4.8.6.4:check (analyze-compile) > :spotbugs @ inject >>> [INFO] [INFO] --- spotbugs:4.8.6.4:spotbugs (spotbugs) @ inject --- [INFO] Fork Value is true [java] Picked up _JAVA_OPTIONS: [INFO] Done SpotBugs Analysis.... [INFO] [INFO] <<< spotbugs:4.8.6.4:check (analyze-compile) < :spotbugs @ inject <<< [INFO] [INFO] [INFO] --- spotbugs:4.8.6.4:check (analyze-compile) @ inject --- [INFO] BugInstance size is 0 [INFO] Error size is 0 [INFO] No errors/warnings found [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ inject --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/inject/inject/src/test/resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ inject --- [INFO] No sources to compile [INFO] [INFO] --- surefire:3.5.1:test (default-test) @ inject --- [INFO] No tests to run. [INFO] [INFO] --- copy:14.0.4:copy-files (default) @ inject --- [INFO] [INFO] --- bundle:5.1.9:bundle (default-bundle) @ inject --- [INFO] Building bundle: /w/workspace/infrautils-sonar/inject/inject/target/inject-7.0.5-SNAPSHOT.jar [INFO] Writing manifest: /w/workspace/infrautils-sonar/inject/inject/target/classes/META-INF/MANIFEST.MF [INFO] [INFO] --- javadoc:3.10.1:jar (attach-javadocs) @ inject --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx:2.8.2:makeBom (default) @ inject --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.5 with 5 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/inject/inject/target/bom.xml [INFO] attaching as inject-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/inject/inject/target/bom.json [INFO] attaching as inject-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder:2.0.1:check (find-duplicate-classpath-entries) @ inject --- [INFO] Checking compile classpath [INFO] Checking runtime classpath [INFO] Checking test classpath [INFO] [INFO] --- dependency:3.8.0:analyze-only (analyze-declarations) @ inject --- [INFO] No dependency problems found [INFO] [INFO] --- source:3.3.1:jar-no-fork (attach-sources) @ inject --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer:2.9.0:modernizer (modernizer) @ inject --- [INFO] [INFO] --- jacoco:0.8.12:report (report) @ inject --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- install:3.1.3:install (default-install) @ inject --- [INFO] Installing /w/workspace/infrautils-sonar/inject/inject/pom.xml to /tmp/r/org/opendaylight/infrautils/inject/7.0.5-SNAPSHOT/inject-7.0.5-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/inject/inject/target/inject-7.0.5-SNAPSHOT.jar to /tmp/r/org/opendaylight/infrautils/inject/7.0.5-SNAPSHOT/inject-7.0.5-SNAPSHOT.jar [INFO] Installing /w/workspace/infrautils-sonar/inject/inject/target/bom.xml to /tmp/r/org/opendaylight/infrautils/inject/7.0.5-SNAPSHOT/inject-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/inject/inject/target/bom.json to /tmp/r/org/opendaylight/infrautils/inject/7.0.5-SNAPSHOT/inject-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- bundle:5.1.9:install (default-install) @ inject --- [INFO] Installing org/opendaylight/infrautils/inject/7.0.5-SNAPSHOT/inject-7.0.5-SNAPSHOT.jar [INFO] Writing OBR metadata [INFO] [INFO] ---------< org.opendaylight.infrautils:inject.guice.testutils >--------- [INFO] Building ODL :: infrautils :: inject.guice.testutils 7.0.5-SNAPSHOT [6/37] [INFO] from inject/inject-guice-testutils/pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.4.0:clean (default-clean) @ inject.guice.testutils --- [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ inject.guice.testutils --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-banned-dependencies) @ inject.guice.testutils --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id:9.0.1:revision (get-git-infos) @ inject.guice.testutils --- [INFO] [INFO] --- jacoco:0.8.12:prepare-agent (pre-unit-test) @ inject.guice.testutils --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.12/org.jacoco.agent-0.8.12-runtime.jar=destfile=/w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- checkstyle:3.5.0:check (check-license) @ inject.guice.testutils --- [INFO] [INFO] --- checkstyle:3.5.0:check (default) @ inject.guice.testutils --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- dependency:3.8.0:copy (unpack-license) @ inject.guice.testutils --- [INFO] Copying artifact 'org.opendaylight.odlparent:odl-license:license:14.0.4' (/tmp/r/org/opendaylight/odlparent/odl-license/14.0.4/odl-license-14.0.4.license) to /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/classes/LICENSE [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ inject.guice.testutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ inject.guice.testutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 4 source files with javac [forked debug release 21] to target/classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractGuiceJsr250Module.java:[17,56] [deprecation] AbstractCheckedModule in org.opendaylight.infrautils.inject.guice.testutils has been deprecated [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractGuiceJsr250Module.java:[17,56] [deprecation] AbstractCheckedModule in org.opendaylight.infrautils.inject.guice.testutils has been deprecated [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractGuiceJsr250Module.java:[17,56] [deprecation] AbstractCheckedModule in org.opendaylight.infrautils.inject.guice.testutils has been deprecated [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/GuiceRule.java:[64,51] [varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter moduleClasses [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/GuiceRule.java:[68,27] [PreferredInterfaceType] Method return type can use a more specific type to convey more information to callers. (see https://errorprone.info/bugpattern/PreferredInterfaceType) Did you mean 'private static List createModules(List> moduleClasses) {'? [INFO] [INFO] >>> spotbugs:4.8.6.4:check (analyze-compile) > :spotbugs @ inject.guice.testutils >>> [INFO] [INFO] --- spotbugs:4.8.6.4:spotbugs (spotbugs) @ inject.guice.testutils --- [INFO] Fork Value is true [java] Picked up _JAVA_OPTIONS: [INFO] Done SpotBugs Analysis.... [INFO] [INFO] <<< spotbugs:4.8.6.4:check (analyze-compile) < :spotbugs @ inject.guice.testutils <<< [INFO] [INFO] [INFO] --- spotbugs:4.8.6.4:check (analyze-compile) @ inject.guice.testutils --- [INFO] BugInstance size is 0 [INFO] Error size is 0 [INFO] No errors/warnings found [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ inject.guice.testutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/test/resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ inject.guice.testutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 5 source files with javac [forked debug release 21] to target/test-classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExampleGuiceRuleTest.java:[29,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void guiceWithRule() {'? [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExamplePureGuiceTest.java:[29,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void postConstruct() {'? [WARNING] /w/workspace/infrautils-sonar/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/GuiceRuleForgotAnnotationsModuleTest.java:[29,16] [UnnecessaryTestMethodPrefix] A `test` prefix for a JUnit4 test is redundant, and a holdover from JUnit3. The `@Test` annotation makes it clear it's a test. (see https://errorprone.info/bugpattern/UnnecessaryTestMethodPrefix) Did you mean 'public void guiceWithRule() {'? [INFO] [INFO] --- surefire:3.5.1:test (default-test) @ inject.guice.testutils --- [INFO] Surefire report directory: /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/surefire-reports [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- Picked up _JAVA_OPTIONS: [INFO] Running org.opendaylight.infrautils.inject.guice.testutils.tests.ExamplePureGuiceTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.416 s -- in org.opendaylight.infrautils.inject.guice.testutils.tests.ExamplePureGuiceTest [INFO] Running org.opendaylight.infrautils.inject.guice.testutils.tests.GuiceRuleForgotAnnotationsModuleTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 s -- in org.opendaylight.infrautils.inject.guice.testutils.tests.GuiceRuleForgotAnnotationsModuleTest [INFO] Running org.opendaylight.infrautils.inject.guice.testutils.tests.ExampleGuiceRuleTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.030 s -- in org.opendaylight.infrautils.inject.guice.testutils.tests.ExampleGuiceRuleTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] --- copy:14.0.4:copy-files (default) @ inject.guice.testutils --- [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ inject.guice.testutils --- [INFO] Building jar: /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/inject.guice.testutils-7.0.5-SNAPSHOT.jar [INFO] [INFO] --- javadoc:3.10.1:jar (attach-javadocs) @ inject.guice.testutils --- [INFO] Skipping javadoc generation [INFO] [INFO] --- cyclonedx:2.8.2:makeBom (default) @ inject.guice.testutils --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.5 with 19 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/bom.xml [INFO] attaching as inject.guice.testutils-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/bom.json [INFO] attaching as inject.guice.testutils-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- duplicate-finder:2.0.1:check (find-duplicate-classpath-entries) @ inject.guice.testutils --- [INFO] Checking compile classpath [INFO] Checking runtime classpath [INFO] Checking test classpath [INFO] [INFO] --- dependency:3.8.0:analyze-only (analyze-declarations) @ inject.guice.testutils --- [WARNING] Used undeclared dependencies found: [WARNING] com.mycila.guice.extensions:mycila-guice-closeable:jar:5.0:compile [WARNING] Non-test scoped test only dependencies found: [WARNING] jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile [WARNING] com.guicedee.services:javax.inject:jar:1.0.20.2:compile [INFO] [INFO] --- source:3.3.1:jar-no-fork (attach-sources) @ inject.guice.testutils --- [INFO] Skipping source per configuration. [INFO] [INFO] --- modernizer:2.9.0:modernizer (modernizer) @ inject.guice.testutils --- [INFO] [INFO] --- jacoco:0.8.12:report (report) @ inject.guice.testutils --- [INFO] Loading execution data file /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/code-coverage/jacoco.exec [INFO] Analyzed bundle 'ODL :: infrautils :: inject.guice.testutils' with 5 classes [INFO] [INFO] --- install:3.1.3:install (default-install) @ inject.guice.testutils --- [INFO] Installing /w/workspace/infrautils-sonar/inject/inject-guice-testutils/pom.xml to /tmp/r/org/opendaylight/infrautils/inject.guice.testutils/7.0.5-SNAPSHOT/inject.guice.testutils-7.0.5-SNAPSHOT.pom [INFO] Installing /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/inject.guice.testutils-7.0.5-SNAPSHOT.jar to /tmp/r/org/opendaylight/infrautils/inject.guice.testutils/7.0.5-SNAPSHOT/inject.guice.testutils-7.0.5-SNAPSHOT.jar [INFO] Installing /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/bom.xml to /tmp/r/org/opendaylight/infrautils/inject.guice.testutils/7.0.5-SNAPSHOT/inject.guice.testutils-7.0.5-SNAPSHOT-cyclonedx.xml [INFO] Installing /w/workspace/infrautils-sonar/inject/inject-guice-testutils/target/bom.json to /tmp/r/org/opendaylight/infrautils/inject.guice.testutils/7.0.5-SNAPSHOT/inject.guice.testutils-7.0.5-SNAPSHOT-cyclonedx.json [INFO] [INFO] ---------------< org.opendaylight.infrautils:itestutils >--------------- [INFO] Building ODL :: infrautils :: itestutils 7.0.5-SNAPSHOT [7/37] [INFO] from itestutils/itestutils/pom.xml [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- clean:3.4.0:clean (default-clean) @ itestutils --- [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ itestutils --- [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- enforcer:3.5.0:enforce (enforce-banned-dependencies) @ itestutils --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- git-commit-id:9.0.1:revision (get-git-infos) @ itestutils --- [INFO] [INFO] --- jacoco:0.8.12:prepare-agent (pre-unit-test) @ itestutils --- [INFO] argLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.12/org.jacoco.agent-0.8.12-runtime.jar=destfile=/w/workspace/infrautils-sonar/itestutils/itestutils/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/generated-test-sources/**:**/yang-gen/**:**/yang-gen-config/**:**/yang-gen-sal/**:**/yang-gen-code/**:**/pax/** [INFO] [INFO] --- checkstyle:3.5.0:check (check-license) @ itestutils --- [INFO] [INFO] --- checkstyle:3.5.0:check (default) @ itestutils --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- dependency:3.8.0:copy (unpack-license) @ itestutils --- [INFO] Copying artifact 'org.opendaylight.odlparent:odl-license:license:14.0.4' (/tmp/r/org/opendaylight/odlparent/odl-license/14.0.4/odl-license-14.0.4.license) to /w/workspace/infrautils-sonar/itestutils/itestutils/target/classes/LICENSE [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ itestutils --- [INFO] skip non existing resourceDirectory /w/workspace/infrautils-sonar/itestutils/itestutils/src/main/resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ itestutils --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 1 source file with javac [forked debug release 21] to target/classes [WARNING] Picked up _JAVA_OPTIONS: /w/workspace/infrautils-sonar/itestutils/itestutils/src/main/java/org/opendaylight/infrautils/itestutils/AbstractIntegrationTest.java:[65,23] [AvoidObjectArrays] Avoid returning a Option[]; consider an ImmutableList