Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2015-09-21 09:22:01 -0400
committerMatthias Sohn2015-09-21 17:42:16 -0400
commit79f53d3ad75c32fabb67587a4c56e7d2abd482b2 (patch)
tree1907d162911de865662d52313b65b1d02cd66d58
parent81d9d5655a34d8e446667fa6fb6bf610f67428c7 (diff)
downloadegit-79f53d3ad75c32fabb67587a4c56e7d2abd482b2.tar.gz
egit-79f53d3ad75c32fabb67587a4c56e7d2abd482b2.tar.xz
egit-79f53d3ad75c32fabb67587a4c56e7d2abd482b2.zip
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
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java2
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/SWTCommit.java2
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> T getAdapter(final Class<T> 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<SWTCommitList.SWTLane> implements IAdaptable
}
@Override
- public <T> T getAdapter(Class<T> adapter) {
+ public Object getAdapter(Class adapter) {
if (adapter != Repository.class) {
return null;
}

Back to the top