staruml / staruml-java

Java extension for StarUML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

abstract method generated 2 times.

Shekharrajak opened this issue · comments

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.