Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartDengg committed Jan 31, 2019
1 parent 8c37c30 commit b894dcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* 创建时间: 2019/01/11 16:54 <br>
* 作者: SmartDengg <br>
* 描述:
* 描述: combine dynamic proxy and reflection to delegate the interface reference
*/
public final class InterfaceBuoy {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
* 作者: SmartDengg <br>
* 描述:
*/
public class Utils {
class Utils {

private Utils() {
throw new AssertionError("no instance");
}

static boolean validateInterface(Class<?>[] interfaces) {
return interfaces.length <= 1 && interfaces[0].getInterfaces().length == 0;
return interfaces != null
&& interfaces.length == 1
&& interfaces[0].getInterfaces().length == 0;
}
}

0 comments on commit b894dcf

Please sign in to comment.