mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Make method parameters final where it makes sense.
This commit is contained in:
@@ -88,7 +88,7 @@ public class Credentials implements Serializable {
|
|||||||
* @param password The password to associate with this username/password
|
* @param password The password to associate with this username/password
|
||||||
* pair.
|
* pair.
|
||||||
*/
|
*/
|
||||||
public void setPassword(String password) {
|
public void setPassword(final String password) {
|
||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ public class Credentials implements Serializable {
|
|||||||
* @param username The username to associate with this username/password
|
* @param username The username to associate with this username/password
|
||||||
* pair.
|
* pair.
|
||||||
*/
|
*/
|
||||||
public void setUsername(String username) {
|
public void setUsername(final String username) {
|
||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ public class Credentials implements Serializable {
|
|||||||
* @param request The HttpServletRequest to associated with this set of
|
* @param request The HttpServletRequest to associated with this set of
|
||||||
* credentials.
|
* credentials.
|
||||||
*/
|
*/
|
||||||
public void setRequest(HttpServletRequest request) {
|
public void setRequest(final HttpServletRequest request) {
|
||||||
this.request = request;
|
this.request = request;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ public class Credentials implements Serializable {
|
|||||||
* @param session The HttpSession to associated with this set of
|
* @param session The HttpSession to associated with this set of
|
||||||
* credentials.
|
* credentials.
|
||||||
*/
|
*/
|
||||||
public void setSession(HttpSession session) {
|
public void setSession(final HttpSession session) {
|
||||||
this.session = session;
|
this.session = session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@ public class AuthenticationFailureEvent implements CredentialEvent {
|
|||||||
*
|
*
|
||||||
* @param credentials The credentials which failed authentication.
|
* @param credentials The credentials which failed authentication.
|
||||||
*/
|
*/
|
||||||
public AuthenticationFailureEvent(Credentials credentials) {
|
public AuthenticationFailureEvent(final Credentials credentials) {
|
||||||
this.credentials = credentials;
|
this.credentials = credentials;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@ public class AuthenticationSuccessEvent implements CredentialEvent {
|
|||||||
*
|
*
|
||||||
* @param credentials The credentials which passed authentication.
|
* @param credentials The credentials which passed authentication.
|
||||||
*/
|
*/
|
||||||
public AuthenticationSuccessEvent(Credentials credentials) {
|
public AuthenticationSuccessEvent(final Credentials credentials) {
|
||||||
this.credentials = credentials;
|
this.credentials = credentials;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -32,7 +32,9 @@ public class TunnelCloseEvent implements CredentialEvent, TunnelEvent {
|
|||||||
* closing the tunnel.
|
* closing the tunnel.
|
||||||
* @param tunnel The tunnel being closed.
|
* @param tunnel The tunnel being closed.
|
||||||
*/
|
*/
|
||||||
public TunnelCloseEvent(Credentials credentials, GuacamoleTunnel tunnel) {
|
public TunnelCloseEvent(final Credentials credentials,
|
||||||
|
final GuacamoleTunnel tunnel) {
|
||||||
|
|
||||||
this.credentials = credentials;
|
this.credentials = credentials;
|
||||||
this.tunnel = tunnel;
|
this.tunnel = tunnel;
|
||||||
}
|
}
|
||||||
|
@@ -32,7 +32,9 @@ public class TunnelConnectEvent implements CredentialEvent, TunnelEvent {
|
|||||||
* connecting the tunnel.
|
* connecting the tunnel.
|
||||||
* @param tunnel The tunnel being connected.
|
* @param tunnel The tunnel being connected.
|
||||||
*/
|
*/
|
||||||
public TunnelConnectEvent(Credentials credentials, GuacamoleTunnel tunnel) {
|
public TunnelConnectEvent(final Credentials credentials,
|
||||||
|
final GuacamoleTunnel tunnel) {
|
||||||
|
|
||||||
this.credentials = credentials;
|
this.credentials = credentials;
|
||||||
this.tunnel = tunnel;
|
this.tunnel = tunnel;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user