From 249f31434a7b451da1e9909052e32f2f9aa8c04f Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Fri, 13 Aug 2021 09:20:57 -0500 Subject: [PATCH] Make APIs accessible --- .../j2cl/tools/gwtincompatible/GwtIncompatibleStripper.java | 2 +- transpiler/java/com/google/j2cl/common/SourceUtils.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/java/com/google/j2cl/tools/gwtincompatible/GwtIncompatibleStripper.java b/tools/java/com/google/j2cl/tools/gwtincompatible/GwtIncompatibleStripper.java index 38c277d420..f55f397b45 100644 --- a/tools/java/com/google/j2cl/tools/gwtincompatible/GwtIncompatibleStripper.java +++ b/tools/java/com/google/j2cl/tools/gwtincompatible/GwtIncompatibleStripper.java @@ -56,7 +56,7 @@ static void strip(List files, Path outputPath, Problems problems) { } /** Preprocess all provided files and put them to provided output path. */ - private static void preprocessFiles(List fileInfos, Output output, Problems problems) { + public static void preprocessFiles(List fileInfos, Output output, Problems problems) { for (FileInfo fileInfo : fileInfos) { String processedFileContent; try { diff --git a/transpiler/java/com/google/j2cl/common/SourceUtils.java b/transpiler/java/com/google/j2cl/common/SourceUtils.java index 045c1efc7a..5f332af759 100644 --- a/transpiler/java/com/google/j2cl/common/SourceUtils.java +++ b/transpiler/java/com/google/j2cl/common/SourceUtils.java @@ -34,11 +34,11 @@ public class SourceUtils { @AutoValue public abstract static class FileInfo implements Comparable { - private static FileInfo create(String sourcePath, String originalPath) { + public static FileInfo create(String sourcePath, String originalPath) { return create(sourcePath, originalPath, originalPath); } - private static FileInfo create(String sourcePath, String originalPath, String targetPath) { + public static FileInfo create(String sourcePath, String originalPath, String targetPath) { return new AutoValue_SourceUtils_FileInfo(sourcePath, originalPath, targetPath); }