Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 644632070
  • Loading branch information
kluever authored and Javac Team committed Jun 20, 2024
1 parent a991d69 commit a49edb3
Show file tree
Hide file tree
Showing 75 changed files with 75 additions and 75 deletions.
2 changes: 1 addition & 1 deletion java/com/google/common/escape/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.annotations.NullMarked
@org.jspecify.nullness.NullMarked
package com.google.common.escape;
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/Binder.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
import java.time.Duration;
import java.util.Optional;
import javax.annotation.processing.Processor;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** The entry point for analysis. */
public final class Binder {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/ClassPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.google.turbine.binder.lookup.TopLevelIndex;
import com.google.turbine.binder.sym.ClassSymbol;
import com.google.turbine.binder.sym.ModuleSymbol;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* A compilation classpath, e.g. the user or platform class path. May be backed by a search path of
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/ClassPathBinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.function.Function;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Sets up an environment for symbols on the classpath. */
public final class ClassPathBinder {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/ConstBinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
import com.google.turbine.type.Type.WildUpperBoundedTy;
import java.lang.annotation.RetentionPolicy;
import java.util.Map;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Binding pass to evaluate constant expressions. */
public class ConstBinder {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/ConstEvaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* Constant expression evaluation.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/CtSymClassBinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Constructs a platform {@link ClassPath} from the current JDK's ct.sym file. */
public final class CtSymClassBinder {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/FileManagerClassBinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import javax.tools.JavaFileObject;
import javax.tools.StandardJavaFileManager;
import javax.tools.StandardLocation;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* Binds a {@link StandardJavaFileManager} to an {@link ClassPath}. This can be used to share a
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/HierarchyBinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import com.google.turbine.tree.Tree.ClassTy;
import java.util.ArrayDeque;
import java.util.LinkedHashMap;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Type hierarchy binding. */
public class HierarchyBinder {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/JimageClassBinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Constructs a platform {@link ClassPath} from the current JDK's jimage file using jrtfs. */
public class JimageClassBinder {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/Processing.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
import javax.lang.model.SourceVersion;
import javax.lang.model.element.TypeElement;
import javax.tools.Diagnostic;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Top level annotation processing logic, see also {@link Binder}. */
public class Processing {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/Resolve.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Qualified name resolution. */
public final class Resolve {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/TypeBinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Type binding. */
public class TypeBinder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Bind {@link Type}s from bytecode. */
public final class BytecodeBinder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
import java.lang.annotation.RetentionPolicy;
import java.util.List;
import java.util.Map;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* A bound class backed by a class file.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/bytecode/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
* limitations under the License.
*/

@org.jspecify.annotations.NullMarked
@org.jspecify.nullness.NullMarked
package com.google.turbine.binder.bytecode;
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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.NullMarked
@org.jspecify.nullness.NullMarked
package com.google.turbine.binder.env;
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.tree.Tree;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** Canonical type resolution. Breaks a circular dependency between binding and import handling. */
public interface CanonicalSymbolResolver extends ImportScope.ResolveFunction {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/lookup/CompoundScope.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import static com.google.common.base.Preconditions.checkNotNull;

import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** A {@link Scope} that chains other scopes together. */
public class CompoundScope implements Scope {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static com.google.common.base.Preconditions.checkNotNull;

import com.google.common.collect.ImmutableList;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** A {@link TopLevelIndex} that aggregates multiple indices into one. */
// Note: this implementation doesn't detect if the indices contain incompatible information,
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/lookup/ImportIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import com.google.turbine.tree.Tree.ImportDecl;
import java.util.HashMap;
import java.util.Map;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* A scope that provides entries for the single-type imports in a compilation unit.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/lookup/ImportScope.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.tree.Tree;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* A scope for imports. Non-canonical imports depend on hierarchy analysis, so to break the cycle we
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** An index for statically imported members, in particular constant variables. */
public class MemberImportIndex {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/lookup/PackageScope.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import com.google.common.collect.Iterables;
import com.google.turbine.binder.sym.ClassSymbol;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* A scope that corresponds to a particular package, which supports iteration over its enclosed
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/lookup/Scope.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.turbine.binder.lookup;

import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** A scope that defines types, and supports qualified name resolution. */
public interface Scope {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* An index of canonical type names where all members are known statically.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/lookup/TopLevelIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.turbine.binder.lookup;

import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* An index of canonical type names.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/lookup/WildImportIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import com.google.turbine.binder.sym.ClassSymbol;
import com.google.turbine.tree.Tree;
import com.google.turbine.tree.Tree.ImportDecl;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/**
* A scope that provides best-effort lookup for on-demand imported types in a compilation unit.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/lookup/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.annotations.NullMarked
@org.jspecify.nullness.NullMarked
package com.google.turbine.binder.lookup;
2 changes: 1 addition & 1 deletion java/com/google/turbine/binder/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.annotations.NullMarked
@org.jspecify.nullness.NullMarked
package com.google.turbine.binder;
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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.Nullable;
import org.jspecify.nullness.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.annotations.NullMarked
@org.jspecify.nullness.NullMarked
package com.google.turbine.binder.sym;
2 changes: 1 addition & 1 deletion java/com/google/turbine/bytecode/ClassFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.Deque;
import java.util.List;
import java.util.Map;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** A JVMS §4.1 ClassFile. */
public class ClassFile {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/bytecode/ClassReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import com.google.turbine.model.TurbineFlag;
import java.util.ArrayList;
import java.util.List;
import org.jspecify.annotations.Nullable;
import org.jspecify.nullness.Nullable;

/** A JVMS §4 class file reader. */
public class ClassReader {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/bytecode/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.annotations.NullMarked
@org.jspecify.nullness.NullMarked
package com.google.turbine.bytecode;
Loading

0 comments on commit a49edb3

Please sign in to comment.