Uploaded image for project: 'REEF'
  1. REEF
  2. REEF-1150

Use `static` members properly by removing access by `instance` reference

    XMLWordPrintableJSON

    Details

      Description

      `static` members (methods and variables) should not be accessed by using `instance` reference. This issue fixes the followings.

      JobClient.java
      -        this.driverConfiguration = Configurations.merge(this.driverConfiguration, this.getYarnConfiguration());
      +        this.driverConfiguration = Configurations.merge(this.driverConfiguration, getYarnConfiguration());
      
      LoggingScopeFactory.java
      -    return new LoggingScopeImpl(LOG, logLevel, this.DRIVER_STOP + " :" + timeStamp);
      +    return new LoggingScopeImpl(LOG, logLevel, DRIVER_STOP + " :" + timeStamp);
      
      AvroConfigurationSerializer.java
      -      configurationEntries.add(new ConfigurationEntry().newBuilder()
      +      configurationEntries.add(ConfigurationEntry.newBuilder()
      
      NamingTest.java
      -          .set(NameResolverConfiguration.CACHE_TIMEOUT, this.TTL)
      +          .set(NameResolverConfiguration.CACHE_TIMEOUT, TTL)
      

        Attachments

          Activity

            People

            • Assignee:
              dongjoon Dongjoon Hyun
              Reporter:
              dongjoon Dongjoon Hyun
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: