can be refactore to a method 

```
setValue(getInvocationReturnType(returnTypes,in));
private Object getInvocationReturnType(Type[] returnType,ObjectInput in) {
  if(returnType == null || returnType.length == 0) {
      return in.readObject();
  }
  if( returnType.length ==1 ) {
     return in.readObject((Class<?>) returnType[0];
  }
   return in.readObject((Class<?>) returnType[0], returnType[1]);
}
```
What do you say?
As this code I have done without editor so there might some braces or 
syntactical error so plz excuse me for that.

[ Full content available at: 
https://github.com/apache/incubator-dubbo/pull/3303 ]
This message was relayed via gitbox.apache.org for 
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to