Skip to content

Commit

Permalink
Prepare for release 28.2.
Browse files Browse the repository at this point in the history
RELNOTES=n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=287221546
  • Loading branch information
cpovirk committed Dec 26, 2019
1 parent 87a383e commit fb6ef19
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 35 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Guava's Maven group ID is `com.google.guava` and its artifact ID is `guava`.
Guava provides two different "flavors": one for use on a (Java 8+) JRE and one
for use on Android or Java 7 or by any library that wants to be compatible with
either of those. These flavors are specified in the Maven version field as
either `28.1-jre` or `28.1-android`. For more about depending on Guava, see
either `28.2-jre` or `28.2-android`. For more about depending on Guava, see
[using Guava in your build].

To add a dependency on Guava using Maven, use the following:
Expand All @@ -30,9 +30,9 @@ To add a dependency on Guava using Maven, use the following:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>28.1-jre</version>
<version>28.2-jre</version>
<!-- or, for Android: -->
<version>28.1-android</version>
<version>28.2-android</version>
</dependency>
```

Expand All @@ -43,16 +43,16 @@ dependencies {
// Pick one:
// 1. Use Guava in your implementation only:
implementation("com.google.guava:guava:28.1-jre")
implementation("com.google.guava:guava:28.2-jre")
// 2. Use Guava types in your public API:
api("com.google.guava:guava:28.1-jre")
api("com.google.guava:guava:28.2-jre")
// 3. Android - Use Guava in your implementation only:
implementation("com.google.guava:guava:28.1-android")
implementation("com.google.guava:guava:28.2-android")
// 4. Android - Use Guava types in your public API:
api("com.google.guava:guava:28.1-android")
api("com.google.guava:guava:28.2-android")
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void addAll(Stats values) {
* Adds the given statistics to the dataset, as if the individual values used to compute the
* statistics had been added directly.
*
* @since NEXT
* @since 28.2
*/
public void addAll(StatsAccumulator values) {
if (values.count() == 0) {
Expand Down
2 changes: 1 addition & 1 deletion android/guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private ReferrerPolicyValues() {}
/**
* The HTTP Cross-Origin-Opener-Policy header field name.
*
* @since NEXT
* @since 28.2
*/
public static final String CROSS_ORIGIN_OPENER_POLICY = "Cross-Origin-Opener-Policy";
/** The HTTP {@code ETag} header field name. */
Expand Down
6 changes: 3 additions & 3 deletions android/guava/src/com/google/common/net/InetAddresses.java
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ public static int coerceToInteger(InetAddress ip) {
*
* @param address {@link InetAddress} to convert
* @return {@code BigInteger} representation of the address
* @since NEXT
* @since 28.2
*/
public static BigInteger toBigInteger(InetAddress address) {
return new BigInteger(1, address.getAddress());
Expand All @@ -939,7 +939,7 @@ public static Inet4Address fromInteger(int address) {
* @param address BigInteger representing the IPv4 address
* @return Inet4Address representation of the given BigInteger
* @throws IllegalArgumentException if the BigInteger is not between 0 and 2^32-1
* @since NEXT
* @since 28.2
*/
public static Inet4Address fromIPv4BigInteger(BigInteger address) {
return (Inet4Address) fromBigInteger(address, false);
Expand All @@ -950,7 +950,7 @@ public static Inet4Address fromIPv4BigInteger(BigInteger address) {
* @param address BigInteger representing the IPv6 address
* @return Inet6Address representation of the given BigInteger
* @throws IllegalArgumentException if the BigInteger is not between 0 and 2^128-1
* @since NEXT
* @since 28.2
*/
public static Inet6Address fromIPv6BigInteger(BigInteger address) {
return (Inet6Address) fromBigInteger(address, true);
Expand Down
4 changes: 2 additions & 2 deletions android/guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ private static MediaType addKnownType(MediaType mediaType) {
* href="https://www.iana.org/assignments/media-types/application/dash+xml">registered</a> with
* the IANA.
*
* @since NEXT
* @since 28.2
*/
public static final MediaType MEDIA_PRESENTATION_DESCRIPTION =
createConstant(APPLICATION_TYPE, "dash+xml");
Expand Down Expand Up @@ -600,7 +600,7 @@ private static MediaType addKnownType(MediaType mediaType) {
* Description files are XML files that describe how a website can be used as a search engine by
* consumers (e.g. web browsers).
*
* @since NEXT
* @since 28.2
*/
public static final MediaType OPENSEARCH_DESCRIPTION_UTF_8 =
createConstantUtf8(APPLICATION_TYPE, "opensearchdescription+xml");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static <V> ListenableFuture<V> immediateCancelledFuture() {
* Executes {@code callable} on the specified {@code executor}, returning a {@code Future}.
*
* @throws RejectedExecutionException if the task cannot be scheduled for execution
* @since NEXT
* @since 28.2
*/
@Beta
public static <O> ListenableFuture<O> submit(Callable<O> callable, Executor executor) {
Expand All @@ -175,7 +175,7 @@ public static <O> ListenableFuture<O> submit(Callable<O> callable, Executor exec
* will complete after execution.
*
* @throws RejectedExecutionException if the task cannot be scheduled for execution
* @since NEXT
* @since 28.2
*/
@Beta
public static ListenableFuture<Void> submit(Runnable runnable, Executor executor) {
Expand Down
4 changes: 2 additions & 2 deletions guava-testlib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To add a dependency on Guava testlib using Maven, use the following:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<version>28.1-jre</version>
<version>28.2-jre</version>
<scope>test</scope>
</dependency>
```
Expand All @@ -22,7 +22,7 @@ To add a dependency using Gradle:

