javac has an interesting -O option:
Optimizes compiled code by inlining static, final and private methods. Note that your
I don't think It does any optimization as you think:
-O Optimizes compiled code by inlining static, final and private methods. Note that your classes may get larger inj size.
Please have a look into these questions:
Update
You won't find this in any Oracle documentation because it effectively does nothing at all (no-op). Moreover your link is a very very old documentation:
Go up two directories in your link - It's the documentation for jdk 1.1.3. It's 13 - 14 years old! We are now on Jdk 7 and eagerly waiting for Jdk 8.