Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
Rename param inputValue to value in Price.parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
chirhonul committed Aug 20, 2018
1 parent 9e2b40b commit e5039a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/bisq/core/monetary/Price.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public Price(Monetary monetary) {
* Parse the Bitcoin {@code Price} given a {@code currencyCode} and {@code inputValue}.
*
* @param currencyCode The currency code to parse, e.g "USD" or "LTC".
* @param inputValue The value to parse as a String, e.g "2.54" or "-0.0001".
* @param value The value to parse as a String, e.g "2.54" or "-0.0001".
* @return The parsed Price.
*/
public static Price parse(String currencyCode, String inputValue) {
final String cleaned = inputValue.replace(",", ".");
public static Price parse(String currencyCode, String value) {
final String cleaned = value.replace(",", ".");
if (CurrencyUtil.isFiatCurrency(currencyCode))
return new Price(Fiat.parseFiat(currencyCode, cleaned));
else
Expand Down

0 comments on commit e5039a2

Please sign in to comment.