Polish
This commit is contained in:
@@ -147,9 +147,9 @@ final class JavaPluginAction implements PluginApplicationAction {
|
||||
private void configureAdditionalMetadataLocations(JavaCompile compile) {
|
||||
compile.doFirst((task) -> {
|
||||
if (hasConfigurationProcessorOnClasspath(compile)) {
|
||||
findMatchingSourceSet(compile).ifPresent((sourceSet) -> {
|
||||
configureAdditionalMetadataLocations(compile, sourceSet);
|
||||
});
|
||||
findMatchingSourceSet(compile).ifPresent(
|
||||
(sourceSet) -> configureAdditionalMetadataLocations(compile,
|
||||
sourceSet));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -460,7 +460,7 @@ public class PropertiesLauncher extends Launcher {
|
||||
|
||||
private List<Archive> getClassPathArchives(String path) throws Exception {
|
||||
String root = cleanupPath(handleUrl(path));
|
||||
List<Archive> lib = new ArrayList<Archive>();
|
||||
List<Archive> lib = new ArrayList<>();
|
||||
File file = new File(root);
|
||||
if (!"/".equals(root)) {
|
||||
if (!isAbsolutePath(root)) {
|
||||
|
||||
@@ -141,7 +141,7 @@ public final class Verify {
|
||||
|
||||
private ZipEntry getEntryStartingWith(String entryName) {
|
||||
return this.content.entrySet().stream()
|
||||
.filter(entry -> entry.getKey().startsWith(entryName))
|
||||
.filter((entry) -> entry.getKey().startsWith(entryName))
|
||||
.map(Map.Entry::getValue).findFirst()
|
||||
.orElseThrow(() -> new IllegalStateException(
|
||||
"Unable to find entry starting with " + entryName));
|
||||
|
||||
Reference in New Issue
Block a user