Skip to content

Commit f78ce05

Browse files
blicklycopybara-github
authored andcommitted
Remove unnecessary usage of String.join
PiperOrigin-RevId: 825211813
1 parent 25be70e commit f78ce05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/com/google/javascript/jscomp/deps/JsFileRegexParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ protected boolean parseLine(String line) throws ParseException {
351351

352352
if (!googMatcherBuffer.isEmpty()) {
353353
// Retry with the previous line.
354-
lineHasProvidesOrRequires = applyGoogMatcher(String.join("", googMatcherBuffer, line));
354+
lineHasProvidesOrRequires = applyGoogMatcher(googMatcherBuffer + line);
355355
}
356356
if (!lineHasProvidesOrRequires && lineHasProvidesOrRequiresWords) {
357357
// Try without the previous line.

0 commit comments

Comments
 (0)