Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 644809609
  • Loading branch information
kluever authored and Javac Team committed Jun 20, 2024
1 parent a49edb3 commit c32840c
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/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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** Type binding. */
public class TypeBinder {
Expand Down
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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.NullMarked
@org.jspecify.annotations.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.nullness.NullMarked
@org.jspecify.annotations.NullMarked
package com.google.turbine.binder;

0 comments on commit c32840c

Please sign in to comment.