[josm-dev] [PATCH] timestamp & parsedTimestamp in OsmPrimitive

Frederik Ramm frederik at remote.org
Mon Mar 9 07:37:25 GMT 2009


Hi,

Jiri Klement wrote:
> OK, I've fixed that. Way is calling functions twice bad design? Is
> OsmPrimitive supposed to be thread safe?

I'd say with all that encapsulation going on, you never know how much 
processing time is wasted when you call the function so better cache the 
result ;-) - tbh I don't know if the Java compiler does that 
automatically but Dirk is right it just hurts the (old-school) 
programmer's eye.

Bye
Frederik




More information about the josm-dev mailing list