httpcomponents:httpcore ThreadSafe class not found solution

@ThreadSafe class not found compilation error occurs after updating your org.apache.httpcomponents:httpcore dependency version to 4.4.11 or above.
This httpcore version comes with:

    Class org.apache.http.annotation.Immutable removed
    Class org.apache.http.annotation.NotThreadSafe removed
    Class org.apache.http.annotation.ThreadSafe removed

Continue reading “httpcomponents:httpcore ThreadSafe class not found solution”