From 3e8bd245808f68623a06e89025c5cd354b5caf54 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Sun, 13 Jun 2010 03:30:10 +0200 Subject: Override equals for SwingLane since super class PlotLane defines it Signed-off-by: Robin Rosenberg --- org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'org.eclipse.jgit.ui') diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java index 4a11964473..b58547a9e1 100644 --- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java +++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java @@ -83,5 +83,9 @@ class SwingCommitList extends PlotCommitList { static class SwingLane extends PlotLane { Color color; + @Override + public boolean equals(Object o) { + return super.equals(o) && color.equals(((SwingLane)o).color); + } } } -- cgit v1.2.3 From 3a899a3af983fee19fc614445e9a11b72e8ecf3a Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Sun, 13 Jun 2010 03:31:52 +0200 Subject: Prefer static inner classes Signed-off-by: Robin Rosenberg --- org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org.eclipse.jgit.ui') diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java index effe6e5756..13d408f19f 100644 --- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java +++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java @@ -176,7 +176,7 @@ public class CommitGraphPane extends JTable { } } - class NameCellRender extends DefaultTableCellRenderer { + static class NameCellRender extends DefaultTableCellRenderer { private static final long serialVersionUID = 1L; public Component getTableCellRendererComponent(final JTable table, @@ -194,7 +194,7 @@ public class CommitGraphPane extends JTable { } } - class DateCellRender extends DefaultTableCellRenderer { + static class DateCellRender extends DefaultTableCellRenderer { private static final long serialVersionUID = 1L; private final DateFormat fmt = new SimpleDateFormat( @@ -215,7 +215,7 @@ public class CommitGraphPane extends JTable { } } - class GraphCellRender extends DefaultTableCellRenderer { + static class GraphCellRender extends DefaultTableCellRenderer { private static final long serialVersionUID = 1L; private final AWTPlotRenderer renderer = new AWTPlotRenderer(this); -- cgit v1.2.3