diff options
author | Jiayu Liu <Jimexist@users.noreply.github.com> | 2022-10-11 11:46:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 11:46:25 +0800 |
commit | 096a061fee888d9240533a7d2467ded884ad97cb (patch) | |
tree | ee954f12b4d67d38d7e9d292719e5bf8af6f57b0 | |
parent | 1d61fe1c1f39adc5f648f3f242c6de2bcc425cc0 (diff) | |
download | thrift-096a061fee888d9240533a7d2467ded884ad97cb.tar.gz |
[docs] update travis ci links - [skip ci] (#2660)
* update travis ci links
* remove deprecated method calls
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | lib/java/src/test/java/org/apache/thrift/partial/ThriftSerDe.java | 6 | ||||
-rw-r--r-- | lib/java/src/test/java/org/apache/thrift/protocol/ProtocolTestBase.java | 2 | ||||
-rw-r--r-- | lib/java/src/test/java/org/apache/thrift/test/ReadStruct.java | 3 | ||||
-rw-r--r-- | lib/java/src/test/java/org/apache/thrift/test/WriteStruct.java | 3 |
6 files changed, 17 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml index 8b0844914..a0aa37161 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ # under the License. # -# build Apache Thrift on Travis CI - https://travis-ci.org/ +# build Apache Thrift on Travis CI - https://travis-ci.com/ # # Docker Integration @@ -15,8 +15,8 @@ interoperable RPC clients and servers. ![Apache Thrift Layered Architecture](doc/images/thrift-layers.png) Thrift makes it easy for programs written in different programming -languages to share data and call remote procedures. With support -for [28 programming languages](LANGUAGES.md), chances are Thrift +languages to share data and call remote procedures. With support +for [28 programming languages](LANGUAGES.md), chances are Thrift supports the languages that you currently use. Thrift is specifically designed to support non-atomic version changes @@ -35,13 +35,13 @@ Status | Branch | Travis | Appveyor | Coverity Scan | codecov.io | Website | | :----- | :----- | :------- | :------------ | :--------- | :------ | -| [`master`](https://github.com/apache/thrift/tree/master) | [![Build Status](https://travis-ci.org/apache/thrift.svg?branch=master)](https://travis-ci.org/apache/thrift/branches) | [![Build status](https://ci.appveyor.com/api/projects/status/github/apache/thrift?branch=master&svg=true)](https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/history) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/1345/badge.svg)](https://scan.coverity.com/projects/thrift) | | [![Website](https://img.shields.io/badge/official-website-brightgreen.svg)](https://thrift.apache.org/) | -| [`0.14.0`](https://github.com/apache/thrift/tree/0.14.0) | [![Build Status](https://travis-ci.org/apache/thrift.svg?branch=0.14.0)](https://travis-ci.org/apache/thrift/branches) | | | | | +| [`master`](https://github.com/apache/thrift/tree/master) | [![Build Status](https://api.travis-ci.com/apache/thrift.svg?branch=master)](https://app.travis-ci.com/apache/thrift/branches) | [![Build status](https://ci.appveyor.com/api/projects/status/github/apache/thrift?branch=master&svg=true)](https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/history) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/1345/badge.svg)](https://scan.coverity.com/projects/thrift) | | [![Website](https://img.shields.io/badge/official-website-brightgreen.svg)](https://thrift.apache.org/) | +| [`0.17.0`](https://github.com/apache/thrift/tree/0.17.0) | [![Build Status](https://api.travis-ci.com/apache/thrift.svg?branch=0.17.0)](https://app.travis-ci.com/apache/thrift/branches) | | | | | Releases ======== -Thrift does not maintain a specific release calendar at this time. +Thrift does not maintain a specific release calendar at this time. We strive to release twice yearly. Download the [current release](http://thrift.apache.org/download). @@ -182,9 +182,9 @@ installation of each language library package. Package Managers ================ -Apache Thrift is available via a number of package managers, a list which is -is steadily growing. A more detailed overview can be found -[at the Apache Thrift web site under "Libraries"](http://thrift.apache.org/lib/) +Apache Thrift is available via a number of package managers, a list which is +is steadily growing. A more detailed overview can be found +[at the Apache Thrift web site under "Libraries"](http://thrift.apache.org/lib/) and/or in the respective READMEs for each language under /lib Testing diff --git a/lib/java/src/test/java/org/apache/thrift/partial/ThriftSerDe.java b/lib/java/src/test/java/org/apache/thrift/partial/ThriftSerDe.java index 361c32c60..e8165d812 100644 --- a/lib/java/src/test/java/org/apache/thrift/partial/ThriftSerDe.java +++ b/lib/java/src/test/java/org/apache/thrift/partial/ThriftSerDe.java @@ -62,9 +62,9 @@ public class ThriftSerDe { private <T extends TBase> T newInstance(Class<T> clazz) { T instance = null; try { - instance = clazz.newInstance(); - } catch (InstantiationException e) { - } catch (IllegalAccessException e) { + instance = clazz.getDeclaredConstructor().newInstance(); + } catch (ReflectiveOperationException e) { + throw new RuntimeException(e); } return clazz.cast(instance); } diff --git a/lib/java/src/test/java/org/apache/thrift/protocol/ProtocolTestBase.java b/lib/java/src/test/java/org/apache/thrift/protocol/ProtocolTestBase.java index 0dd48a4ad..455f9e872 100644 --- a/lib/java/src/test/java/org/apache/thrift/protocol/ProtocolTestBase.java +++ b/lib/java/src/test/java/org/apache/thrift/protocol/ProtocolTestBase.java @@ -340,7 +340,7 @@ public abstract class ProtocolTestBase { expected.write(proto); System.out.println("Size in " + proto.getClass().getSimpleName() + ": " + buf.length()); - T actual = klass.newInstance(); + T actual = klass.getDeclaredConstructor().newInstance(); actual.read(proto); assertEquals(expected, actual); } diff --git a/lib/java/src/test/java/org/apache/thrift/test/ReadStruct.java b/lib/java/src/test/java/org/apache/thrift/test/ReadStruct.java index f1e14e256..932216b95 100644 --- a/lib/java/src/test/java/org/apache/thrift/test/ReadStruct.java +++ b/lib/java/src/test/java/org/apache/thrift/test/ReadStruct.java @@ -40,7 +40,8 @@ public class ReadStruct { TTransport trans = new TIOStreamTransport(new BufferedInputStream(new FileInputStream(args[0]))); - TProtocolFactory factory = (TProtocolFactory) Class.forName(args[1]).newInstance(); + TProtocolFactory factory = + (TProtocolFactory) Class.forName(args[1]).getDeclaredConstructor().newInstance(); TProtocol proto = factory.getProtocol(trans); diff --git a/lib/java/src/test/java/org/apache/thrift/test/WriteStruct.java b/lib/java/src/test/java/org/apache/thrift/test/WriteStruct.java index c17cdaad4..e5f4128c8 100644 --- a/lib/java/src/test/java/org/apache/thrift/test/WriteStruct.java +++ b/lib/java/src/test/java/org/apache/thrift/test/WriteStruct.java @@ -39,7 +39,8 @@ public class WriteStruct { TTransport trans = new TIOStreamTransport(new BufferedOutputStream(new FileOutputStream(args[0]))); - TProtocolFactory factory = (TProtocolFactory) Class.forName(args[1]).newInstance(); + TProtocolFactory factory = + (TProtocolFactory) Class.forName(args[1]).getDeclaredConstructor().newInstance(); TProtocol proto = factory.getProtocol(trans); |