Skip to content

Commit 6309315

Browse files
caimoQIURC
andauthored
1 parent aefdcb0 commit 6309315

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

demo/demo-springmvc/springmvc-server/src/main/java/org/apache/servicecomb/demo/springmvc/server/RestProducersCutomized.java renamed to demo/demo-springmvc/springmvc-server/src/main/java/org/apache/servicecomb/demo/springmvc/server/RestProducersCustomized.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
@Component
2525
@Primary
2626
// This example shows user's how to customize RestProducers by @Primary annotation
27-
public class RestProducersCutomized extends RestProducers {
27+
public class RestProducersCustomized extends RestProducers {
2828
}

dynamic-config/config-etcd/src/main/java/org/apache/servicecomb/config/etcd/EtcdClient.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747

4848
public class EtcdClient {
4949

50-
public class GetDataRunable implements Runnable {
50+
public class GetDataRunnable implements Runnable {
5151

5252
private Map<String, Object> dataMap;
5353

5454
private EtcdClient etcdClient;
5555

5656
private String path;
5757

58-
public GetDataRunable(Map<String, Object> dataMap, EtcdClient etcdClient, String path) {
58+
public GetDataRunnable(Map<String, Object> dataMap, EtcdClient etcdClient, String path) {
5959
this.dataMap = dataMap;
6060
this.etcdClient = etcdClient;
6161
this.path = path;
@@ -153,7 +153,7 @@ private void addTagConfig(String env) throws Exception {
153153
ByteSequence prefixByteSeq = ByteSequence.from(path, StandardCharsets.UTF_8);
154154
Watch watchClient = client.getWatchClient();
155155
watchClient.watch(prefixByteSeq, WatchOption.builder().withPrefix(prefixByteSeq).build(),
156-
resp -> new Thread(new GetDataRunable(tagData, this, path)).start());
156+
resp -> new Thread(new GetDataRunnable(tagData, this, path)).start());
157157
this.tagData = parseData(path);
158158
}
159159

@@ -166,7 +166,7 @@ private void addVersionConfig(String env) throws Exception {
166166
ByteSequence prefixByteSeq = ByteSequence.from(path, StandardCharsets.UTF_8);
167167
Watch watchClient = client.getWatchClient();
168168
watchClient.watch(prefixByteSeq, WatchOption.builder().withPrefix(prefixByteSeq).build(),
169-
resp -> new Thread(new GetDataRunable(versionData, this, path)).start());
169+
resp -> new Thread(new GetDataRunnable(versionData, this, path)).start());
170170
this.versionData = parseData(path);
171171
}
172172

@@ -178,7 +178,7 @@ private void addServiceConfig(String env) throws Exception {
178178
ByteSequence prefixByteSeq = ByteSequence.from(path, StandardCharsets.UTF_8);
179179
Watch watchClient = client.getWatchClient();
180180
watchClient.watch(prefixByteSeq, WatchOption.builder().withPrefix(prefixByteSeq).build(),
181-
resp -> new Thread(new GetDataRunable(serviceData, this, path)).start());
181+
resp -> new Thread(new GetDataRunnable(serviceData, this, path)).start());
182182
this.serviceData = parseData(path);
183183
}
184184

@@ -188,7 +188,7 @@ private void addApplicationConfig(String env) throws Exception {
188188
ByteSequence prefixByteSeq = ByteSequence.from(path, StandardCharsets.UTF_8);
189189
Watch watchClient = client.getWatchClient();
190190
watchClient.watch(prefixByteSeq, WatchOption.builder().withPrefix(prefixByteSeq).build(),
191-
resp -> new Thread(new GetDataRunable(applicationData, this, path)).start());
191+
resp -> new Thread(new GetDataRunnable(applicationData, this, path)).start());
192192
this.applicationData = parseData(path);
193193
}
194194

@@ -198,7 +198,7 @@ private void addEnvironmentConfig(String env) throws Exception {
198198
ByteSequence prefixByteSeq = ByteSequence.from(path, StandardCharsets.UTF_8);
199199
Watch watchClient = client.getWatchClient();
200200
watchClient.watch(prefixByteSeq, WatchOption.builder().withPrefix(prefixByteSeq).build(),
201-
resp -> new Thread(new GetDataRunable(environmentData, this, path)).start());
201+
resp -> new Thread(new GetDataRunnable(environmentData, this, path)).start());
202202
this.environmentData = parseData(path);
203203
}
204204

foundations/foundation-protobuf/src/main/java/org/apache/servicecomb/foundation/protobuf/internal/schema/SchemaManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ public FieldMapEx<Map<Object, Object>> createMapFields(Message message, Map<Stri
166166
return FieldMapEx.createFieldMap(fieldSchemas);
167167
}
168168

169-
private JavaType getParameterType(Map<String, Type> types, String perameterName) {
169+
private JavaType getParameterType(Map<String, Type> types, String parameterName) {
170170

171-
if (types.get(perameterName) != null) {
172-
return TypeFactory.defaultInstance().constructType(types.get(perameterName));
171+
if (types.get(parameterName) != null) {
172+
return TypeFactory.defaultInstance().constructType(types.get(parameterName));
173173
}
174174

175175
throw new IllegalArgumentException(
176-
String.format("not found type info for parameter name [%s]", perameterName));
176+
String.format("not found type info for parameter name [%s]", parameterName));
177177
}
178178

179179
public <T> FieldSchema<T> createSchemaField(Field protoField, PropertyDescriptor propertyDescriptor) {

foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/AddressResolverConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private static int getPositiveIntProperty(int defaultValue, String... keys) {
109109
for (String key : keys) {
110110
Integer val = LegacyPropertyFactory.getProperty(key, Integer.class);
111111
if (val != null && val <= 0) {
112-
LOGGER.warn("Address resover key:{}'s value:{} is not positive, please check!", key, val);
112+
LOGGER.warn("Address resolver key:{}'s value:{} is not positive, please check!", key, val);
113113
continue;
114114
}
115115
if (val != null) {

foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/VertxUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static <VERTICLE extends Verticle> Map<String, Object> blockDeploy(Vertx
9494

9595
CountDownLatch latch = new CountDownLatch(1);
9696
Future<String> future = vertx.deployVerticle(cls.getName(), options);
97-
future.onComplete((succuss, failure) -> {
97+
future.onComplete((success, failure) -> {
9898
result.put("code", failure == null);
9999

100100
if (failure != null) {

foundations/foundation-vertx/src/test/java/org/apache/servicecomb/foundation/vertx/TestStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class TestStream {
3131
@Test
3232
public void testBufferInputStream() {
3333
Buffer obuf = Buffer.buffer(DIRECT_BUFFER_SIZE);
34-
obuf.appendBytes(("testss").getBytes());
34+
obuf.appendBytes(("tests1").getBytes());
3535
@SuppressWarnings("resource")
3636
BufferInputStream oBufferInputStream = new BufferInputStream(obuf);
3737

0 commit comments

Comments
 (0)