/*
 * JBoss, Home of Professional Open Source
 * Copyright 2010, Red Hat, Inc., and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * 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 org.jboss.seam.sidekick.bus.event.changes.java;

import org.jboss.seam.sidekick.bus.event.changes.java.types.JavaChangeField;
import org.jboss.seam.sidekick.bus.event.changes.java.types.JavaChangeMethod;

/**
 * @author Mike Brock <cbrock@redhat.com>
 */
public enum JavaChangeType
{
   Field {
      public JavaChangeField getChange(JavaChange change)
      {
         return (JavaChangeField) change.getChangeType();
      }},

   Method {
      public JavaChangeMethod getChange(JavaChange change)
      {
         return (JavaChangeMethod) change.getChangeType();
      }};


    public abstract JavaChangeEvent getChange(JavaChange change);
}

@@ -1302,146 +1302,10 @@
 ield
- %7B%0A      public JavaChangeField getChange(JavaChange change)%0A      %7B%0A         return (JavaChangeField) change.getChangeType();%0A      %7D%7D
 ,%0A
-%0A
    M
@@ -1313,213 +1313,8 @@
 thod
- %7B%0A      public JavaChangeMethod getChange(JavaChange change)%0A      %7B%0A         return (JavaChangeMethod) change.getChangeType();%0A      %7D%7D;%0A%0A%0A    public abstract JavaChangeEvent getChange(JavaChange change)
 ;%0A%7D%0A

fix compile issues