Skip to content

Commit

Permalink
tweaks on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cric96 committed Feb 25, 2022
1 parent 3e298f3 commit 6881af0
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public AccountHolder(final String name, final String surname, final int id) {
}

/**
* Retrieve the name of the the person registered as possible account holder
* Retrieve the name of the person registered as possible account holder
* @return the name of the holder
*/
public String getName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public interface BankAccount {
void deposit(int usrID, double amount);

/**
* Allows the withdraw of an amount from the account, if the given usrID corresponds to the register holder ID
* Allows the withdrawal of an amount from the account, if the given usrID corresponds to the register holder ID
* of the bank account. This ID acts like an "identification token" .
*
* @param usrID the id of the user that wants do the withdraw
* @param usrID the id of the user that wants do the withdrawal
* @param amount the amount of the withdraw
*/
void withdraw(int usrID, double amount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This class represent a particular instance of a BankAccount.
* In particular, a Simple Bank Account allows always the deposit
* while the withdraw is allowed only if the balance greater or equal the withdrawal amount
* while the withdrawal is allowed only if the balance greater or equal the withdrawal amount
*/
public class SimpleBankAccount implements BankAccount {

Expand Down
4 changes: 2 additions & 2 deletions pps-lab01-tdd/src/lab01/tdd/CircularList.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public interface CircularList {
int size();

/**
* Check if the list is empty
* Checks if the list is empty
* @return true if the list is empty, false otherwise
*/
boolean isEmpty();

/**
* Provides the next element of the list. Example: having a list like {1,2,3} the first call of next() returns 1,
* the second call returns 2, then 3 is returned at the third call. Finally the fourth one return 1 again,
* the second call returns 2, then 3 is returned to the third call. Finally, the fourth one return 1 again,
* because the circular mechanism.
* @return the next element into the list
*/
Expand Down

0 comments on commit 6881af0

Please sign in to comment.