Skip to content

Commit

Permalink
Reformatted code by maven
Browse files Browse the repository at this point in the history
  • Loading branch information
sgflt committed May 19, 2024
1 parent 3269e00 commit f2213c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class SMAIndicator extends CachedIndicator<Num> {
private final int barCount;
private RunningTotalIndicator previousSum;


/**
* Constructor.
*
Expand All @@ -47,7 +46,7 @@ public class SMAIndicator extends CachedIndicator<Num> {
*/
public SMAIndicator(Indicator<Num> indicator, int barCount) {
super(indicator);
this.previousSum = new RunningTotalIndicator(indicator,barCount);
this.previousSum = new RunningTotalIndicator(indicator, barCount);
this.barCount = barCount;
}

Expand All @@ -58,7 +57,6 @@ protected Num calculate(int index) {
return sum.dividedBy(numOf(realBarCount));
}


private Num partialSum(int index) {
return this.previousSum.getValue(index);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public RunningTotalIndicator(Indicator<Num> indicator, int barCount) {
this.barCount = barCount;
}


@Override
protected Num calculate(int index) {
// serial access can benefit from previous partial sums
Expand Down Expand Up @@ -95,7 +94,6 @@ public String toString() {
return getClass().getSimpleName() + " barCount: " + barCount;
}


@Override
public int getUnstableBars() {
return barCount;
Expand Down

0 comments on commit f2213c6

Please sign in to comment.