Skip to content

Commit 40984c8

Browse files
committed
Add log related to java source version
1 parent d3e6af2 commit 40984c8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sonar-java-plugin/src/main/java/org/sonar/plugins/java/JavaSquidSensor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ private JavaConfiguration createConfiguration() {
124124
Charset charset = fs.encoding();
125125
JavaConfiguration conf = new JavaConfiguration(charset);
126126
conf.setSeparateAccessorsFromMethods(analyzePropertyAccessors);
127-
conf.setJavaVersion(getJavaVersion());
127+
Integer javaVersion = getJavaVersion();
128+
LOG.info("Configured Java source version: " + (javaVersion == null ? "none" : javaVersion));
129+
conf.setJavaVersion(javaVersion);
128130
return conf;
129131
}
130132

0 commit comments

Comments
 (0)