aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-01-22 06:45:14 (EST)
committerTomasz Zarna2013-01-22 06:45:14 (EST)
commit799aa1922db473e9734d3745f5952405a8860d53 (patch)
treec8514f3c416584da21e46f72242e0f3c3c3d02c8
parent0741a9849857c828cda7733d2d1bd8534ec68224 (diff)
downloadegit-799aa1922db473e9734d3745f5952405a8860d53.zip
egit-799aa1922db473e9734d3745f5952405a8860d53.tar.gz
egit-799aa1922db473e9734d3745f5952405a8860d53.tar.bz2
Fix unnecessary code warnings in egit.ui *PropertyTestersrefs/changes/27/9827/1
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java5
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/RepositoriesViewPropertyTester.java5
2 files changed, 4 insertions, 6 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java
index d76704e..778a667 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java
@@ -25,7 +25,7 @@ public class ResourcePropertyTester extends PropertyTester {
public boolean test(Object receiver, String property, Object[] args,
Object expectedValue) {
- boolean value = internalTest(receiver, property, args, expectedValue);
+ boolean value = internalTest(receiver, property);
boolean trace = GitTraceLocation.PROPERTIESTESTER.isActive();
if (trace)
GitTraceLocation
@@ -35,8 +35,7 @@ public class ResourcePropertyTester extends PropertyTester {
return value;
}
- private boolean internalTest(Object receiver, String property, Object[] args,
- Object expectedValue) {
+ private boolean internalTest(Object receiver, String property) {
if (!(receiver instanceof IResource))
return false;
IResource res = (IResource) receiver;
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/RepositoriesViewPropertyTester.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/RepositoriesViewPropertyTester.java
index 27794b7..96568a9 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/RepositoriesViewPropertyTester.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/RepositoriesViewPropertyTester.java
@@ -29,7 +29,7 @@ public class RepositoriesViewPropertyTester extends PropertyTester {
public boolean test(Object receiver, String property, Object[] args,
Object expectedValue) {
- boolean value = internalTest(receiver, property, args, expectedValue);
+ boolean value = internalTest(receiver, property);
boolean trace = GitTraceLocation.PROPERTIESTESTER.isActive();
if (trace)
GitTraceLocation
@@ -39,8 +39,7 @@ public class RepositoriesViewPropertyTester extends PropertyTester {
return value;
}
- private boolean internalTest(Object receiver, String property, Object[] args,
- Object expectedValue) {
+ private boolean internalTest(Object receiver, String property) {
if (!(receiver instanceof RepositoryTreeNode))
return false;