From a580133945c3adfaeae2eeda077d50cbc9c0afbe Mon Sep 17 00:00:00 2001 From: Emmanuel Bigeon Date: Sun, 14 Oct 2018 09:26:07 -0400 Subject: [PATCH] Removed method with constant return --- gclc/src/main/java/net/bigeon/gclc/GCLCConstants.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gclc/src/main/java/net/bigeon/gclc/GCLCConstants.java b/gclc/src/main/java/net/bigeon/gclc/GCLCConstants.java index 6a3b28c..26af3ce 100644 --- a/gclc/src/main/java/net/bigeon/gclc/GCLCConstants.java +++ b/gclc/src/main/java/net/bigeon/gclc/GCLCConstants.java @@ -85,7 +85,7 @@ import net.bigeon.gclc.exception.CommandParsingException; public final class GCLCConstants { /** The escaping character. */ - private static final char ESCAPING_CHAR = getSystemEscapingChar(); + private static final char ESCAPING_CHAR = '\\'; /** Hide utility class constructor. */ private GCLCConstants() { @@ -108,13 +108,6 @@ public final class GCLCConstants { return cmd.substring(startIndex + 1, index - 1); } - /** Get the excaping character. - * - * @return the escaping character */ - private static char getSystemEscapingChar() { - return '\\'; - } - /** Remove escaping characters from the string. * * @param arg the string to remove excaping character from