Skip to content

Commit

Permalink
Upgrade Guava 33.3.0-jre -> 33.3.1-jre (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Picnic-DevPla-Bot authored Oct 23, 2024
1 parent 6e893e9 commit f2238c7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,34 +196,6 @@ int after(double d) {
}
}

/** Prefer {@link Float#compare(float, float)} over the Guava alternative. */
// XXX: Drop this rule once https://github.com/google/guava/pull/7371 is released.
static final class FloatCompare {
@BeforeTemplate
int before(float a, float b) {
return Floats.compare(a, b);
}

@AfterTemplate
int after(float a, float b) {
return Float.compare(a, b);
}
}

/** Prefer {@link Double#compare(double, double)} over the Guava alternative. */
// XXX: Drop this rule once https://github.com/google/guava/pull/7371 is released.
static final class DoubleCompare {
@BeforeTemplate
int before(double a, double b) {
return Doubles.compare(a, b);
}

@AfterTemplate
int after(double a, double b) {
return Double.compare(a, b);
}
}

/** Prefer {@link Character#BYTES} over the Guava alternative. */
static final class CharacterBytes {
@BeforeTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,6 @@ int testDoubleHashCode() {
return Doubles.hashCode(1);
}

int testFloatCompare() {
return Floats.compare(1, 2);
}

int testDoubleCompare() {
return Doubles.compare(1, 2);
}

int testCharacterBytes() {
return Chars.BYTES;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,6 @@ int testDoubleHashCode() {
return Double.hashCode(1);
}

int testFloatCompare() {
return Float.compare(1, 2);
}

int testDoubleCompare() {
return Double.compare(1, 2);
}

int testCharacterBytes() {
return Character.BYTES;
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-bom</artifactId>
<version>33.3.0-jre</version>
<version>33.3.1-jre</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down

0 comments on commit f2238c7

Please sign in to comment.