diff options
author | Liam Miller-Cushon <cushon@google.com> | 2021-09-17 10:50:53 -0700 |
---|---|---|
committer | Javac Team <javac-team+copybara@google.com> | 2021-09-17 10:51:32 -0700 |
commit | 22e3c673b3d3f679fe0fa872da1acaada732a291 (patch) | |
tree | 23abe2de40dcbb85e12b1f6ef810c16e3c75b283 /java/com/google/turbine/types/Canonicalize.java | |
parent | 9c70fad35e1d8959048816ca64d2bb4dc684d072 (diff) | |
download | turbine-22e3c673b3d3f679fe0fa872da1acaada732a291.tar.gz |
Fix position of type annotations
PiperOrigin-RevId: 397354545
Diffstat (limited to 'java/com/google/turbine/types/Canonicalize.java')
-rw-r--r-- | java/com/google/turbine/types/Canonicalize.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/com/google/turbine/types/Canonicalize.java b/java/com/google/turbine/types/Canonicalize.java index a0ba2c4..f944bb5 100644 --- a/java/com/google/turbine/types/Canonicalize.java +++ b/java/com/google/turbine/types/Canonicalize.java @@ -284,8 +284,7 @@ public class Canonicalize { } /** Instantiates a type argument using the given mapping. */ - @Nullable - private static Type instantiate(Map<TyVarSymbol, Type> mapping, Type type) { + private static @Nullable Type instantiate(Map<TyVarSymbol, Type> mapping, Type type) { if (type == null) { return null; } @@ -344,8 +343,7 @@ public class Canonicalize { * Returns the type variable symbol for a concrete type argument whose type is a type variable * reference, or else {@code null}. */ - @Nullable - private static TyVarSymbol tyVarSym(Type type) { + private static @Nullable TyVarSymbol tyVarSym(Type type) { if (type.tyKind() == TyKind.TY_VAR) { return ((TyVar) type).sym(); } |