Make method parameters final where it makes sense.

This commit is contained in:
Michael Jumper
2012-08-09 14:09:52 -07:00
parent 5ab65225ef
commit 545c525361
5 changed files with 12 additions and 8 deletions

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }