From 931aeb92889ba2d694466099a9e55edbbb4ec77c Mon Sep 17 00:00:00 2001
From: Georg Seibt <seibt@fim.uni-passau.de>
Date: Wed, 13 Apr 2016 14:41:58 +0200
Subject: [PATCH] renaming

---
 .../fim/seibt/gitwrapper/process/ProcessExecutor.java  |  2 +-
 .../fim/seibt/gitwrapper/repo/GitWrapper.java          | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/de/uni_passau/fim/seibt/gitwrapper/process/ProcessExecutor.java b/src/de/uni_passau/fim/seibt/gitwrapper/process/ProcessExecutor.java
index a4b78c1..eff1f7f 100644
--- a/src/de/uni_passau/fim/seibt/gitwrapper/process/ProcessExecutor.java
+++ b/src/de/uni_passau/fim/seibt/gitwrapper/process/ProcessExecutor.java
@@ -6,7 +6,7 @@ public class ProcessExecutor {
      * The result of a command line execution.
      */
     public static class ExecRes {
-        public int code;
+        public int exitCode;
         public String output;
     }
 }
diff --git a/src/de/uni_passau/fim/seibt/gitwrapper/repo/GitWrapper.java b/src/de/uni_passau/fim/seibt/gitwrapper/repo/GitWrapper.java
index bdd0792..bf57484 100644
--- a/src/de/uni_passau/fim/seibt/gitwrapper/repo/GitWrapper.java
+++ b/src/de/uni_passau/fim/seibt/gitwrapper/repo/GitWrapper.java
@@ -63,7 +63,7 @@ public class GitWrapper {
             String firstLine = sc.nextLine();
             Matcher matcher;
 
-            if (execRes.code == EXIT_SUCCESS) {
+            if (execRes.exitCode == EXIT_SUCCESS) {
                 matcher = CLONING_INTO.matcher(firstLine);
             } else {
                 matcher = ALREADY_EXISTS.matcher(firstLine);
@@ -78,7 +78,7 @@ public class GitWrapper {
             File repoDir = new File(parentDir, name);
             String repoPath = repoDir.getAbsolutePath();
 
-            if (execRes.code == EXIT_SUCCESS) {
+            if (execRes.exitCode == EXIT_SUCCESS) {
                 LOG.fine(() -> String.format("Cloned '%s' into '%s'.", url, repoPath));
             } else {
                 LOG.fine(() -> String.format("Found '%s' which would be produced for '%s'", repoPath, url));
@@ -112,7 +112,7 @@ public class GitWrapper {
         }
 
         Optional<ExecRes> status = exec(directory, "rev-parse", "--is-inside-git-dir");
-        return status.map(res -> res.code == EXIT_SUCCESS).orElse(false);
+        return status.map(res -> res.exitCode == EXIT_SUCCESS).orElse(false);
     }
 
     /**
@@ -145,9 +145,9 @@ public class GitWrapper {
             Process p = b.start();
 
             res.output = IOUtils.toString(p.getInputStream());
-            res.code = p.waitFor();
+            res.exitCode = p.waitFor();
 
-            LOG.fine(() -> String.format("Execution of '%s' returned exit code %d.", cmd, res.code));
+            LOG.fine(() -> String.format("Execution of '%s' returned exit code %d.", cmd, res.exitCode));
             LOG.finest(() -> String.format("Execution of '%s' output:%n%s", cmd, res.output));
 
             return Optional.of(res);
-- 
GitLab