staruml / staruml-java

Java extension for StarUML
MIT License
224 stars 90 forks source link

abstract method generated 2 times. #13

Open Shekharrajak opened 8 years ago

Shekharrajak commented 8 years ago

I added interface IShape :

public interface IShape {

    /**
     * @return
     */
    public abstract double getArea();

}

then added a class Rectangle immplements IShape : I copied the abstract method getArear() into the class Rectangle from IShape and unchecked the isAbstract box.

public class Rectangle implements IShape {

    /**
     * @return
     */
    public double getArea() {
        // TODO implement here
        return 0.0d;
    }

    /**
     * @return
     */
    public abstract double getArea();

So it should not generate code with 2 methods public double getArea() and public abstract double getArea(); in java.