We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f73d25 commit ae2d58cCopy full SHA for ae2d58c
core/src/main/java/io/dekorate/utils/Development.java
@@ -23,12 +23,15 @@
23
*/
24
public final class Development {
25
26
+ private static final boolean IS_VERBOSE = Session.getSession()
27
+ .getConfigurationRegistry().get(GeneratorConfig.class).map(GeneratorConfig::isVerbose)
28
+ .orElse(false);
29
+
30
private Development() {
31
//Utility class
32
}
33
34
public static boolean isVerbose() {
- return Session.getSession().getConfigurationRegistry().get(GeneratorConfig.class).map(GeneratorConfig::isVerbose)
- .orElse(false);
35
+ return IS_VERBOSE;
36
37
0 commit comments