Correct package name of javax.annotation.Nullable.
It doesn't really matter, since we don't look things up in a classpath. But as we begin experimenting with recognizing specific fully qualified annotation names, there's an 0.1% change that it will matter somehow. And I just stumbled across this typo while doing research, so I figured I'd make sure it never matters.
PiperOrigin-RevId: 393200270
diff --git a/core/src/test/java/com/google/googlejavaformat/java/FormatterTest.java b/core/src/test/java/com/google/googlejavaformat/java/FormatterTest.java
index 9859245..1653e56 100644
--- a/core/src/test/java/com/google/googlejavaformat/java/FormatterTest.java
+++ b/core/src/test/java/com/google/googlejavaformat/java/FormatterTest.java
@@ -238,7 +238,7 @@
"",
"import java.util.List;",
"",
- "import javax.annotations.Nullable;");
+ "import javax.annotation.Nullable;");
@Test
public void importsNotReorderedByDefault() throws FormatterException {
@@ -262,7 +262,7 @@
String expect =
"package com.google.example;\n\n"
+ "import java.util.List;\n"
- + "import javax.annotations.Nullable;\n\n"
+ + "import javax.annotation.Nullable;\n\n"
+ "public class ExampleTest {\n"
+ " @Nullable List<?> xs;\n"
+ "}\n";
diff --git a/core/src/test/java/com/google/googlejavaformat/java/ImportOrdererTest.java b/core/src/test/java/com/google/googlejavaformat/java/ImportOrdererTest.java
index f40fa38..0b9dab2 100644
--- a/core/src/test/java/com/google/googlejavaformat/java/ImportOrdererTest.java
+++ b/core/src/test/java/com/google/googlejavaformat/java/ImportOrdererTest.java
@@ -313,7 +313,7 @@
"",
"import java.util.List;",
"",
- "import javax.annotations.Nullable;",
+ "import javax.annotation.Nullable;",
"",
"import static org.junit.Assert.fail;",
"import static com.google.truth.Truth.assertThat;",
@@ -329,7 +329,7 @@
"",
"import com.google.common.base.Preconditions;",
"import java.util.List;",
- "import javax.annotations.Nullable;",
+ "import javax.annotation.Nullable;",
"import org.junit.runner.RunWith;",
"import org.junit.runners.JUnit4;",
"",
diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-and-import-sorting b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-and-import-sorting
index e6994f7..8d144c2 100644
--- a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-and-import-sorting
+++ b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-and-import-sorting
@@ -6,7 +6,7 @@
import com.google.common.base.Preconditions;
import java.util.List;
import java.util.Set;
-import javax.annotations.Nullable;
+import javax.annotation.Nullable;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-and-unused-import-removal b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-and-unused-import-removal
index 7d5df53..9b1d01f 100644
--- a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-and-unused-import-removal
+++ b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-and-unused-import-removal
@@ -7,7 +7,7 @@
import java.util.List;
-import javax.annotations.Nullable;
+import javax.annotation.Nullable;
import static org.junit.Assert.fail;
import static com.google.truth.Truth.assertThat;
diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-only b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-only
index 7d5df53..9b1d01f 100644
--- a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-only
+++ b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.formatting-only
@@ -7,7 +7,7 @@
import java.util.List;
-import javax.annotations.Nullable;
+import javax.annotation.Nullable;
import static org.junit.Assert.fail;
import static com.google.truth.Truth.assertThat;
diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.imports-and-formatting b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.imports-and-formatting
index 887d43c..d7bcd6d 100644
--- a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.imports-and-formatting
+++ b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.imports-and-formatting
@@ -5,7 +5,7 @@
import com.google.common.base.Preconditions;
import java.util.List;
-import javax.annotations.Nullable;
+import javax.annotation.Nullable;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.imports-only b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.imports-only
index 88f83f1..a50a83e 100644
--- a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.imports-only
+++ b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.imports-only
@@ -5,7 +5,7 @@
import com.google.common.base.Preconditions;
import java.util.List;
-import javax.annotations.Nullable;
+import javax.annotation.Nullable;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.input b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.input
index be1eacd..dd992a3 100644
--- a/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.input
+++ b/core/src/test/resources/com/google/googlejavaformat/java/testimports/A.input
@@ -8,7 +8,7 @@
import java.util.List;
import java.util.Set;
-import javax.annotations.Nullable;
+import javax.annotation.Nullable;
import static org.junit.Assert.fail;
import static com.google.truth.Truth.assertThat;