diff options
author | Konrad Kügler <swamblumat-eclipsebugs@yahoo.de> | 2014-04-27 21:46:59 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-05-03 23:08:10 +0200 |
commit | d5ee5ede3eeeb230562d0f0148f5fdfa3a820b5a (patch) | |
tree | 765cef7c9322084b9e5296019e226262fddc4ba2 | |
parent | e5f7fdcf4f9f0e0d5175e612a466706d58accc0e (diff) | |
download | jgit-d5ee5ede3eeeb230562d0f0148f5fdfa3a820b5a.tar.gz jgit-d5ee5ede3eeeb230562d0f0148f5fdfa3a820b5a.zip |
AbstractPlotRenderer: Make private methods static where applicable
Change-Id: Iaf02502b02b2420c059f04bbe09254941301c727
Signed-off-by: Konrad Kügler <swamblumat-eclipsebugs@yahoo.de>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/revplot/AbstractPlotRenderer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/AbstractPlotRenderer.java b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/AbstractPlotRenderer.java index f076ea0867..2ea65be58a 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/AbstractPlotRenderer.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/AbstractPlotRenderer.java @@ -170,7 +170,7 @@ public abstract class AbstractPlotRenderer<TLane extends PlotLane, TColor> { */ protected abstract int drawLabel(int x, int y, Ref ref); - private int computeDotSize(final int h) { + private static int computeDotSize(final int h) { int d = (int) (Math.min(h, LANE_WIDTH) * 0.50f); d += (d & 1); return d; @@ -262,12 +262,12 @@ public abstract class AbstractPlotRenderer<TLane extends PlotLane, TColor> { */ protected abstract void drawText(String msg, int x, int y); - private int laneX(final PlotLane myLane) { + private static int laneX(final PlotLane myLane) { final int p = myLane != null ? myLane.getPosition() : 0; return LEFT_PAD + LANE_WIDTH * p; } - private int laneC(final PlotLane myLane) { + private static int laneC(final PlotLane myLane) { return laneX(myLane) + LANE_WIDTH / 2; } } |