Update of /var/cvs/src/org/mmbase/bridge/implementation
In directory james.mmbase.org:/tmp/cvs-serv8871/implementation

Modified Files:
        BasicCloud.java 
Log Message:
javadoc


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/bridge/implementation


Index: BasicCloud.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/bridge/implementation/BasicCloud.java,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -b -r1.186 -r1.187
--- BasicCloud.java     7 Jul 2008 11:09:39 -0000       1.186
+++ BasicCloud.java     29 Jul 2008 09:20:52 -0000      1.187
@@ -29,7 +29,7 @@
  * @author Rob Vermeulen
  * @author Pierre van Rooden
  * @author Michiel Meeuwissen
- * @version $Id: BasicCloud.java,v 1.186 2008/07/07 11:09:39 michiel Exp $
+ * @version $Id: BasicCloud.java,v 1.187 2008/07/29 09:20:52 michiel Exp $
  */
 public class BasicCloud implements Cloud, Cloneable, Comparable<Cloud>, 
SizeMeasurable, Serializable {
 
@@ -392,6 +392,7 @@
     }
 
     public RelationManager getRelationManager(String sourceManagerName, String 
destinationManagerName, String roleName) throws NotFoundException {
+        if (roleName == null) throw new IllegalArgumentException();
         int r = BasicCloudContext.mmb.getRelDef().getNumberByName(roleName);
         if (r == -1) {
             throw new NotFoundException("Role '" + roleName + "' does not 
exist.");
@@ -416,6 +417,7 @@
     }
 
     public RelationManager getRelationManager(NodeManager source, NodeManager 
destination, String roleName) throws NotFoundException {
+        if (roleName == null) throw new IllegalArgumentException();
         int r = BasicCloudContext.mmb.getRelDef().getNumberByName(roleName);
         if (r == -1) {
             throw new NotFoundException("Role '" + roleName + "' does not 
exist.");
@@ -575,7 +577,7 @@
     }
 
     /**
-     * Retrieves the current user accountname (unique)
+     * The owner to use for the temporary node manager.
      * @return the account name
      */
     String getAccount() {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to