Skip to content

Commit 95a5f3c

Browse files
committed
make ++ and -- uniform without spaces before
1 parent a89facf commit 95a5f3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/java/swim/tutorial/UnitAgent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class UnitAgent extends AbstractAgent {
6363

6464
// calculating overall mean to send to average lane
6565
countSum += n.get("count").longValue();
66-
countTotal ++;
66+
countTotal++;
6767
final long setAvg = countSum / countTotal;
6868
avg.set(setAvg);
6969

@@ -72,7 +72,7 @@ public class UnitAgent extends AbstractAgent {
7272
index = 0;
7373
}
7474
recentData[index] = n.get("count").longValue();
75-
index ++;
75+
index++;
7676

7777
// calculating local mean to send to local average lane
7878
long localSum = 0;
@@ -104,7 +104,7 @@ public class UnitAgent extends AbstractAgent {
104104

105105
// remove logic for avg lane
106106
countSum -= o.get("count").longValue() ;
107-
countTotal --;
107+
countTotal--;
108108
final long setUpdatedAvg = countSum / countTotal;
109109
avg.set(setUpdatedAvg);
110110

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy