SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.1

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
29 8 0 0

Files

Class Bugs
org.joda.money.BigMoney 1
org.joda.money.CurrencyMismatchException 4
org.joda.money.Money 1
org.joda.money.format.MoneyParseContext 2

org.joda.money.BigMoney

Bug Category Details Line Priority
org.joda.money.BigMoney.getCurrencyUnit() may expose internal representation by returning BigMoney.currency MALICIOUS_CODE EI_EXPOSE_REP 457 Medium

org.joda.money.CurrencyMismatchException

Bug Category Details Line Priority
org.joda.money.CurrencyMismatchException.getFirstCurrency() may expose internal representation by returning CurrencyMismatchException.firstCurrency MALICIOUS_CODE EI_EXPOSE_REP 57 Medium
org.joda.money.CurrencyMismatchException.getSecondCurrency() may expose internal representation by returning CurrencyMismatchException.secondCurrency MALICIOUS_CODE EI_EXPOSE_REP 66 Medium
new org.joda.money.CurrencyMismatchException(CurrencyUnit, CurrencyUnit) may expose internal representation by storing an externally mutable object into CurrencyMismatchException.firstCurrency MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
new org.joda.money.CurrencyMismatchException(CurrencyUnit, CurrencyUnit) may expose internal representation by storing an externally mutable object into CurrencyMismatchException.secondCurrency MALICIOUS_CODE EI_EXPOSE_REP2 47 Medium

org.joda.money.Money

Bug Category Details Line Priority
org.joda.money.Money.toBigMoney() may expose internal representation by returning Money.money MALICIOUS_CODE EI_EXPOSE_REP 1198 Medium

org.joda.money.format.MoneyParseContext

Bug Category Details Line Priority
org.joda.money.format.MoneyParseContext.getCurrency() may expose internal representation by returning MoneyParseContext.currency MALICIOUS_CODE EI_EXPOSE_REP 201 Medium
org.joda.money.format.MoneyParseContext.setCurrency(CurrencyUnit) may expose internal representation by storing an externally mutable object into MoneyParseContext.currency MALICIOUS_CODE EI_EXPOSE_REP2 210 Medium

Back to top

Version: 1.0.4. Last Published: 2023-10-29.

Reflow Maven skin.