Skip to content

Update maven.yml

Update maven.yml #1

Triggered via push July 16, 2024 21:34
Status Success
Total duration 14m 17s
Artifacts

code_quality.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

164 warnings and 1 notice
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/database/SimpleDatabaseHelperV2.java#L908
Condition `currentDatabaseVersion == 15` is always `true`
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/obj/QUserImpl.java#L145
Condition `this.uniqueId != null` is always `true` when reached
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ShopLoader.java#L246
Condition `shop.getItem() == null` is always `false`
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ShopLoader.java#L262
Condition `shop.getOwner() == null` is always `false`
Constant values: addon/shopitemonly/src/main/java/com/ghostchu/quickshop/addon/shopitemonly/Main.java#L84
Condition `event.getDestination() == null` is always `false`
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/MsgUtil.java#L499
Condition `PLUGIN == null` is always `false`
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ShopLoader.java#L258
Condition `shop.getLocation() == null` is always `false`
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/obj/QUserImpl.java#L226
Condition `this.uniqueId != null` is always `true`
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L207
Condition `symbolLink == null` is always `false`
Constant values: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L210
Condition `inventoryWrapperProvider == null` is always `false`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L192
Method invocation `hasDisplayName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/SimpleShopManager.java#L877
Method invocation `getType` may produce `NullPointerException`
Nullability and data flow problems: addon/plan/src/main/java/com/ghostchu/quickshop/addon/plan/util/DataUtil.java#L77
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/SimpleShopManager.java#L838
Method invocation `hasItemFlag` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L957
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L1527
Method invocation `hasEnchants` may produce `NullPointerException`
Nullability and data flow problems: addon/dynmap/src/main/java/com/ghostchu/quickshop/addon/dynmap/Main.java#L45
Method invocation `getMarkerAPI` may produce `NullPointerException`
Nullability and data flow problems: compatibility/openinv/src/main/java/com/ghostchu/quickshop/compatibility/openinv/OpenInvCommand.java#L46
Argument `plugin.getConfig().getString("messages.to-echest")` might be null
Nullability and data flow problems: addon/shopitemonly/src/main/java/com/ghostchu/quickshop/addon/shopitemonly/Main.java#L76
Method invocation `dropItemNaturally` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/MetricDataUtil.java#L88
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/economy/impl/Economy_Reserve.java#L261
Method invocation `hasCurrency` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L1567
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/Util.java#L848
Method invocation `isChunkLoaded` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L403
Method invocation `getDamage` may produce `NullPointerException`
Nullability and data flow problems: compatibility/openinv/src/main/java/com/ghostchu/quickshop/compatibility/openinv/Main.java#L33
Argument `getConfig().getString("messages.description")` might be null
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L348
Method invocation `isSpawned` may produce `NullPointerException`
Nullability and data flow problems: compatibility/lands/src/main/java/com/ghostchu/quickshop/compatibility/lands/Main.java#L149
Argument `event.getShop().getLocation().getWorld()` might be null
Nullability and data flow problems: quickshop-api/src/main/java/com/ghostchu/quickshop/api/serialize/BlockPos.java#L19
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/history/ShopHistory.java#L211
Method invocation `toEpochMilli` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/history/ShopHistory.java#L212
Method invocation `toEpochMilli` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/economy/impl/Economy_Reserve.java#L55
Method invocation `economyProvided` may produce `NullPointerException`
Nullability and data flow problems: addon/dynmap/src/main/java/com/ghostchu/quickshop/addon/dynmap/Main.java#L140
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: compatibility/openinv/src/main/java/com/ghostchu/quickshop/compatibility/openinv/OpenInvCommand.java#L42
Argument `plugin.getApi().getInventoryWrapperRegistry().get("QuickShop-Hikari")` might be null
Nullability and data flow problems: addon/plan/src/main/java/com/ghostchu/quickshop/addon/plan/util/DataUtil.java#L88
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/MetricDataUtil.java#L77
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L747
Method invocation `hasDisplayName` may produce `NullPointerException`
Nullability and data flow problems: compatibility/openinv/src/main/java/com/ghostchu/quickshop/compatibility/openinv/OpenInvCommand.java#L43
Argument `plugin.getConfig().getString("messages.to-chest")` might be null
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L1247
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: compatibility/lands/src/main/java/com/ghostchu/quickshop/compatibility/lands/Main.java#L47
Argument `event.getShop().getLocation().getWorld()` might be null
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/SimpleShopChunk.java#L53
Method invocation `getName` may produce `NullPointerException`
Nullability and data flow problems: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L40
Argument `plugin.getConfig().getConfigurationSection("matcher.item")` might be null
Mismatched query and update of collection: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ShopLoader.java#L297
Contents of collection `permissions` are updated, but never queried
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L390
'getItems()' is declared in unstable interface 'org.bukkit.inventory.meta.BundleMeta' marked with @ApiStatus.Experimental
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L385
'org.bukkit.inventory.meta.BundleMeta' is marked unstable with @ApiStatus.Experimental
Unstable API Usage: compatibility/velocity/src/main/java/com/ghostchu/quickshop/compatibility/velocity/Main.java#L143
'getPlayer()' is declared in unstable class 'com.velocitypowered.api.event.player.ServerPostConnectEvent' marked with @beta
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L385
'org.bukkit.inventory.meta.BundleMeta' is marked unstable with @ApiStatus.Experimental
Unstable API Usage: compatibility/velocity/src/main/java/com/ghostchu/quickshop/compatibility/velocity/Main.java#L142
'com.velocitypowered.api.event.player.ServerPostConnectEvent' is marked unstable with @beta
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L382
'org.bukkit.inventory.meta.BundleMeta' is marked unstable with @ApiStatus.Experimental
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/ContainerShop.java#L64
'NamespacedKey(java.lang.String, java.lang.String)' is marked unstable with @ApiStatus.Internal
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L379
'org.bukkit.inventory.meta.BundleMeta' is marked unstable with @ApiStatus.Experimental
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L386
'hasItems()' is declared in unstable interface 'org.bukkit.inventory.meta.BundleMeta' marked with @ApiStatus.Experimental
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L386
'hasItems()' is declared in unstable interface 'org.bukkit.inventory.meta.BundleMeta' marked with @ApiStatus.Experimental
Unstable API Usage: compatibility/velocity/src/main/java/com/ghostchu/quickshop/compatibility/velocity/Main.java#L123
'newDataOutput()' is declared in unstable class 'com.google.common.io.ByteStreams' marked with @beta
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L390
'getItems()' is declared in unstable interface 'org.bukkit.inventory.meta.BundleMeta' marked with @ApiStatus.Experimental
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L389
'hasItems()' is declared in unstable interface 'org.bukkit.inventory.meta.BundleMeta' marked with @ApiStatus.Experimental
Unstable API Usage: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/matcher/item/QuickShopItemMatcherImpl.java#L379
'org.bukkit.inventory.meta.BundleMeta' is marked unstable with @ApiStatus.Experimental
Unused assignment: quickshop-bukkit/src/main/java/com/ghostchu/quickshop/command/subcommand/SubCommand_Find.java#L130
The value `previewComponentPrePopulateEvent.getItemStack()` assigned to `previewItemStack` is never used
qodana
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, JetBrains/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/