Skip to content

Commit 2b7d03a

Browse files
committed
Make some accidentally public classes package-private
MOE_MIGRATED_REVID=172370009
1 parent 2ec27b5 commit 2b7d03a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
* <p>For example, {@code int [] a;} cannot be distinguished from {@code int [] a [];} in the AST.
3636
*/
37-
public class DimensionHelpers {
37+
class DimensionHelpers {
3838

3939
/** The array dimension specifiers (including any type annotations) associated with a type. */
4040
static class TypeWithDims {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Encapsulates information about a file to be formatted, including which parts of the file to
2424
* format.
2525
*/
26-
public class FormatFileCallable implements Callable<String> {
26+
class FormatFileCallable implements Callable<String> {
2727
private final String input;
2828
private final CommandLineOptions parameters;
2929
private final JavaFormatterOptions options;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.openjdk.tools.javac.util.Context;
3131

3232
/** A wrapper around javac's lexer. */
33-
public class JavacTokens {
33+
class JavacTokens {
3434

3535
/** The lexer eats terminal comments, so feed it one we don't care about. */
3636
// TODO(b/33103797): fix javac and remove the work-around

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.openjdk.tools.javac.tree.TreeInfo;
3232

3333
/** Utilities for working with {@link Tree}s. */
34-
public class Trees {
34+
class Trees {
3535
/** Returns the length of the source for the node. */
3636
static int getLength(Tree tree, TreePath path) {
3737
return getEndPosition(tree, path) - getStartPosition(tree);

0 commit comments

Comments
 (0)