Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Vogel2020-02-11 15:18:31 +0000
committerLars Vogel2020-02-11 15:18:31 +0000
commit6af02804146fcf9a39542dbf81fb01e4ea0707a0 (patch)
treea9171b76db443646ee79659abe23fe6974eb2e09 /tests
parent20cd676b96091918641baaf7c764b38af96c2cee (diff)
downloadeclipse.platform.team-6af02804146fcf9a39542dbf81fb01e4ea0707a0.tar.gz
eclipse.platform.team-6af02804146fcf9a39542dbf81fb01e4ea0707a0.tar.xz
eclipse.platform.team-6af02804146fcf9a39542dbf81fb01e4ea0707a0.zip
Clean-up use lambdas and method referencesI20200211-1800
Using the JDT cleanup action -> - Use lambda where possible - Simplify lambda expression and method reference syntax Change-Id: If567a82649e092753fd7fe3a3495a311cc7df8fd Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchTest.java b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchTest.java
index db032b057..ae03b254c 100644
--- a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchTest.java
+++ b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchTest.java
@@ -318,7 +318,7 @@ public class PatchTest extends TestCase {
File patchdataFolderFile = patchdataFolderPath.toFile();
assertTrue(patchdataFolderFile.isDirectory());
File[] listOfSubfolders = patchdataFolderFile
- .listFiles((FileFilter) pathname -> pathname.isDirectory());
+ .listFiles((FileFilter) File::isDirectory);
for (File subfolder : listOfSubfolders) {
Path pcPath = new Path(subfolder.getPath() + "/" + PATCH_CONFIGURATION);
File pcFile = pcPath.toFile();

Back to the top