Skip to content

Commit

Permalink
Sync with master
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzyanov committed Apr 19, 2021
1 parent c14b5ac commit 7e2ec1d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format-parent</artifactId>
<version>HEAD-SNAPSHOT</version>
<version>1.10.0-SNAPSHOT</version>
</parent>

<artifactId>google-java-format</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ public void format() {
try {
Formatter formatter = new Formatter();
String output = formatter.formatSource(input);
output = StringWrapper.wrap(output, formatter);
JavaFormatterOptions options = JavaFormatterOptions.builder().build();
output = StringWrapper.wrap(output, formatter, options);
assertEquals("bad output for " + name, expected, output);
} catch (FormatterException e) {
fail(String.format("Formatter crashed on %s: %s", name, e.getMessage()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import org.junit.Rule;
Expand Down
2 changes: 1 addition & 1 deletion idea_plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories {
}

ext {
googleJavaFormatVersion = '1.10.0'
googleJavaFormatVersion = '1.10.0-SNAPSHOT'
}

apply plugin: 'org.jetbrains.intellij'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import javax.swing.JPanel;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.text.NumberFormat;
import javax.annotation.Nullable;
import javax.swing.*;

import org.jetbrains.annotations.Nls;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format-parent</artifactId>
<packaging>pom</packaging>
<version>HEAD-SNAPSHOT</version>
<version>1.10.0-SNAPSHOT</version>

<modules>
<module>core</module>
Expand Down

0 comments on commit 7e2ec1d

Please sign in to comment.