Author: Vincent Prat Description: Disables formatting of code by google-java-format Forwarded: not-needed --- a/unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java +++ b/unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java @@ -9,8 +9,8 @@ import com.google.common.collect.Sets; import com.google.common.collect.SortedSetMultimap; import com.google.common.collect.TreeMultimap; -import com.google.googlejavaformat.java.Formatter; -import com.google.googlejavaformat.java.FormatterException; +//import com.google.googlejavaformat.java.Formatter; +//import com.google.googlejavaformat.java.FormatterException; import com.ibm.icu.impl.UPropertyAliases; import com.ibm.icu.lang.UCharacter; import com.ibm.icu.lang.UCharacterCategory; @@ -279,12 +279,12 @@ .build(); String source = javaFile.toString(); - try { - source = new Formatter().formatSource(source); - } catch (FormatterException e) { - System.err.println("google-java-format reported an error, the output is most likely invalid"); - e.printStackTrace(); - } +// try { +// source = new Formatter().formatSource(source); +// } catch (FormatterException e) { +// System.err.println("google-java-format reported an error, the output is most likely invalid"); +// e.printStackTrace(); +// } System.out.print(source); }