mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup intention description and template
This commit is contained in:
+6
-5
@@ -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();
|
||||
}
|
||||
}
|
||||
+6
-5
@@ -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
-1
@@ -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>
|
||||
Reference in New Issue
Block a user