/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 *
 */

package com.xpn.xwiki.web;



public class ObjectRemoveForm extends ObjectAddForm {
    private int classId;

    public void readRequest() {
        super.readRequest();
        setClassId(Integer.parseInt(getRequest().getParameter("classid")));
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

}

@@ -942,20 +942,16 @@
 web;%0D%0A%0D%0A
-%0D%0A%0D%0A
 public c
@@ -993,17 +993,18 @@
 tAddForm
- 
+%0D%0A
 %7B%0D%0A    p
@@ -1055,16 +1055,21 @@
 equest()
+%0D%0A   
  %7B%0D%0A    
@@ -1090,24 +1090,43 @@
 Request();%0D%0A
+        try %7B%0D%0A    
         setC
@@ -1186,24 +1186,98 @@
 assid%22)));%0D%0A
+        %7D catch (Exception ex) %7B%0D%0A            setClassId(-1);%0D%0A        %7D%0D%0A
     %7D%0D%0A%0D%0A   
@@ -1300,16 +1300,21 @@
 lassId()
+%0D%0A   
  %7B%0D%0A    
@@ -1382,16 +1382,21 @@
 classId)
+%0D%0A   
  %7B%0D%0A    

Apply codestyle