Hi Ernie,
the imports block on top of the hints file is for the hints file itself.
It is not added to the refactored sources or anything like that.
Imports are added automatically when the hint is applied if new imports
are needed, there is no way to control this mechanism.
-mbien
On 15.02.24 07:09, Ernie Rael wrote:
Using the follow does most of the conversion work, requires some
manual fixup for certain log4j arguments. But *import static
java.lang.System.Logger.Level.*;* doesn't get added. Any suggestions
for a way to add that as part of the refactoring?
-ernie
<?
import static java.lang.System.Logger.Level.*;
?>
org.apache.logging.log4j.Logger
=> java.lang.System.Logger
;;
"error":
$logger.error($args$)
:: $logger instanceof org.apache.logging.log4j.Logger
=> $logger.log(ERROR, $args$)
;;
...
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists