mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +00:00
[trivial] added test for logger config keys.
This commit is contained in:
1 parent
d6ca8d5e81
commit
bc1f91af3a
5 files changed
+21
-4
No files matched your search
@@ -32,8 +32,10 @@ public class ConfigurationKeys {
|
||||
|
||||
/**
|
||||
* Makes sure all {@link ConfigurationKey}s in this class are loaded.
|
||||
*
|
||||
* (Calling the method ensures this class is initialized by the class loader; this is enough to initialize all configuration keys).
|
||||
*/
|
||||
public static void ensureKeysLoaded() {};
|
||||
public static void ensureKeysLoaded() {}
|
||||
|
||||
// ##### main package features #####
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
class LoggerWithConfig {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private final org.slf4j.Logger myLogger = org.slf4j.LoggerFactory.getLogger(LoggerWithConfig.class);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
@lombok.extern.slf4j.Slf4j class LoggerWithConfig {
|
||||
private final org.slf4j.Logger myLogger = org.slf4j.LoggerFactory.getLogger(LoggerWithConfig.class);
|
||||
LoggerWithConfig() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
//conf: lombok.Getter.flagUsage = WARNING
|
||||
//conf: lombok.experimental.flagUsage = ERROR
|
||||
//CONF: lombok.Getter.flagUsage = WARNING
|
||||
//CONF: lombok.experimental.flagUsage = ERROR
|
||||
public class FlagUsages {
|
||||
@lombok.Getter String x;
|
||||
|
||||
|
||||
@lombok.experimental.Wither String z;
|
||||
|
||||
public FlagUsages(String x, String y) {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
//CONF: lombok.log.fieldName = myLogger
|
||||
//CONF: lombok.log.fieldIsStatic = false
|
||||
@lombok.extern.slf4j.Slf4j
|
||||
class LoggerWithConfig {
|
||||
}
|
||||
Reference in new issue
Block a user