Fix checkstyle issues to enforce it
[aaa.git] / aaa-shiro / impl / src / main / java / org / opendaylight / aaa / shiro / realm / util / http / SimpleHttpClient.java
index 09e2040d4553aab934cb0865e6ec8057ae90caab..f88d17868c5e05a82eb2261b9294263c29872da2 100644 (file)
@@ -21,6 +21,8 @@ import javax.net.ssl.SSLContext;
  * An utility that represents an HTTP client that allows to make
  * HTTP requests.
  */
+//Suppressed so UT's can mock it using Mockito.
+@SuppressWarnings("checkstyle:FinalClass")
 public class SimpleHttpClient {
 
     private final Client client;
@@ -60,22 +62,22 @@ public class SimpleHttpClient {
         /**
          * Sets the SSLContext to be used for SSL requests.
          *
-         * @param sslContext the SSLContext.
+         * @param context the SSLContext.
          * @return self, the client builder.
          */
-        public Builder sslContext(final SSLContext sslContext) {
-            this.sslContext = sslContext;
+        public Builder sslContext(final SSLContext context) {
+            this.sslContext = context;
             return this;
         }
 
         /**
          * Sets the hostname verifier the request is made with.
          *
-         * @param hostnameVerifier the hostname verifier.
+         * @param verifier the hostname verifier.
          * @return self, the client builder.
          */
-        public Builder hostnameVerifier(final HostnameVerifier hostnameVerifier) {
-            this.hostnameVerifier = hostnameVerifier;
+        public Builder hostnameVerifier(final HostnameVerifier verifier) {
+            this.hostnameVerifier = verifier;
             return this;
         }