How to handle "Imports that lack version ranges" warning (pedantic:true)?

I have currently enabled -pedantic:true to see what “pedantic” warnings we have and try to clean them up.

There is one warning, where I am not sure what is the best strategy to solve it:

Imports that lack version ranges: [javax.net.ssl]

My bundle has a class that has imports like:

import javax.net.ssl.SSLSessionContext;
import javax.net.ssl.SSLSocket;

my bnd.bnd is simple:

Import-Package: *

The Manifest.mf contains (among other stuff):

Import-Package: javax.net.ssl, java.lang

etc. without versions.

So since these packages come from Java itself and probably do not have an OSGi version, I wonder: What is the proper way to get rid of this warning? (I know about-fixupmessages)

There is an interesting idea that this is similar what -contracts tries to solve.

See also

Let’s see what happens with this PR.