after instanceof, prefer interfaces and abstract classes

This commit is contained in:
peter.gromov
2010-10-26 20:45:27 +04:00
parent 690f841f65
commit 1e148bbbda
5 changed files with 78 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
package zzzzz;
public class Holder {
{
Foo foo = null;
if (foo instanceof <caret>)
}
}
interface Foo {}
interface IFoo extends Foo {}
abstract class Goo implements IFoo {}
class Bar extends Goo {}