Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Wrong way to use Governator's @Configuration annotation
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