Skip to content

Commit

Permalink
Update dependency com.google.googlejavaformat:google-java-format to v…
Browse files Browse the repository at this point in the history
…1.17.0 (#385)

* Update dependency com.google.googlejavaformat:google-java-format to v1.17.0

* code style

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Stupp <[email protected]>
  • Loading branch information
renovate[bot] and snazy authored May 2, 2023
1 parent 0082495 commit c40bc08
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/src/main/java/org/projectnessie/cel/Env.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public final class Env {
TypeAdapter adapter;
TypeProvider provider;
private final Set<EnvFeature> features;

/** program options tied to the environment. */
private final List<ProgramOption> progOpts;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public final class BoolT extends BaseVal implements Comparer, Negater {
/** BoolType singleton. */
public static final Type BoolType =
TypeT.newTypeValue(TypeEnum.Bool, Trait.ComparerType, Trait.NegatorType);

/** Boolean constants */
public static final BoolT False = new BoolT(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@ public final class Err extends BaseVal {

/** errIntOverflow is an error representing integer overflow. */
public static final Val errIntOverflow = newErr("integer overflow");

/** errUintOverflow is an error representing unsigned integer overflow. */
public static final Val errUintOverflow = newErr("unsigned integer overflow");

/** errDurationOverflow is an error representing duration overflow. */
public static final Val errDurationOverflow = newErr("duration overflow");

/** errDurationOutOfRange is an error representing duration out of range. */
public static final Val errDurationOutOfRange = newErr("duration out of range");

/** errTimestampOverflow is an error representing timestamp overflow. */
public static final Val errTimestampOverflow = newErr("timestamp overflow");

/** errTimestampOutOfRange is an error representing duration out of range. */
public static final Val errTimestampOutOfRange = newErr("timestamp out of range");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public final class IntT extends BaseVal

public static final IntT IntOne = new IntT(1);
public static final IntT IntNegOne = new IntT(-1);

/** maxIntJSON is defined as the Number.MAX_SAFE_INTEGER value per EcmaScript 6. */
public static final long maxIntJSON = (1L << 53) - 1;

/** minIntJSON is defined as the Number.MIN_SAFE_INTEGER value per EcmaScript 6. */
public static final long minIntJSON = -maxIntJSON;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ static IteratorT javaIterator(TypeAdapter adapter, Iterator<?> iterator) {

/** HasNext returns true if there are unvisited elements in the Iterator. */
Val hasNext();

/** Next returns the next element. */
Val next();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public final class NullT extends BaseVal {

/** NullType singleton. */
public static final Type NullType = TypeT.newTypeValue(TypeEnum.Null);

/** NullValue singleton. */
public static final NullT NullValue = new NullT();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public final class TimestampT extends BaseVal implements Adder, Comparer, Receiv

/** Number of seconds between `0001-01-01T00:00:00Z` and the Unix epoch. */
public static final long minUnixTime = -62135596800L;

/** Number of seconds between `9999-12-31T23:59:59.999999999Z` and the Unix epoch. */
public static final long maxUnixTime = 253402300799L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
public final class Db {

private final Map<String, FileDescription> revFileDescriptorMap;

/** files contains the deduped set of FileDescriptions whose types are contained in the pb.Db. */
private final List<FileDescription> files;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public final class FieldDescription extends Description {

/** KeyType holds the key FieldDescription for map fields. */
final FieldDescription keyType;

/** ValueType holds the value FieldDescription for map fields. */
final FieldDescription valueType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ static String sanitizeProtoName(String name) {
static final class FileMetadata {
/** msgTypes maps from fully-qualified message name to descriptor. */
final Map<String, Descriptor> msgTypes;

/** enumValues maps from fully-qualified enum value to enum value descriptor. */
final Map<String, EnumValueDescriptor> enumValues;

// TODO: support enum type definitions for use in future type-check enhancements.

private FileMetadata(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ public String toString() {

final class AbsoluteAttribute implements Qualifier, NamespacedAttribute, Coster {
final long id;

/**
* namespaceNames represent the names the variable could have based on declared container
* (package) of the expression.
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/org/projectnessie/cel/parser/Macro.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
public final class Macro {
/** AccumulatorName is the traditional variable name assigned to the fold accumulator variable. */
public static final String AccumulatorName = "__result__";

/** AllMacros includes the list of all spec-supported macros. */
public static final List<Macro> AllMacros =
asList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ static class TestCase {
String i;
// R contains the result output. */
String r;

/** Type is the expected type of the expression */
Type type;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,17 @@ static class Attr {
* variable and function resolution step.
*/
boolean unchecked;

/**
* container simulates the expression container and is only relevant on 'unchecked' test inputs
* + as the container is used to resolve the potential fully qualified variable names
* represented + by an identifier or select expression.
*/
String container = "";

/** variable name, fully qualified unless the attr is marked as unchecked=true */
final String name;

/** quals contains a list of static qualifiers. */
Object[] quals;

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ checkstyle = "10.3.4"
errorprone = "2.15.0"
errorpronePlugin = "3.1.0"
errorproneSlf4j = "0.1.18"
googleJavaFormat = "1.16.0"
googleJavaFormat = "1.17.0"
grpc = "1.54.1"
guava = "31.1-jre"
immutables = "2.9.3"
Expand Down

0 comments on commit c40bc08

Please sign in to comment.