False positive for java:S4032

SonarQube Version 8.9.3 (build 48735)

java:S4032 reports false positive for package-info.java class even though the description of the rule clearly says that the

"There is no reason to have a package that is empty except for “package-info.java”. Such packages merely clutter a project, taking up space but adding no value. "

Sample code

@Version("1.0")

package com.acme.core.listeners;

import org.osgi.annotation.versioning.Version;

Hello HImanshu,

I don’t quite yet understand what you are reporting. The rule you are referring to will trigger, if a package only contains a package-info.java file and no other files. If this is what is happening for you, then it is working exactly as designed.

If you are observing a different behavior, could you please elaborate what exactly is happening?