Skip to content

Commit c830d71

Browse files
committed
Fix javadoc warnings
1 parent 55981c9 commit c830d71

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ allprojects { project ->
212212
// Javadoc Task
213213
javadoc {
214214
dependsOn delombok
215+
if (project.name != 'grpc-common-spring-boot') {
216+
dependsOn(":grpc-common-spring-boot:javadoc")
217+
}
215218
source = delombok.outputDir
216219
failOnError = false
217220
options.locale = 'en_US'

grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/security/CallCredentialsHelper.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import net.devh.boot.grpc.client.autoconfigure.GrpcClientSecurityAutoConfiguration;
4040
import net.devh.boot.grpc.client.inject.GrpcClient;
4141
import net.devh.boot.grpc.client.inject.StubTransformer;
42+
import net.devh.boot.grpc.common.security.SecurityConstants;
4243

4344
/**
4445
* Helper class with useful methods to create and configure some commonly used authentication schemes such as
@@ -166,7 +167,7 @@ public static StubTransformer mappedCredentialsStubTransformer(
166167
*
167168
* @param token the bearer token to use
168169
* @return The newly created bearer auth credentials.
169-
* @see #BEARER_AUTH_PREFIX
170+
* @see SecurityConstants#BEARER_AUTH_PREFIX
170171
* @see #authorizationHeader(String)
171172
*/
172173
public static CallCredentials bearerAuth(final String token) {
@@ -183,7 +184,7 @@ public static CallCredentials bearerAuth(final String token) {
183184
* @param username The username to use.
184185
* @param password The password to use.
185186
* @return The newly created basic auth credentials.
186-
* @see #BASIC_AUTH_PREFIX
187+
* @see SecurityConstants#BASIC_AUTH_PREFIX
187188
* @see #encodeBasicAuth(String, String)
188189
* @see #authorizationHeader(String)
189190
*/
@@ -198,7 +199,7 @@ public static CallCredentials basicAuth(final String username, final String pass
198199
* @param username The username to use.
199200
* @param password The password to use.
200201
* @return The encoded basic auth header value.
201-
* @see #BASIC_AUTH_PREFIX
202+
* @see SecurityConstants#BASIC_AUTH_PREFIX
202203
*/
203204
public static String encodeBasicAuth(final String username, final String password) {
204205
requireNonNull(username, "username");
@@ -223,7 +224,7 @@ public static String encodeBasicAuth(final String username, final String passwor
223224
* @param authorization The authorization to use. The authorization usually starts with the scheme such as as
224225
* {@code "Basic "} or {@code "Bearer "} followed by the actual authentication information.
225226
* @return The newly created call credentials.
226-
* @see #AUTHORIZATION_HEADER
227+
* @see SecurityConstants#AUTHORIZATION_HEADER
227228
* @see #authorizationHeaders(Metadata)
228229
*/
229230
public static CallCredentials authorizationHeader(final String authorization) {

0 commit comments

Comments
 (0)