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

fix javadoc of ReflectionUtils.copy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

            People

            • Assignee:
              thejas Thejas Nair
              Reporter:
              thejas Thejas Nair
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: