Java – Why is BaseEncoding marked as unstable in Intellij?

Why is BaseEncoding marked as unstable in Intellij?… here is a solution to the problem.

Why is BaseEncoding marked as unstable in Intellij?

I’m writing the following code:

BaseEncoding.base64().encode(byteArrayEntity.getBytes())

However, Intellij (Community 2018.2) displays the following warning:

'BaseEncoding' is marked unstable
Inspection info: Reports unstable API (elements annotated with one of annotations from list) usages.

I

don’t know if this is something I should be worried about. Can someone explain?

Thanks for your attention….

Solution

In the Google GitHub API, BaseEncoding is marked as “Beta”, so it probably works very well. But if I’m with you, I’ll still use java.util.Base64 because I’ve never had any problems.

This should produce the same result:

java.util.Base64.getEncoder().encode(byteArrayEntity.getBytes());

Related Problems and Solutions