From 79347f262727e56e62d3ae589a6b898b5c0471ec Mon Sep 17 00:00:00 2001 From: Dinesh Bolkensteyn Date: Tue, 24 May 2016 19:41:30 +0200 Subject: [PATCH] Fix quality flaw --- src/main/java/org/sonar/plugins/csharp/CSharpCPDMapping.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/sonar/plugins/csharp/CSharpCPDMapping.java b/src/main/java/org/sonar/plugins/csharp/CSharpCPDMapping.java index 875efd7434d..9859cf29baa 100644 --- a/src/main/java/org/sonar/plugins/csharp/CSharpCPDMapping.java +++ b/src/main/java/org/sonar/plugins/csharp/CSharpCPDMapping.java @@ -64,7 +64,7 @@ public class CSharpCPDMapping extends AbstractCpdMapping { private static final String CONNECTING_CHAR = g("\\p{Pc}"); private static final String FORMATTING_CHAR = g("\\p{Cf}"); - enum CSharpPunctuator implements TokenType { + private enum CSharpPunctuator implements TokenType { SEMICOLON(";"), EQUAL("="), STAR("*"), LCURLYBRACE("{"), LPARENTHESIS("("), LBRACKET("["), RBRACKET("]"), RPARENTHESIS(")"), RCURLYBRACE( "}"), COLON(":"), COMMA(","), DOT("."), EXCLAMATION("!"), SUPERIOR(">"), INFERIOR("<"), PLUS("+"), MINUS("-"), SLASH("/"), MODULO("%"), AND( "&"), XOR("^"), OR("|"), QUESTION("?"), TILDE("~"), DOUBLE_COLON("::"), DOUBLE_QUESTION("??"), EQ_OP("=="), NE_OP("!="), LEFT_ASSIGN( @@ -73,7 +73,7 @@ enum CSharpPunctuator implements TokenType { private final String value; - private CSharpPunctuator(String word) { + CSharpPunctuator(String word) { this.value = word; }