// ignore some codes
final Looper me = myLooper();
if (me == null) {
throw new RuntimeException("No Looper; Looper.prepare() wasn't called on this thread.");
}
final MessageQueue queue = me.mQueue;
// ignore some codes
看了些Android源码,看到很多这种情况,当他们想用一个变量时,不是直接去用,而是换一个临时变量并且用 final 修饰。这是为什么呢?会提高性能吗?