Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-05-12 10:09:36 -0400
committerMichael Keppler2019-05-15 01:20:10 -0400
commitf7252caf1b30cd08badd7480a8130f0e55daf723 (patch)
treebed74295d3610de1f0e36831933e488c2a33a1d1 /org.eclipse.egit.ui.test/src
parent7258517aa01f4dbf4ed45ed1f0e14e6d88f79ef0 (diff)
downloadegit-f7252caf1b30cd08badd7480a8130f0e55daf723.tar.gz
egit-f7252caf1b30cd08badd7480a8130f0e55daf723.tar.xz
egit-f7252caf1b30cd08badd7480a8130f0e55daf723.zip
Convert to lambda or member reference
Convert anonymous inner classes to lambda expressions or member references. Change-Id: I80ef719e9282eac73f178e4d45cc2ed57280cb25 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.egit.ui.test/src')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
index ccd8e682b..b88faf4a2 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
@@ -599,12 +599,7 @@ public abstract class LocalRepositoryTestCase extends EGitTestCase {
protected void shareProjects(File repositoryDir) throws Exception {
Repository myRepository = lookupRepository(repositoryDir);
- FilenameFilter projectFilter = new FilenameFilter() {
- @Override
- public boolean accept(File dir, String name) {
- return name.equals(".project");
- }
- };
+ FilenameFilter projectFilter = (File dir, String name) -> name.equals(".project");
for (File file : myRepository.getWorkTree().listFiles()) {
if (file.isDirectory()) {
if (file.list(projectFilter).length > 0) {

Back to the top