diff --git a/org.eclipse.jgit.ui/build.properties b/org.eclipse.jgit.ui/build.properties index aa1a00826..84f1c95cf 100644 --- a/org.eclipse.jgit.ui/build.properties +++ b/org.eclipse.jgit.ui/build.properties @@ -1,4 +1,5 @@ -source.. = src/ +source.. = src/,\ + resources/ output.. = bin/ bin.includes = META-INF/,\ .,\ diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java index 4a5d4603c..e699a72cf 100644 --- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java +++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java @@ -49,6 +49,7 @@ import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Polygon; +import java.io.Serializable; import org.eclipse.jgit.awtui.CommitGraphPane.GraphCellRender; import org.eclipse.jgit.awtui.SwingCommitList.SwingLane; @@ -57,11 +58,13 @@ import org.eclipse.jgit.lib.Ref; import org.eclipse.jgit.revplot.AbstractPlotRenderer; import org.eclipse.jgit.revplot.PlotCommit; -final class AWTPlotRenderer extends AbstractPlotRenderer { +final class AWTPlotRenderer extends AbstractPlotRenderer + implements Serializable { + private static final long serialVersionUID = 1L; final GraphCellRender cell; - Graphics2D g; + transient Graphics2D g; AWTPlotRenderer(final GraphCellRender c) { cell = c; 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 13d408f19..9c9d1f4a5 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 @@ -222,6 +222,7 @@ public class CommitGraphPane extends JTable { PlotCommit commit; + @SuppressWarnings("unchecked") public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) { 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 b58547a9e..d8660e5ed 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 @@ -87,5 +87,10 @@ class SwingCommitList extends PlotCommitList { public boolean equals(Object o) { return super.equals(o) && color.equals(((SwingLane)o).color); } + + @Override + public int hashCode() { + return super.hashCode() ^ color.hashCode(); + } } }