Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4366

Fix Lint Warnings in YARN Common

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 2.9.0, 3.0.0-alpha1
    • yarn
    • None
    • Reviewed

    Description

      [WARNING] /Users/daniel/NetBeansProjects/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/Router.java:[100,45] non-varargs call of varargs method with inexact argument type for last parameter;
        cast to java.lang.Class<?> for a varargs call
        cast to java.lang.Class<?>[] for a non-varargs call and to suppress this warning
      [WARNING] /Users/daniel/NetBeansProjects/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java:[62,46] non-varargs call of varargs method with inexact argument type for last parameter;
        cast to java.lang.Class<?> for a varargs call
        cast to java.lang.Class<?>[] for a non-varargs call and to suppress this warning
      [WARNING] /Users/daniel/NetBeansProjects/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java:[64,34] non-varargs call of varargs method with inexact argument type for last parameter;
        cast to java.lang.Object for a varargs call
        cast to java.lang.Object[] for a non-varargs call and to suppress this warning
      

      Attachments

        1. YARN-4366.001.patch
          2 kB
          Daniel Templeton

        Activity

          People

            templedf Daniel Templeton
            templedf Daniel Templeton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: