diff --git a/changelog/@unreleased/pr-559.v2.yml b/changelog/@unreleased/pr-559.v2.yml new file mode 100644 index 0000000..5860f23 --- /dev/null +++ b/changelog/@unreleased/pr-559.v2.yml @@ -0,0 +1,5 @@ +type: improvement +improvement: + description: Mark methods using squareup javapoet as deprecated + links: + - https://github.com/palantir/goethe/pull/559 diff --git a/goethe/src/main/java/com/palantir/goethe/Goethe.java b/goethe/src/main/java/com/palantir/goethe/Goethe.java index 25fbb30..5afa990 100644 --- a/goethe/src/main/java/com/palantir/goethe/Goethe.java +++ b/goethe/src/main/java/com/palantir/goethe/Goethe.java @@ -61,7 +61,9 @@ public static String formatAsString(com.palantir.javapoet.JavaFile file) { * * @param file Javapoet file to format * @return Formatted source code + * @deprecated Use {@link #formatAsString(com.palantir.javapoet.JavaFile)} instead. */ + @Deprecated public static String formatAsString(com.squareup.javapoet.JavaFile file) { StringBuilder rawSource = new StringBuilder(); try { @@ -110,7 +112,9 @@ public static void formatAndEmit(com.palantir.javapoet.JavaFile file, Filer file * * @param file Javapoet file to format * @param filer Destination for the formatted file + * @deprecated Use {@link #formatAndEmit(com.palantir.javapoet.JavaFile, Filer)} instead. */ + @Deprecated public static void formatAndEmit(com.squareup.javapoet.JavaFile file, Filer filer) { String formatted = formatAsString(file); @@ -160,7 +164,9 @@ public static Path formatAndEmit(com.palantir.javapoet.JavaFile file, Path baseD * @param file Javapoet file to format * @param baseDir Source set root where the formatted file will be written * @return the new file location + * @deprecated Use {@link #formatAndEmit(com.palantir.javapoet.JavaFile, Path)} instead. */ + @Deprecated public static Path formatAndEmit(com.squareup.javapoet.JavaFile file, Path baseDir) { String formatted = formatAsString(file); try {