LiteralUtils { public static String trimQuotes(String value) { int delimiterLength = isTextBlock(value) ? 3 : 1; return value.substring(delimiterLength, value.length() - delimiterLength); } private  LiteralUtils(); @CheckForNull static Integer intLiteralValue(ExpressionTree expression); @CheckForNull static Long longLiteralValue(ExpressionTree tree); static boolean isEmptyString(Tree tree); static boolean is0xff(ExpressionTree expression); static String trimQuotes(String value); static boolean isTextBlock(String value); static String trimLongSuffix(String longString); static boolean hasValue(Tree tree, String expectedValue); static boolean isTrue(Tree tree); static boolean isFalse(Tree tree); static boolean isZero(ExpressionTree tree); static boolean isOne(ExpressionTree tree); static boolean isNegOne(ExpressionTree tree);  }
@Test void testTrimQuotes() { assertThat(LiteralUtils.trimQuotes("\"test\"")).isEqualTo("test"); assertThat(LiteralUtils.trimQuotes("\"\"\"test\"\"\"")).isEqualTo("test"); }