Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 644809641
  • Loading branch information
kluever authored and Javac Team committed Jun 20, 2024
1 parent c32840c commit 331afa7
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/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.nullness.NullMarked
@org.jspecify.annotations.NullMarked
package com.google.common.escape;
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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.NullMarked
@org.jspecify.annotations.NullMarked
package com.google.turbine.binder.bytecode;
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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.Nullable;
import org.jspecify.annotations.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.nullness.NullMarked
@org.jspecify.annotations.NullMarked
package com.google.turbine.bytecode;
2 changes: 1 addition & 1 deletion java/com/google/turbine/bytecode/sig/Sig.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

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

/** JVMS 4.7.9.1 signatures. */
public final class Sig {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/bytecode/sig/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.bytecode.sig;
2 changes: 1 addition & 1 deletion java/com/google/turbine/deps/Transitive.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import com.google.turbine.model.TurbineFlag;
import java.util.LinkedHashSet;
import java.util.Set;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/**
* Collects the minimal compile-time API for symbols in the supertype closure of compiled classes.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/diag/SourceFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import com.google.common.base.Supplier;
import com.google.common.base.Suppliers;
import java.util.Objects;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A source file. */
public class SourceFile {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/diag/TurbineDiagnostic.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import com.google.turbine.diag.TurbineError.ErrorKind;
import java.util.Objects;
import javax.tools.Diagnostic;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A compilation error. */
public class TurbineDiagnostic {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/lower/Lower.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** Lowering from bound classes to bytecode. */
public class Lower {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/lower/LowerSignature.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** Translator from {@link Type}s to {@link Sig}natures. */
public class LowerSignature {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/model/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.google.common.escape.SourceCodeEscapers;
import javax.lang.model.element.AnnotationValue;
import javax.lang.model.element.AnnotationValueVisitor;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/**
* Compile-time constant expressions, including literals of primitive or String type, class
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/options/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.nullness.NullMarked
@org.jspecify.annotations.NullMarked
package com.google.turbine.options;
2 changes: 1 addition & 1 deletion java/com/google/turbine/parse/ConstExpressionParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import com.google.turbine.tree.Tree.Ident;
import com.google.turbine.tree.TurbineOperatorKind;
import java.util.Optional;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A parser for compile-time constant expressions. */
public class ConstExpressionParser {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/parse/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
import java.util.EnumSet;
import java.util.List;
import java.util.Optional;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/**
* A parser for the subset of Java required for header compilation.
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/parse/StreamLexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import com.google.turbine.diag.SourceFile;
import com.google.turbine.diag.TurbineError;
import com.google.turbine.diag.TurbineError.ErrorKind;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** A {@link Lexer} that streams input from a {@link UnicodeEscapePreprocessor}. */
public class StreamLexer implements Lexer {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/type/AnnoInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import com.google.turbine.tree.Tree.Expression;
import java.util.Map;
import java.util.Objects;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** An annotation use. */
public class AnnoInfo {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/type/Type.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/** JLS 4 types. */
public interface Type {
Expand Down
2 changes: 1 addition & 1 deletion java/com/google/turbine/types/Canonicalize.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;

/**
* Canonicalizes qualified type names so qualifiers are always the declaring class of the qualified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import com.google.turbine.binder.sym.ModuleSymbol;
import java.util.Map;
import java.util.Optional;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import javax.tools.FileObject;
import javax.tools.JavaFileObject;
import javax.tools.StandardLocation;
import org.jspecify.nullness.Nullable;
import org.jspecify.annotations.Nullable;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down

0 comments on commit 331afa7

Please sign in to comment.