Skip to content

Commit

Permalink
Update documentation and method visibility of Calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Dec 7, 2020
1 parent 8645936 commit 87599b8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
*
* @author Andi Huber
* @author Werner Keil
* @version 1.1
* @since 2.0
*/
public class Calculator {
Expand All @@ -50,7 +51,7 @@ public class Calculator {
* This implementation is *not* thread-safe, hence threads should not share instances of this.
* @return a {@code Calculator} initialized with the default {@link NumberSystem}
*/
protected static Calculator getInstance() {
private static Calculator getInstance() {
return new Calculator(Calculus.currentNumberSystem());
}

Expand Down Expand Up @@ -206,7 +207,4 @@ public Number peek() {
public boolean isLessThanOne() {
return ns.isLessThanOne(acc);
}



}

0 comments on commit 87599b8

Please sign in to comment.