We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\n
How to get a single element list of Strings that contains \n from a configuration?
Example code:
public static void main(String[] args) { WithSingleElementList conf = ConfigFactory.create(WithSingleElementList.class); List<String> list = conf.getList(); System.out.println(conf.getList().size()); // Expected to be 1 but is 0 System.out.println(list); } public static interface WithSingleElementList extends Config { @DefaultValue("\n") List<String> getList(); }
Are there any workarounds that would make above code return a one element List, instead of an empty list?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How to get a single element list of Strings that contains
\n
from a configuration?Example code:
Are there any workarounds that would make above code return a one element List, instead of an empty list?
The text was updated successfully, but these errors were encountered: