]> source.dussan.org Git - jgit.git/commit
AWTPlotRenderer: use float arithmetic instead of double followed by a conversion 94/37994/1
authorJonathan Nieder <jrn@google.com>
Wed, 10 Dec 2014 23:22:08 +0000 (15:22 -0800)
committerJonathan Nieder <jrn@google.com>
Wed, 10 Dec 2014 23:30:21 +0000 (15:30 -0800)
commit64162ab40d13b33083ce3f96072a6327346ee3b0
treef8415753043bf57d8df81a1951b8c24752de5751
parent82f191bd79beb9ddbce1f35583f88df08fb53440
AWTPlotRenderer: use float arithmetic instead of double followed by a conversion

Multiplying by 0.9 and converting back to float is slightly more
complicated and achieves the same effect as multiplying by the float
0.9f directly.

Change-Id: I555863bb1251badee8887b9b93c5463eda0a3509
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java