cleanup intention description and template

This commit is contained in:
Bas Leijdekkers
2017-01-19 13:36:22 +01:00
parent f735576871
commit feb4d6c436
3 changed files with 13 additions and 11 deletions
@@ -1,7 +1,8 @@
void m() {
LongAdder l = new LongAdder();
public class X {
void m() {
LongAdder l = new LongAdder();
l.increment();
long res = l.sum();
l.increment();
long res = l.sum();
}
}
@@ -1,7 +1,8 @@
void m() {
AtomicLong <spot>l</spot> = new AtomicLong();
public class X {
void m() {
AtomicLong <spot>l</spot> = new AtomicLong();
l.incrementAndGet();
long res = l.get();
l.incrementAndGet();
long res = l.get();
}
}
@@ -1,5 +1,5 @@
<html>
<body>
This intention replaces j.u.c.a.AtomicLong/AtomicInteger variables with j.u.c.a.LongAdder
Replaces the type of an AtomicLong or AtomicInteger variable with the java.util.concurrent.atomic.LongAdder type.
</body>
</html>