Код: Выделить всё
long time= (getTime()/60000L) * 60000LКод: Выделить всё
getTime()I am wondering if JVM would optimise the above code to
Код: Выделить всё
long time= getTime()Or is there a better, cleaner way? (Can't change getTime's return type, which is also long)
Thanks in advance for any help.
Источник: https://stackoverflow.com/questions/781 ... -operation
Мобильная версия