Skip to content

Commit

Permalink
330: Apply flyweight pattern to Calculator
Browse files Browse the repository at this point in the history
Task-Url: #330
  • Loading branch information
keilw committed Feb 17, 2021
1 parent cd19624 commit 92d49f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
*
* @author Andi Huber
* @author Werner Keil
* @version 1.1
* @version 1.2, Feb 17, 2021
* @since 2.0
*/
public class Calculator {
public final class Calculator {

/**
* Returns a new instance of a {@code Calculator} initialized with the default {@link NumberSystem},
Expand Down Expand Up @@ -207,4 +207,4 @@ public Number peek() {
public boolean isLessThanOne() {
return ns.isLessThanOne(acc);
}
}
}

0 comments on commit 92d49f9

Please sign in to comment.