How to update and avoid "sun.net.www.protocol.https.Handler is internal proprietary API and may be removed in a future release"

3k views Asked by At

I have a piece of code I am upgrading that has the following...

// TODO: Handler needs replaced
url = new URL(null, clientUrl, new sun.net.www.protocol.https.Handler());

But this throws a warning with...

[WARNING] /....java:[91,74] sun.net.www.protocol.https.Handler is internal proprietary API and may be removed in a future release

What is the proper pattern for replacing this?

0

There are 0 answers