Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10168

fix javadoc of ReflectionUtils.copy

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None
    • Reviewed

    Description

      In the javadoc of ReflectionUtils.copy, the return value is not documented, the arguments are named incorrectly.

        /**                                                                                                                                                                                                                                                                
         * Make a copy of the writable object using serialization to a buffer                                                                                                                                                                                              
         * @param dst the object to copy from                                                                                                                                                                                                                              
         * @param src the object to copy into, which is destroyed                                                                                                                                                                                                          
         * @throws IOException                                                                                                                                                                                                                                             
         */
        @SuppressWarnings("unchecked")
        public static <T> T copy(Configuration conf,
                                      T src, T dst) throws IOException {
      

      Attachments

        1. HADOOP-10168.1.patch
          0.9 kB
          Thejas Nair

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            thejas Thejas Nair
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment