Skip to content

Commit e9e7255

Browse files
authored
release 0.5.1
2 parents 3d430e1 + ba9f4ab commit e9e7255

File tree

445 files changed

+3533
-1572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

445 files changed

+3533
-1572
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ server/.root.*
3737
Thumbs.db
3838
*.orig
3939
*.class
40+
data*

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<img src="https://github.com/fescar-group/fescar-samples/blob/master/doc/img/seata.png" height="100" width="426">
1+
<img src="https://github.com/seata/seata-samples/blob/master/doc/img/seata.png" height="100" width="426">
22

33
# Seata: Simple Extensible Autonomous Transaction Architecture
44

55
[![Build Status](https://travis-ci.org/seata/seata.svg?branch=develop)](https://travis-ci.org/seata/seata)
66
[![codecov](https://codecov.io/gh/seata/seata/branch/develop/graph/badge.svg)](https://codecov.io/gh/seata/seata)
7-
![license](https://img.shields.io/github/license/seata/seata.svg)
8-
![maven](https://img.shields.io/maven-central/v/com.alibaba.fescar/fescar-all.svg)
7+
[![license](https://img.shields.io/github/license/seata/seata.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
8+
[![maven](https://img.shields.io/maven-central/v/io.seata/seata-parent.svg)](https://search.maven.org/search?q=io.seata)
99

1010
## What is Seata?
1111

@@ -136,16 +136,15 @@ Contributors are welcomed to join the FEATS project. Please check [CONTRIBUTING]
136136
## Seata ecosystem
137137

138138
* [Seata Ecosystem Entry](https://github.com/seata) - A GitHub group `seata` to gather all Seata relevant projects
139-
* [Seata Samples](https://github.com/fescar-group/fescar-samples) - Samples for Seata
140-
* [Seata Docker](https://github.com/fescar-group/fescar-docker) - Seata integration with docker
141-
* [Seata K8s](https://github.com/fescar-group/fescar-k8s) - Seata integration with k8s
142-
* [Awesome Seata](https://github.com/fescar-group/awesome-fescar) - Description of Seata related projects
143-
* [Seata Website](https://github.com/fescar-group/fescar.io) - Seata official website (***In the process of design***
139+
* [Seata Samples](https://github.com/seata/seata-samples) - Samples for Seata
140+
* [Seata Docker](https://github.com/seata/seata-docker) - Seata integration with docker
141+
* [Seata K8s](https://github.com/seata/seata-k8s) - Seata integration with k8s
142+
* [Awesome Seata](https://github.com/seata/awesome-seata) - Description of Seata related projects
143+
* [Seata Website](https://github.com/seata/seata.github.io) - Seata official website (***In the process of design***
144144

145145
## Contributors
146146

147-
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
148-
<a href="https://github.com/seata/seata/graphs/contributors"><img src="https://opencollective.com/fescar/contributors.svg?width=890&button=false" /></a>
147+
This project exists thanks to all the people who contribute. [[Contributors](https://github.com/seata/seata/graphs/contributors)].
149148

150149
## License
151150

common/src/main/java/io/seata/common/Constants.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common;
1817

1918
/**

common/src/main/java/io/seata/common/XID.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common;
1817

1918
/**

common/src/main/java/io/seata/common/exception/EurekaRegistryException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

common/src/main/java/io/seata/common/exception/FrameworkErrorCode.java

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.exception;
1817

1918
/**
@@ -101,22 +100,34 @@ public enum FrameworkErrorCode {
101100
/**
102101
* The Err code.
103102
*/
104-
public String errCode;
103+
private String errCode;
105104
/**
106105
* The Err message.
107106
*/
108-
public String errMessage;
107+
private String errMessage;
109108
/**
110109
* The Err dispose.
111110
*/
112-
public String errDispose;
111+
private String errDispose;
113112

114113
FrameworkErrorCode(String errCode, String errMessage, String errDispose) {
115114
this.errCode = errCode;
116115
this.errMessage = errMessage;
117116
this.errDispose = errDispose;
118117
}
119118

119+
public String getErrCode() {
120+
return errCode;
121+
}
122+
123+
public String getErrMessage() {
124+
return errMessage;
125+
}
126+
127+
public String getErrDispose() {
128+
return errDispose;
129+
}
130+
120131
@Override
121132
public String toString() {
122133
return String.format("[%s] [%s] [%s]", errCode, errMessage, errDispose);

common/src/main/java/io/seata/common/exception/FrameworkException.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.exception;
1817

1918
import java.sql.SQLException;
@@ -47,7 +46,7 @@ public FrameworkException() {
4746
* @param err the err
4847
*/
4948
public FrameworkException(FrameworkErrorCode err) {
50-
this(err.errMessage, err);
49+
this(err.getErrMessage(), err);
5150
}
5251

5352
/**

common/src/main/java/io/seata/common/exception/NotSupportYetException.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.exception;
1817

1918
/**

common/src/main/java/io/seata/common/exception/ShouldNeverHappenException.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.exception;
1817

1918
/**

common/src/main/java/io/seata/common/exception/StoreException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

common/src/main/java/io/seata/common/executor/Callback.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.executor;
1817

1918
/**

common/src/main/java/io/seata/common/executor/Initialize.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.executor;
1817

1918
/**

common/src/main/java/io/seata/common/loader/EnhancedServiceLoader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.loader;
1817

1918
import java.io.BufferedReader;

common/src/main/java/io/seata/common/loader/EnhancedServiceNotFoundException.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.loader;
1817

1918
import org.apache.commons.lang.exception.NestableRuntimeException;

common/src/main/java/io/seata/common/loader/LoadLevel.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.loader;
1817

1918
import java.lang.annotation.Documented;

common/src/main/java/io/seata/common/thread/NamedThreadFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.thread;
1817

1918
import java.util.concurrent.ThreadFactory;

common/src/main/java/io/seata/common/thread/RejectedPolicies.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.thread;
1817

1918
import java.util.concurrent.BlockingQueue;

common/src/main/java/io/seata/common/util/BlobUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.util;
1817

1918
import java.io.ByteArrayOutputStream;

common/src/main/java/io/seata/common/util/CollectionUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.util;
1817

1918
import java.util.Collection;

common/src/main/java/io/seata/common/util/CompressUtil.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -87,9 +87,7 @@ public static byte[] uncompress(final byte[] src) throws IOException {
8787
public static boolean isCompressData(byte[] bytes) {
8888
if (bytes != null && bytes.length > 2) {
8989
int header = ((bytes[0] & 0xff)) | (bytes[1] & 0xff) << 8;
90-
if (GZIPInputStream.GZIP_MAGIC == header) {
91-
return true;
92-
}
90+
return GZIPInputStream.GZIP_MAGIC == header;
9391
}
9492
return false;
9593
}

common/src/main/java/io/seata/common/util/NetUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.util;
1817

1918
import java.net.InetAddress;

common/src/main/java/io/seata/common/util/ReflectionUtil.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1999-2018 Alibaba Group Holding Ltd.
2+
* Copyright 1999-2019 Seata.io Group.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.seata.common.util;
1817

1918
import java.lang.reflect.Field;
@@ -33,7 +32,7 @@ public class ReflectionUtil {
3332
/**
3433
* The constant MAX_NEST_DEPTH.
3534
*/
36-
public static int MAX_NEST_DEPTH = 20;
35+
public static final int MAX_NEST_DEPTH = 20;
3736

3837
/**
3938
* Gets class by name.
@@ -177,7 +176,7 @@ public static Method getMethod(Class<?> classType, String methodName, Class<?>[]
177176
*/
178177
public static Set<Class<?>> getInterfaces(Class<?> clazz){
179178
if (clazz.isInterface() ) {
180-
return Collections.<Class<?>>singleton(clazz);
179+
return Collections.singleton(clazz);
181180
}
182181
Set<Class<?>> interfaces = new LinkedHashSet<Class<?>>();
183182
while (clazz != null) {

0 commit comments

Comments
 (0)