SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.8.6
Threshold is medium
Effort is default
Summary
Classes |
Bugs |
Errors |
Missing Classes |
28 |
8 |
0 |
0 |
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 |
1197 |
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 |