Skip to content

Instantly share code, notes, and snippets.

@liviutudor
Last active March 29, 2017 06:48
Show Gist options
  • Select an option

  • Save liviutudor/ba290573f96e2152ff6025c83f6b2ce0 to your computer and use it in GitHub Desktop.

Select an option

Save liviutudor/ba290573f96e2152ff6025c83f6b2ce0 to your computer and use it in GitHub Desktop.
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