smallrye-config
smallrye-config copied to clipboard
getRawValue doesn't look at the raw value
Is this correct - https://github.com/smallrye/smallrye-config/blob/5a96de2849c87d144586df07dd4529e28d7e3b85/implementation/src/main/java/io/smallrye/config/SmallRyeConfig.java#L370
It seems like it should consult the raw value, or have some javadocs redefining what raw means for this method.
Yes, it is correct. The names are a bit unfortunate. getRawValue is part of the API since the early versions and the intent is to provide the value of the configuration before applying conversions.
Expressions and ConfigValue came later, requiring a way to access the value without expansion, which also got the name getRawValue.