Skip to content

Commit 309d92a

Browse files
cushongoogle-java-format Team
authored andcommitted
Adjust parameter comment style
PiperOrigin-RevId: 471112648
1 parent f70db1b commit 309d92a

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

core/src/main/java/com/google/googlejavaformat/java/Formatter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOExcept
136136
JavacParser parser =
137137
parserFactory.newParser(
138138
javaInput.getText(),
139-
/*keepDocComments=*/ true,
140-
/*keepEndPos=*/ true,
141-
/*keepLineMap=*/ true);
139+
/* keepDocComments= */ true,
140+
/* keepEndPos= */ true,
141+
/* keepLineMap= */ true);
142142
unit = parser.parseCompilationUnit();
143143
unit.sourcefile = source;
144144

core/src/main/java/com/google/googlejavaformat/java/RemoveUnusedImports.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@ public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOExcept
252252
ParserFactory parserFactory = ParserFactory.instance(context);
253253
JavacParser parser =
254254
parserFactory.newParser(
255-
javaInput, /*keepDocComments=*/ true, /*keepEndPos=*/ true, /*keepLineMap=*/ true);
255+
javaInput,
256+
/* keepDocComments= */ true,
257+
/* keepEndPos= */ true,
258+
/* keepLineMap= */ true);
256259
unit = parser.parseCompilationUnit();
257260
unit.sourcefile = source;
258261
Iterable<Diagnostic<? extends JavaFileObject>> errorDiagnostics =

core/src/main/java/com/google/googlejavaformat/java/StringWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public CharSequence getCharContent(boolean ignoreEncodingErrors) {
396396
ParserFactory parserFactory = ParserFactory.instance(context);
397397
JavacParser parser =
398398
parserFactory.newParser(
399-
source, /*keepDocComments=*/ true, /*keepEndPos=*/ true, /*keepLineMap=*/ true);
399+
source, /* keepDocComments= */ true, /* keepEndPos= */ true, /* keepLineMap= */ true);
400400
unit = parser.parseCompilationUnit();
401401
unit.sourcefile = sjfo;
402402
Iterable<Diagnostic<? extends JavaFileObject>> errorDiagnostics =

0 commit comments

Comments
 (0)