Skip to content

Commit 0489b99

Browse files
committed
Fix PropertiesJavaFormatConfig JavaBaseline lookup
Fixes gh-311
1 parent f3e4a07 commit 0489b99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-javaformat/spring-javaformat-config/src/main/java/io/spring/javaformat/config/PropertiesJavaFormatConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PropertiesJavaFormatConfig implements JavaFormatConfig {
3838
@Override
3939
public JavaBaseline getJavaBaseline() {
4040
Object value = this.properties.get("java-baseline");
41-
return (value != null) ? JavaBaseline.valueOf("v" + value.toString().toUpperCase().trim())
41+
return (value != null) ? JavaBaseline.valueOf("V" + value.toString().toUpperCase().trim())
4242
: DEFAULT.getJavaBaseline();
4343
}
4444

0 commit comments

Comments
 (0)