Skip to content

Commit

Permalink
fix: JProtobufAdaptor不应该只扫描public属性
Browse files Browse the repository at this point in the history
Signed-off-by: wendal chen <wendal1985@gmail.com>
  • Loading branch information
wendal committed Aug 11, 2016
1 parent e9cf0af commit 3d45274
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -32,11 +32,10 @@ protected ParamInjector evalInjectorBy(Type type, Param param) {
log.warnf("!!Fail to get Type Class : type=%s , param=%s", type, param);
return null;
}
Field[] fields = clazz.getFields();
for (Field field : fields) {
for (Field field : clazz.getDeclaredFields()) {
Protobuf protobuf = field.getAnnotation(Protobuf.class);
if (!Lang.isEmpty(protobuf)) {
if (Lang.isEmpty(this.clazz)) {
if (protobuf != null) {
if (null == this.clazz) {
this.clazz = clazz;
return new JProtobufPairInjector();
} else {
Expand Down

0 comments on commit 3d45274

Please sign in to comment.