From 79f53d3ad75c32fabb67587a4c56e7d2abd482b2 Mon Sep 17 00:00:00 2001 From: Andrey Loskutov Date: Mon, 21 Sep 2015 15:22:01 +0200 Subject: [PATCH] Un-generified getAdapter() to keep Eclipse 3.8-4.4 source compatibility Because we are still supporting older Eclipse versions, we should avoid compilation errors if compiling against older platforms. Change-Id: I8fcb7b8f9c5fc99c7695711add808fde4ccce8ff --- .../src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java | 2 +- .../src/org/eclipse/egit/ui/internal/history/SWTCommit.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java index 5a3372675..f80614826 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java @@ -1674,7 +1674,7 @@ public class GitHistoryPage extends HistoryPage implements RefsChangedListener, } @Override - public T getAdapter(final Class adapter) { + public Object getAdapter(final Class adapter) { return null; } diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTCommit.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTCommit.java index e785441fd..b7b26b402 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTCommit.java +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTCommit.java @@ -42,7 +42,7 @@ class SWTCommit extends PlotCommit implements IAdaptable } @Override - public T getAdapter(Class adapter) { + public Object getAdapter(Class adapter) { if (adapter != Repository.class) { return null; } -- 2.11.4.GIT