You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2003/06/11 21:30:23 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication DefaultSiteTree.java

egli        2003/06/11 12:30:22

  Modified:    src/java/org/apache/lenya/cms/publication
                        DefaultSiteTree.java
  Log:
  Indenting fix.
  
  Revision  Changes    Path
  1.17      +19 -14    cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultSiteTree.java
  
  Index: DefaultSiteTree.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultSiteTree.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- DefaultSiteTree.java	11 Jun 2003 17:25:08 -0000	1.16
  +++ DefaultSiteTree.java	11 Jun 2003 19:30:22 -0000	1.17
  @@ -181,18 +181,23 @@
   	/* (non-Javadoc)
   	 * @see org.apache.lenya.cms.publication.SiteTree#addNode(java.lang.String, org.apache.lenya.cms.publication.Label[], java.lang.String, java.lang.String, boolean)
   	 */
  -	public void addNode(String documentid, Label[] labels, String href, String suffix, boolean link)
  -	throws SiteTreeException  {
  -		
  -		String parentid="";
  +	public void addNode(
  +		String documentid,
  +		Label[] labels,
  +		String href,
  +		String suffix,
  +		boolean link)
  +		throws SiteTreeException {
  +
  +		String parentid = "";
   		StringTokenizer st = new StringTokenizer(documentid, "/");
  -		int length=st.countTokens();
  -        for (int i=0; i<length-1; i++){   
  -			parentid=parentid+"/"+st.nextToken();
  -        }
  -        String id = st.nextToken();
  +		int length = st.countTokens();
  +		for (int i = 0; i < length - 1; i++) {
  +			parentid = parentid + "/" + st.nextToken();
  +		}
  +		String id = st.nextToken();
   		this.addNode(parentid, id, labels, href, suffix, link);
  -    	
  +
   	}
   
   	/* (non-Javadoc)
  @@ -261,7 +266,7 @@
   	 * @see org.apache.lenya.cms.publication.SiteTree#removeNode(java.lang.String)
   	 */
   	public SiteTreeNode removeNode(String documentId) {
  -		
  +
   		assert documentId != null;
   
   		Node node = removeNodeInternal(documentId);
  @@ -279,8 +284,8 @@
   	 * @return a org.w3c.dom.Node
   	 */
   	private Node removeNodeInternal(String documentId) {
  -		Node node=this.getNodeInternal(documentId);
  -		Node parentNode= node.getParentNode();
  +		Node node = this.getNodeInternal(documentId);
  +		Node parentNode = node.getParentNode();
   		Node newNode = parentNode.removeChild(node);
   		return newNode;
   	}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org