My guess is that the point is to copy the values into local variables once, to avoid having to fetch the field value repeatedly from the heap for each iteration of the loop in the next few lines.
Of course, that begs the question as to why the same comment hasn’t been applied on the “len” local variable. (I’d also expect the JIT to avoid refetching anyway, especially as the variables are final.)
Related Contents:
- Java 7 language features with Android
- is it possible to disable javac’s inlining of static final variables?
- Is it possible to view bytecode of Class file? [duplicate]
- In Java Lambda’s why is getClass() called on a captured variable
- Create simple POJO classes (bytecode) at runtime (dynamically)
- Difference between JVM’s LookupSwitch and TableSwitch?
- Why are Java 8 lambdas invoked using invokedynamic?
- What are advantages of bytecode over native code? [closed]
- Bytecode features not available in the Java language
- Gradle sourceCompatibility has no effect to subprojects
- What is a stack map frame
- What are bytecodes and how does the JVM handle them
- ASM Get exact value from stack frame
- How to emit and execute Java bytecode at runtime?
- Java’s Virtual Machine and CLR
- How to run eclipse in clean mode? what happens if we do so?
- Resize an Array while keeping current elements in Java?
- Removal of JDBC ODBC bridge in java 8
- How to serialize a lambda?
- Java Generics – Bridge method?
- Java unreported exception [duplicate]
- comparing float/double values using == operator
- I need an alternative option to HttpClient in Android to send data to PHP as it is no longer supported
- Convert base64 string to image
- How to convert a Java object (bean) to key-value pairs (and vice versa)?
- Can’t cast to to unspecific nested type with generics
- Can’t transparent and undecorated JFrame in JDK7 when enabling nimbus
- Converting a JFreeChart TimeSeries series with Day data to Week or Month data?
- How to write NDEF records to NFC tag?
- Prevent Android activity dialog from closing on outside touch
- Calendar.Month gives wrong output
- Java two varargs in one method
- Why should I use concurrent characteristic in parallel stream with collect?
- Rotate Image around character (JAVA)
- How can I parse this JSON in Android?
- Why is this Java code in curly braces ({}) outside of a method?
- Data structures that can map a range of keys to a value
- Hibernate count collection size without initializing
- Is there away to generate Variables’ names dynamically in Java?
- Logging while testing through Gradle
- Convert a RGB Color Value to a Hexadecimal String
- Selenium wait for Ajax content to load – universal approach
- Initializing two threads with the same instance of a runnable
- Email from internal storage
- Networking code sometimes throws UnknownHostException
- Scroll JScrollPane to bottom
- How to parse a JSON Input stream
- Restart the service even if app is force-stopped and Keep running service in background even after closing the app How?
- How to make another thread sleep in Java
- use of entityManager.createNativeQuery(query,foo.class)