diff --git a/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/after.java.template b/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/after.java.template index 913a63831da4..7afa1244dd7f 100644 --- a/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/after.java.template +++ b/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/after.java.template @@ -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(); + } } \ No newline at end of file diff --git a/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/before.java.template b/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/before.java.template index 2384912306e2..b45fef9b1290 100644 --- a/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/before.java.template +++ b/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/before.java.template @@ -1,7 +1,8 @@ -void m() { - AtomicLong l = new AtomicLong(); +public class X { + void m() { + AtomicLong l = new AtomicLong(); - l.incrementAndGet(); - - long res = l.get(); + l.incrementAndGet(); + long res = l.get(); + } } \ No newline at end of file diff --git a/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/description.html b/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/description.html index 475189c4dddc..8366f6e8fe4e 100644 --- a/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/description.html +++ b/java/typeMigration/src/intentionDescriptions/ConvertAtomicToLongAdderIntention/description.html @@ -1,5 +1,5 @@ -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. \ No newline at end of file