Skip to content

Commit 8a1a1ad

Browse files
committed
r migrate to lambda
1 parent a91b0a4 commit 8a1a1ad

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

approvaltests-util/src/main/java/com/spun/util/ClassUtils.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,7 @@ public static File getSourceDirectory(Class<?> clazz, Function1<String, String>
106106
}
107107
public static File getSourceDirectory(Class<?> clazz, final String fileName)
108108
{
109-
return getSourceDirectory(clazz, new Function1<String, String>()
110-
{
111-
public String call(String __)
112-
{
113-
return fileName;
114-
}
115-
});
109+
return getSourceDirectory(clazz, __ -> fileName);
116110
}
117111
public static File find(File file, List<String> matches)
118112
{

0 commit comments

Comments
 (0)