invikeLater

I have a lot of one-line operators that I want to execute in dispatch thread and it doubles amount of code to create Runnable object each time. Is there any machinery to optimize situation?
[203 byte] By [valjok] at [2007-9-26 1:23:49]
# 1
If those "one-line operators" are constants, then you could create constant Runnable objects and reuse them, couldn't you? That would cut down the number of objects you are creating for almost immediate garbage collection. Or are you just trying to reduce the number of lines of code?
DrClap at 2007-6-29 1:03:00 > top of Java-index,Core,Core APIs...
# 2
It is good that you payed attention on the fact that frequent object creation fills gc, but I really interested in decrement of code amount
valjok at 2007-6-29 1:03:00 > top of Java-index,Core,Core APIs...