diff options
author | Renuka Fernando <renuka.piyumal@gmail.com> | 2018-10-11 07:24:09 +0530 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2018-10-11 06:28:34 +0200 |
commit | 9d0feaed1d2dfd56647cba3c5e04907bf1bac337 (patch) | |
tree | 30b44b10e3f1405fe43d13e0d0dab81682d5516d /org.jacoco.core/src/org/jacoco/core | |
parent | cd401754e14d28a5c123e4eebc958215911c8695 (diff) | |
download | jacoco-9d0feaed1d2dfd56647cba3c5e04907bf1bac337.tar.gz |
make constant values readable
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core')
-rw-r--r-- | org.jacoco.core/src/org/jacoco/core/runtime/CommandLineSupport.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/runtime/CommandLineSupport.java b/org.jacoco.core/src/org/jacoco/core/runtime/CommandLineSupport.java index 1493afb7..a85933d7 100644 --- a/org.jacoco.core/src/org/jacoco/core/runtime/CommandLineSupport.java +++ b/org.jacoco.core/src/org/jacoco/core/runtime/CommandLineSupport.java @@ -79,11 +79,11 @@ final class CommandLineSupport { } final List<String> args = new ArrayList<String>(); final StringBuilder current = new StringBuilder(); - int mode = M_STRIPWHITESPACE; + int mode = M_STRIP_WHITESPACE; int endChar = BLANK; for (final char c : commandline.toCharArray()) { switch (mode) { - case M_STRIPWHITESPACE: + case M_STRIP_WHITESPACE: if (!Character.isWhitespace(c)) { if (c == QUOTE) { endChar = QUOTE; @@ -91,13 +91,13 @@ final class CommandLineSupport { current.append(c); endChar = BLANK; } - mode = M_PARSEARGUMENT; + mode = M_PARSE_ARGUMENT; } break; - case M_PARSEARGUMENT: + case M_PARSE_ARGUMENT: if (c == endChar) { addArgument(args, current); - mode = M_STRIPWHITESPACE; + mode = M_STRIP_WHITESPACE; } else if (c == SLASH) { current.append(SLASH); mode = M_ESCAPED; @@ -110,11 +110,11 @@ final class CommandLineSupport { current.setCharAt(current.length() - 1, c); } else if (c == endChar) { addArgument(args, current); - mode = M_STRIPWHITESPACE; + mode = M_STRIP_WHITESPACE; } else { current.append(c); } - mode = M_PARSEARGUMENT; + mode = M_PARSE_ARGUMENT; break; } } @@ -130,8 +130,8 @@ final class CommandLineSupport { } } - private static final int M_STRIPWHITESPACE = 0; - private static final int M_PARSEARGUMENT = 1; + private static final int M_STRIP_WHITESPACE = 0; + private static final int M_PARSE_ARGUMENT = 1; private static final int M_ESCAPED = 2; private CommandLineSupport() { |