remove duplicate code in java
Posted
by Anantha Kumaran
on Stack Overflow
See other posts from Stack Overflow
or by Anantha Kumaran
Published on 2010-03-13T07:55:05Z
Indexed on
2010/03/13
8:05 UTC
Read the original article
Hit count: 324
class A extends ApiClass
{
public void duplicateMethod()
{
}
}
class B extends AnotherApiClass
{
public void duplicateMethod()
{
}
}
I have two classes which extend different api classes. The two class has some duplicate methods(same method repeated in both class) and how to remove this duplication?
Edit
The ApiClass is not under my control
© Stack Overflow or respective owner