Skip to content

Commit e0c519f

Browse files
committed
Checkstyle
1 parent 6b9bc13 commit e0c519f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

grpc-contrib/src/main/java/com/salesforce/grpc/contrib/xfcc/XfccQuoteUtil.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1+
/*
2+
* Copyright (c) 2017, salesforce.com, inc.
3+
* All rights reserved.
4+
* Licensed under the BSD 3-Clause license.
5+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6+
*/
17
package com.salesforce.grpc.contrib.xfcc;
28

39
import java.util.ArrayList;
410
import java.util.List;
511

12+
/**
13+
* Utility methods for quote escaping in XFCC headers.
14+
*/
615
final class XfccQuoteUtil {
716
private XfccQuoteUtil() { }
817

918
/**
10-
* Break str into individual elements, splitting on delim (not in quotes)
19+
* Break str into individual elements, splitting on delim (not in quotes).
1120
*/
1221
static List<String> quoteAwareSplit(String str, char delim) {
1322
boolean inQuotes = false;
@@ -60,7 +69,7 @@ static List<String> quoteAwareSplit(String str, char delim) {
6069
}
6170

6271
/**
63-
* Add escaping around double quote characters; wrap with quotes if special characters are present
72+
* Add escaping around double quote characters; wrap with quotes if special characters are present.
6473
*/
6574
static String enquote(String value) {
6675
// Escape inner quotes with \"
@@ -75,7 +84,7 @@ static String enquote(String value) {
7584
}
7685

7786
/**
78-
* Remove leading and tailing unescaped quotes; remove escaping from escaped internal quotes
87+
* Remove leading and tailing unescaped quotes; remove escaping from escaped internal quotes.
7988
*/
8089
static String dequote(String str) {
8190
str = str.replace("\\\"", "\"");

0 commit comments

Comments
 (0)