Github user d2r commented on the pull request:

    https://github.com/apache/storm/pull/845#issuecomment-159413532
  
    backtype.storm.utils.Utils
    
    After an upmerge, it looks like we cleaned up some duplicate method 
declarations.  However, much of the remaining code is duplicated elsewhere.
    
    
    ```
     664     public static <T> T thriftDeserialize(Class c, byte[] b) {
     665         try {
     666             T ret = (T) c.newInstance();
     667             TDeserializer des = getDes();
     668             des.deserialize((TBase) ret, b);
     669             return ret;
     670         } catch (Exception e) {
     671             throw new RuntimeException(e);
     672         }
     673
     674     }
    ```
    This should just call `Utils.thriftDeserialize(c, b, 0, b.length)`



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to