You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2021/02/11 07:44:58 UTC

[incubator-hop] branch master updated: Private fields only used as local variables in methods should become local variables

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a905bf  Private fields only used as local variables in methods should become local variables
     new 2fb0aa3  Merge pull request #619 from nanthakumar1305/sonarqube_20210211
4a905bf is described below

commit 4a905bf4bcdb35b9521b9964df3728abb5eaa1bb
Author: nanthakumar1305 <na...@gmail.com>
AuthorDate: Thu Feb 11 06:11:00 2021 +0000

    Private fields only used as local variables in methods should become local variables
---
 engine/src/main/java/org/apache/hop/config/HopConfig.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/engine/src/main/java/org/apache/hop/config/HopConfig.java b/engine/src/main/java/org/apache/hop/config/HopConfig.java
index bf7605b..f4892e2 100644
--- a/engine/src/main/java/org/apache/hop/config/HopConfig.java
+++ b/engine/src/main/java/org/apache/hop/config/HopConfig.java
@@ -54,7 +54,6 @@ public class HopConfig implements Runnable, IHasHopMetadataProvider {
 
   private CommandLine cmd;
   private IVariables variables;
-  private ILogChannel log;
   private IHopMetadataProvider metadataProvider;
 
   public void run() {
@@ -62,7 +61,7 @@ public class HopConfig implements Runnable, IHasHopMetadataProvider {
     try {
       LogChannel logChannel = new LogChannel("hop-config");
       logChannel.setSimplified(true);
-      log = logChannel;
+      ILogChannel log = logChannel;
       variables = Variables.getADefaultVariableSpace();
       buildMetadataProvider();