Do not declare local variables as final

Per https://github.com/bisq-network/style/issues/11
This commit is contained in:
Chris Beams 2020-04-23 10:03:36 +02:00
parent 3fba97cefc
commit 6490e97df2
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73

View File

@ -36,7 +36,7 @@ public class AuthenticationInterceptor implements ServerInterceptor {
}
private void authenticate(Metadata metadata) {
final String authToken = metadata.get(Key.of("bisqd-creds", ASCII_STRING_MARSHALLER));
String authToken = metadata.get(Key.of("bisqd-creds", ASCII_STRING_MARSHALLER));
if (authToken == null) {
throw new StatusRuntimeException(UNAUTHENTICATED.withDescription("Authentication token is missing"));
} else {