You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by lu...@apache.org on 2004/11/08 10:31:57 UTC
cvs commit: jakarta-slide/src/share/org/apache/slide/common SlideTokenImpl.java
luetzkendorf 2004/11/08 01:31:57
Modified: src/share/org/apache/slide/common SlideTokenImpl.java
Log:
removed usage of String (String) ctor
Revision Changes Path
1.16 +7 -7 jakarta-slide/src/share/org/apache/slide/common/SlideTokenImpl.java
Index: SlideTokenImpl.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/SlideTokenImpl.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- SlideTokenImpl.java 22 Sep 2004 15:20:23 -0000 1.15
+++ SlideTokenImpl.java 8 Nov 2004 09:31:57 -0000 1.16
@@ -304,7 +304,7 @@
* @return true if successful added to cache, false else
*/
public void cachePermission(ObjectNode object, ActionNode action, boolean permission){
- String key = new String (object.getUri()+ action.getUri());
+ String key = object.getUri()+ action.getUri();
Boolean perm = new Boolean(permission);
permissionCache.put(key,perm);
}
@@ -316,7 +316,7 @@
* @return true if granted, false if denied, null if nothing in the cache.
*/
public Boolean checkPermissionCache(ObjectNode object, ActionNode action){
- String key = new String (object.getUri()+ action.getUri());
+ String key = object.getUri()+ action.getUri();
return (Boolean) permissionCache.get(key);
}
@@ -344,7 +344,7 @@
* allows to cache the result of a lock check
*/
public void cacheLock(ObjectNode object, ActionNode action, boolean lock) {
- String key = new String (object.getUri()+ action.getUri());
+ String key = object.getUri()+ action.getUri();
Boolean locked = new Boolean(lock);
lockCache.put(key,locked);
}
@@ -356,7 +356,7 @@
* @return true if locked, false otherwise
*/
public Boolean checkLockCache(ObjectNode object, ActionNode action) {
- String key = new String (object.getUri()+ action.getUri());
+ String key = object.getUri()+ action.getUri();
return (Boolean) lockCache.get(key);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org