square/retrofit — pull request #364 by DushyanthMaguluru (2013-12-08 12:43:39+00:00)
Title: Check for extended interfaces using getInterfaces().length instead of getSuperclass()

According to http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html#getSuperclass(), calling getSuperClass() on an interface always returns null.

So in the commit 5a3c114 (issue #300) is the following code correct?
```
if (service.getSuperclass() != null) {
throw new IllegalArgumentException("Interface definitions must not extend other interfaces.");
}
```

The reason I ask is I setup my interfaces this way

```
public interface UserService {
...
}

public interface AuthService {
...
}

public interface MainService extends AuthService, UserService {
...
}
```
and I was able to create a rest adapter for the MainServer without the expected IllegalArgumentException

```
restAdapter.create(MainService.class); // Was expecting this to blow up
```

I am sorry if I misunderstood something. If not can you please review my pull request? Thank you.