Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 645140593
  • Loading branch information
kluever authored and Javac Team committed Jun 20, 2024
1 parent 331afa7 commit 73d0d1f
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/env/CompoundEnv.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static java.util.Objects.requireNonNull;

import com.google.turbine.binder.sym.Symbol;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** An {@link Env} that chains two existing envs together. */
public class CompoundEnv<S extends Symbol, V> implements Env<S, V> {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/env/Env.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import com.google.turbine.binder.sym.ClassSymbol;
import com.google.turbine.binder.sym.Symbol;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/**
* An environment that maps {@link Symbol}s {@code S} to bound nodes {@code V}.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/env/LazyEnv.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/**
* An env that permits an analysis pass to access information about symbols from the current pass,
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/env/SimpleEnv.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.google.turbine.binder.sym.Symbol;
import java.util.LinkedHashMap;
import java.util.Map;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A simple {@link ImmutableMap}-backed {@link Env}. */
public class SimpleEnv<K extends Symbol, V> implements Env<K, V> {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/env/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

@com.google.errorprone.annotations.CheckReturnValue
@org.jspecify.nullness.NullMarked
@org.jspecify.annotations.NullMarked
package com.google.turbine.binder.env;
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/sym/ClassSymbol.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.google.turbine.binder.sym;

import com.google.errorprone.annotations.Immutable;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/**
* A class symbol.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/sym/FieldSymbol.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import com.google.errorprone.annotations.Immutable;
import java.util.Objects;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A field symbol. */
@Immutable
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/sym/MethodSymbol.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import com.google.errorprone.annotations.Immutable;
import java.util.Objects;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A method symbol. */
@Immutable
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/sym/ModuleSymbol.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.google.turbine.binder.sym;

import com.google.errorprone.annotations.Immutable;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A module symbol. */
@Immutable
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/sym/PackageSymbol.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.google.turbine.binder.sym;

import com.google.errorprone.annotations.Immutable;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A package symbol. */
@Immutable
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/sym/ParamSymbol.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import com.google.errorprone.annotations.Immutable;
import java.util.Objects;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A parameter symbol. */
@Immutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import com.google.errorprone.annotations.Immutable;
import java.util.Objects;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A record component symbol. */
@Immutable
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/sym/TyVarSymbol.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import com.google.errorprone.annotations.Immutable;
import java.util.Objects;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A type variable symbol. */
@Immutable
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/sym/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

@com.google.errorprone.annotations.CheckReturnValue
@org.jspecify.nullness.NullMarked
@org.jspecify.annotations.NullMarked
package com.google.turbine.binder.sym;
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import javax.lang.model.type.DeclaredType;
import javax.lang.model.type.ErrorType;
import javax.lang.model.type.TypeMirror;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/**
* An implementation of {@link AnnotationMirror} and {@link AnnotationValue} backed by {@link
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/processing/TurbineElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
import javax.lang.model.element.TypeParameterElement;
import javax.lang.model.element.VariableElement;
import javax.lang.model.type.TypeMirror;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** An {@link Element} implementation backed by a {@link Symbol}. */
@SuppressWarnings("nullness") // TODO(cushon): Address nullness diagnostics.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/processing/TurbineElements.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
import javax.lang.model.type.DeclaredType;
import javax.lang.model.type.TypeMirror;
import javax.lang.model.util.Elements;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** An implementation of {@link Elements} backed by turbine's {@link Element}. */
@SuppressWarnings("nullness") // TODO(cushon): Address nullness diagnostics.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/processing/TurbineMessager.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import javax.lang.model.element.AnnotationValue;
import javax.lang.model.element.Element;
import javax.tools.Diagnostic;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** Turbine's implementation of {@link Messager}. */
public class TurbineMessager implements Messager {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/processing/TurbineName.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static java.util.Objects.requireNonNull;

import javax.lang.model.element.Name;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** An implementation of {@link Name} backed by a {@link CharSequence}. */
public class TurbineName implements Name {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import javax.lang.model.SourceVersion;
import javax.lang.model.util.Elements;
import javax.lang.model.util.Types;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** Turbine's {@link ProcessingEnvironment}. */
public class TurbineProcessingEnvironment implements ProcessingEnvironment {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/processing/TurbineTypeMirror.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
import javax.lang.model.type.TypeVariable;
import javax.lang.model.type.TypeVisitor;
import javax.lang.model.type.WildcardType;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A {@link TypeMirror} implementation backed by a {@link Type}. */
public abstract class TurbineTypeMirror implements TypeMirror {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/processing/TurbineTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
import javax.lang.model.type.TypeMirror;
import javax.lang.model.type.WildcardType;
import javax.lang.model.util.Types;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** An implementation of {@link Types} backed by turbine's {@link TypeMirror}. */
@SuppressWarnings("nullness") // TODO(cushon): Address nullness diagnostics.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/tree/Pretty.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A pretty-printer for {@link Tree}s. */
public class Pretty implements Tree.Visitor<@Nullable Void, @Nullable Void> {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/tree/Tree.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.util.Deque;
import java.util.Optional;
import java.util.Set;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** An AST node. */
public abstract class Tree {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/tree/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

@com.google.errorprone.annotations.CheckReturnValue
@org.jspecify.nullness.NullMarked
@org.jspecify.annotations.NullMarked
package com.google.turbine.tree;

0 comments on commit 73d0d1f

Please sign in to comment.