Last active
March 29, 2017 06:48
-
-
Save liviutudor/ba290573f96e2152ff6025c83f6b2ce0 to your computer and use it in GitHub Desktop.
Wrong way to use Governator's @configuration annotation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MyClass { | |
| @Configuration("path.prefix") // this is wrong! | |
| private static final String PATH_PREFIX = null; | |
| private String fileName; | |
| public MyClass(String fileName) { | |
| this.fileName = PATH_PREFIX + fileName; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment