@@ -68,8 +68,7 @@ public BeanBuilder implement(boolean failOnUnrecognized)
6868 // First: find all supertypes:
6969 implTypes .add (_type );
7070 BeanUtil .findSuperTypes (_type , Object .class , implTypes );
71- final boolean hasConcrete = !_type .isInterface ();
72-
71+
7372 for (JavaType impl : implTypes ) {
7473 TypeResolutionContext ctxt = buildTypeContext (impl );
7574
@@ -107,7 +106,7 @@ public BeanBuilder implement(boolean failOnUnrecognized)
107106 continue ;
108107 }
109108 // [module-mrbean#11]: try to support overloaded methods
110- if (hasConcrete && hasConcreteOverride (m , _type )) {
109+ if (hasConcreteOverride (m , _type )) {
111110 continue ;
112111 }
113112 if (failOnUnrecognized ) {
@@ -117,14 +116,13 @@ public BeanBuilder implement(boolean failOnUnrecognized)
117116 _unsupportedMethods .put (methodName , m );
118117 }
119118 }
120-
121119 return this ;
122120 }
123121
124122 /**
125123 * Method that generates byte code for class that implements abstract
126124 * types requested so far.
127- *
125+ *
128126 * @param className Fully-qualified name of the class to generate
129127 * @return Byte code Class instance built by this builder
130128 */
@@ -176,7 +174,7 @@ public byte[] build(String className)
176174 /**
177175 * Helper method used to detect if an abstract method found in a base class
178176 * may actually be implemented in a (more) concrete sub-class.
179- *
177+ *
180178 * @since 2.4
181179 */
182180 protected boolean hasConcreteOverride (Method m0 , JavaType implementedType )
@@ -196,7 +194,7 @@ protected boolean hasConcreteOverride(Method m0, JavaType implementedType)
196194 }
197195 return false ;
198196 }
199-
197+
200198 protected String getPropertyName (String methodName )
201199 {
202200 int prefixLen = methodName .startsWith ("is" ) ? 2 : 3 ;
@@ -220,7 +218,7 @@ protected void addGetter(TypeResolutionContext ctxt, Method m)
220218 POJOProperty prop = findProperty (ctxt , getPropertyName (m .getName ()));
221219 // only set if not yet set; we start with super class:
222220 if (prop .getGetter () == null ) {
223- prop .setGetter (m );
221+ prop .setGetter (m );
224222 }
225223 }
226224
@@ -241,7 +239,7 @@ protected POJOProperty findProperty(TypeResolutionContext ctxt, String propName)
241239 }
242240 return prop ;
243241 }
244-
242+
245243 protected final static boolean returnsBoolean (Method m )
246244 {
247245 Class <?> rt = m .getReturnType ();
0 commit comments