Skip to content

Fix potential error when there is zero stock #79

Fix potential error when there is zero stock

Fix potential error when there is zero stock #79

Re-run triggered January 5, 2025 21:10
Status Success
Total duration 8m 33s
Artifacts 1

code_quality.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
qodana
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Nullability and data flow problems: src/main/java/com/Acrobot/ChestShop/Dependencies.java#L113
Method invocation `getDescription` may produce `NullPointerException`
Deprecated member is still used: src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java#L171
Deprecated member 'getAccountFromShortName' is still used
Field accessed in both 'synchronized' and unsynchronized contexts: src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java#L42
Field `accounts` is accessed in both synchronized and unsynchronized contexts
Field accessed in both 'synchronized' and unsynchronized contexts: src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java#L46
Field `shortToAccount` is accessed in both synchronized and unsynchronized contexts
Field accessed in both 'synchronized' and unsynchronized contexts: src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java#L44
Field `usernameToAccount` is accessed in both synchronized and unsynchronized contexts
Non-constant logger: src/main/java/com/Acrobot/ChestShop/ChestShop.java#L124
Non-constant logger field `shopLogger`
Unused assignment: src/main/java/com/Acrobot/Breeze/Utils/Encoding/Base64.java#L1329
Variable `encodedData` initializer `null` is redundant
Unused assignment: src/main/java/com/Acrobot/Breeze/Utils/Encoding/Base64.java#L1334
Variable `numBytes` initializer `0` is redundant
Unused assignment: src/main/java/com/Acrobot/Breeze/Utils/Encoding/Base64.java#L975
Variable `decoded` initializer `null` is redundant
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "qodana-report". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
qodana-report
15.2 MB