]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Role.java
Salome HOME
Copyrights update 2015.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / Role.java
index 512e59aed2db88483d28558f8c72c6c38a026dec..c9b66999a8e2400d8427ec5e86c757c81952e45f 100644 (file)
@@ -6,7 +6,7 @@ package org.splat.dal.bo.kernel;
  * 
  * @see User
  * @author    Daniel Brunier-Coulin
- * @copyright OPEN CASCADE 2012
+ * @copyright OPEN CASCADE 2012-2015
  */
 
 import java.util.Vector;
@@ -25,7 +25,7 @@ public class Role {
     protected Role () {
     }
 //  Initialization constructor
-    protected Role (String username, String role) {
+    protected Role (final String username, final String role) {
 //  ---------------------------------------------
       this.username = username;
       this.role     = role;
@@ -35,7 +35,7 @@ public class Role {
 //  Protected member functions
 //  ==============================================================================================================================
 
-    protected void addRole (String role) {
+    protected void addRole (final String role) {
 //  ------------------------------------
       this.role = this.role + "," + role;
     }
@@ -59,13 +59,14 @@ public class Role {
       return role;
     }
 
-    public boolean is (String name) {
+    public boolean is (final String name) {
 //  -------------------------------
       return  this.role.equals(name);
     }
 
-    public boolean isSame (Role other) {
+    public boolean isSame (final Role other) {
 //  ----------------------------------         
       return  this.role.equals(other.role);
     }
+    
 }
\ No newline at end of file