X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Frepo%2Futil%2FFilesystemSchemaSourceCacheTest.java;h=a094f91f14d2859e4bc47ac1bddfe6bb1159b1bd;hb=a84f141fe3633d5380ca1fb8b41afc4cd770dcfd;hp=ec956dbb98d59007ce3f75b28fe2e434622abfb7;hpb=11957355b25ad89d0cea114ae562a9cb2fe1165f;p=yangtools.git diff --git a/yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/repo/util/FilesystemSchemaSourceCacheTest.java b/yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/repo/util/FilesystemSchemaSourceCacheTest.java index ec956dbb98..a094f91f14 100644 --- a/yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/repo/util/FilesystemSchemaSourceCacheTest.java +++ b/yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/repo/util/FilesystemSchemaSourceCacheTest.java @@ -21,7 +21,6 @@ import static org.mockito.Mockito.verify; import org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier; -import com.google.common.base.Function; import com.google.common.base.MoreObjects; import com.google.common.base.Optional; import com.google.common.collect.Collections2; @@ -98,12 +97,7 @@ public class FilesystemSchemaSourceCacheTest { } private static Collection filesToFilenamesWithoutRevision(final List storedFiles) { - return Collections2.transform(storedFiles, new Function() { - @Override - public String apply(final File input) { - return Files.getNameWithoutExtension(input.getName()); - } - }); + return Collections2.transform(storedFiles, input -> Files.getNameWithoutExtension(input.getName())); } @Test