Use consistent class design
Update all classes so that inner classes are always last. Also ensure that utility classes are always final and have a private constructor and make exceptions final whenever possible. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
0ad0f341bd
commit
eeebd51f57
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -320,17 +320,19 @@ public class UserCredentialsConnectionFactoryAdapter
|
||||
/**
|
||||
* Inner class used as ThreadLocal value.
|
||||
*/
|
||||
private static class JmsUserCredentials {
|
||||
private static final class JmsUserCredentials {
|
||||
|
||||
public final String username;
|
||||
|
||||
public final String password;
|
||||
|
||||
|
||||
private JmsUserCredentials(String username, String password) {
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "JmsUserCredentials[username='" + this.username + "',password='" + this.password + "']";
|
||||
|
||||
Reference in New Issue
Block a user