This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/freemarker-docgen.git


The following commit(s) were added to refs/heads/master by this push:
     new 7fb6cd3  Trying what can be removed without generics inference 
compilation problem pops up on Travis again.
7fb6cd3 is described below

commit 7fb6cd3be905385a5a1ea394ebe59ac20a9e5653
Author: ddekany <[email protected]>
AuthorDate: Mon Feb 8 11:30:25 2021 +0100

    Trying what can be removed without generics inference compilation problem 
pops up on Travis again.
---
 .../src/main/java/org/freemarker/docgen/core/Transform.java         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/Transform.java
 
b/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/Transform.java
index 5153ff1..ed3c6fc 100644
--- 
a/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/Transform.java
+++ 
b/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/Transform.java
@@ -667,8 +667,8 @@ public final class Transform {
                                         new 
DefaultValue<>(Collections.emptyList()),
                                         List.class
                                 ),
-                                Optional.<String>ofNullable(
-                                        SettingUtils.<String>castSetting(
+                                Optional.ofNullable(
+                                        SettingUtils.<String>castSetting( // 
Explicit generic type to dodge JDK 8 252 bug
                                                 settingName.subKey(commandKey,
                                                         
SETTING_INSERTABLE_OUTPUT_COMMANDS_DOCGEN_WD_REPLACED_WITH_KEY),
                                                 outputCmdProps.get(
@@ -676,7 +676,7 @@ public final class Transform {
                                                 DefaultValue.NULL,
                                                 String.class
                                         )
-                                ).map((String it) -> 
Paths.get(it).toAbsolutePath().normalize()).orElse((Path) null)
+                                ).map(it -> 
Paths.get(it).toAbsolutePath().normalize()).orElse(null)
                         );
                         insertableOutputCommands.put(commandKey, commandProps);
                     }

Reply via email to