Skip to content

Commit

Permalink
Issue iluwatar#2377: Refactored according to the rules defined for th…
Browse files Browse the repository at this point in the history
…e repo code
  • Loading branch information
MugheesQasim committed Apr 11, 2023
1 parent e537c39 commit fab4172
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@
*
*/
public record InvoiceGenerator(double amount, TaxCalculator taxCalculator) {
/** TaxCalculator description:
* The TaxCalculator interface to calculate the payable tax.
*
* Amount description:
* The base product amount without tax.
*/
/** TaxCalculator description:
* The TaxCalculator interface to calculate the payable tax.
* Amount description:
* The base product amount without tax.
*/
public double getAmountWithTax() {
return amount + taxCalculator.calculate(amount);
}
Expand Down

0 comments on commit fab4172

Please sign in to comment.