// lowlevel/NotAtomic.java
// (c)2021 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// javap -c NotAtomic
// {ExcludeFromGradle}
// {VisuallyInspectOutput}
public class NotAtomic {
int i;
void f1() { i++; }
void f2() { i += 3; }
}
/* Output:
Compiled from "NotAtomic.java"
public class NotAtomic {
int i;
public NotAtomic();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."