```gradle
dependencies {
test 'com.google.guava:guava-testlib:28.1-jre'
test 'com.google.guava:guava-testlib:28.2-jre'
}
```

Expand Down
2 changes: 1 addition & 1 deletion guava/src/com/google/common/base/Splitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public List<String> splitToList(CharSequence sequence) {
*
* @param sequence the sequence of characters to split
* @return a stream over the segments split from the parameter
* @since NEXT
* @since 28.2
*/
@Beta
public Stream<String> splitToStream(CharSequence sequence) {
Expand Down
8 changes: 4 additions & 4 deletions guava/src/com/google/common/math/Stats.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static Stats of(long... values) {
* the values using {@link #toStats()} instead.
*
* @param values a series of values
* @since NEXT
* @since 28.2
*/
public static Stats of(DoubleStream values) {
return values
Expand All @@ -177,7 +177,7 @@ public static Stats of(DoubleStream values) {
* the values using {@link #toStats()} instead.
*
* @param values a series of values
* @since NEXT
* @since 28.2
*/
public static Stats of(IntStream values) {
return values
Expand All @@ -194,7 +194,7 @@ public static Stats of(IntStream values) {
*
* @param values a series of values, which will be converted to {@code double} values (this may
* cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))
* @since NEXT
* @since 28.2
*/
public static Stats of(LongStream values) {
return values
Expand All @@ -211,7 +211,7 @@ public static Stats of(LongStream values) {
* <p>If you have any of the primitive streams {@code DoubleStream}, {@code IntStream}, or {@code
* LongStream}, you should use the factory method {@link #of} instead.
*
* @since NEXT
* @since 28.2
*/
public static Collector<Number, StatsAccumulator, Stats> toStats() {
return Collector.of(
Expand Down
8 changes: 4 additions & 4 deletions guava/src/com/google/common/math/StatsAccumulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void addAll(long... values) {
* Adds the given values to the dataset. The stream will be completely consumed by this method.
*
* @param values a series of values
* @since NEXT
* @since 28.2
*/
public void addAll(DoubleStream values) {
addAll(values.collect(StatsAccumulator::new, StatsAccumulator::add, StatsAccumulator::addAll));
Expand All @@ -145,7 +145,7 @@ public void addAll(DoubleStream values) {
* Adds the given values to the dataset. The stream will be completely consumed by this method.
*
* @param values a series of values
* @since NEXT
* @since 28.2
*/
public void addAll(IntStream values) {
addAll(values.collect(StatsAccumulator::new, StatsAccumulator::add, StatsAccumulator::addAll));
Expand All @@ -156,7 +156,7 @@ public void addAll(IntStream values) {
*
* @param values a series of values, which will be converted to {@code double} values (this may
* cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))
* @since NEXT
* @since 28.2
*/
public void addAll(LongStream values) {
addAll(values.collect(StatsAccumulator::new, StatsAccumulator::add, StatsAccumulator::addAll));
Expand All @@ -177,7 +177,7 @@ public void addAll(Stats values) {
* Adds the given statistics to the dataset, as if the individual values used to compute the
* statistics had been added directly.
*
* @since NEXT
* @since 28.2
*/
public void addAll(StatsAccumulator values) {
if (values.count() == 0) {
Expand Down
2 changes: 1 addition & 1 deletion guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private ReferrerPolicyValues() {}
/**
* The HTTP Cross-Origin-Opener-Policy header field name.
*
* @since NEXT
* @since 28.2
*/
public static final String CROSS_ORIGIN_OPENER_POLICY = "Cross-Origin-Opener-Policy";
/** The HTTP {@code ETag} header field name. */
Expand Down
6 changes: 3 additions & 3 deletions guava/src/com/google/common/net/InetAddresses.java
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ public static int coerceToInteger(InetAddress ip) {
*
* @param address {@link InetAddress} to convert
* @return {@code BigInteger} representation of the address
* @since NEXT
* @since 28.2
*/
public static BigInteger toBigInteger(InetAddress address) {
return new BigInteger(1, address.getAddress());
Expand All @@ -934,7 +934,7 @@ public static Inet4Address fromInteger(int address) {
* @param address BigInteger representing the IPv4 address
* @return Inet4Address representation of the given BigInteger
* @throws IllegalArgumentException if the BigInteger is not between 0 and 2^32-1
* @since NEXT
* @since 28.2
*/
public static Inet4Address fromIPv4BigInteger(BigInteger address) {
return (Inet4Address) fromBigInteger(address, false);
Expand All @@ -945,7 +945,7 @@ public static Inet4Address fromIPv4BigInteger(BigInteger address) {
* @param address BigInteger representing the IPv6 address
* @return Inet6Address representation of the given BigInteger
* @throws IllegalArgumentException if the BigInteger is not between 0 and 2^128-1
* @since NEXT
* @since 28.2
*/
public static Inet6Address fromIPv6BigInteger(BigInteger address) {
return (Inet6Address) fromBigInteger(address, true);
Expand Down
4 changes: 2 additions & 2 deletions guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ private static MediaType addKnownType(MediaType mediaType) {
* href="https://www.iana.org/assignments/media-types/application/dash+xml">registered</a> with
* the IANA.
*
* @since NEXT
* @since 28.2
*/
public static final MediaType MEDIA_PRESENTATION_DESCRIPTION =
createConstant(APPLICATION_TYPE, "dash+xml");
Expand Down Expand Up @@ -600,7 +600,7 @@ private static MediaType addKnownType(MediaType mediaType) {
* Description files are XML files that describe how a website can be used as a search engine by
* consumers (e.g. web browsers).
*
* @since NEXT
* @since 28.2
*/
public static final MediaType OPENSEARCH_DESCRIPTION_UTF_8 =
createConstantUtf8(APPLICATION_TYPE, "opensearchdescription+xml");
Expand Down
4 changes: 2 additions & 2 deletions guava/src/com/google/common/util/concurrent/Futures.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static <V> ListenableFuture<V> immediateCancelledFuture() {
* Executes {@code callable} on the specified {@code executor}, returning a {@code Future}.
*
* @throws RejectedExecutionException if the task cannot be scheduled for execution
* @since NEXT
* @since 28.2
*/
@Beta
public static <O> ListenableFuture<O> submit(Callable<O> callable, Executor executor) {
Expand All @@ -177,7 +177,7 @@ public static <O> ListenableFuture<O> submit(Callable<O> callable, Executor exec
* will complete after execution.
*
* @throws RejectedExecutionException if the task cannot be scheduled for execution
* @since NEXT
* @since 28.2
*/
@Beta
public static ListenableFuture<Void> submit(Runnable runnable, Executor executor) {
Expand Down

0 comments on commit fb6ef19

Please sign in to comment.