We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e72257 commit e54b1d0Copy full SHA for e54b1d0
approvaltests-util/src/main/java/com/spun/util/ClassUtils.java
@@ -207,4 +207,8 @@ public static <T> Class getGreatestCommonInterface(List<T> list)
207
Class first = Queryable.as(allCommon).orderBy(Order.Descending, x -> x.getMethods().length).first();
208
return first;
209
}
210
+
211
+ public static File getAdjacentFile(Class<?> aClass, String relativeFileName) {
212
+ return new File(getSourceDirectory(aClass), relativeFileName);
213
+ }
214
0 commit comments