This is an automated email from the ASF dual-hosted git repository.
zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new f61085a12bb Adjust foreach variable name (#28668)
f61085a12bb is described below
commit f61085a12bb3325ee3ce0fc77101cc0dfbe246df
Author: yx9o <[email protected]>
AuthorDate: Sun Oct 8 11:13:55 2023 +0800
Adjust foreach variable name (#28668)
---
.../protocol/PostgreSQLArrayParameterDecoder.java | 24 +++++++++++-----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git
a/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLArrayParameterDecoder.java
b/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLArrayParameterDecoder.java
index e28d11821fe..c9c10a31c58 100644
---
a/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLArrayParameterDecoder.java
+++
b/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLArrayParameterDecoder.java
@@ -46,8 +46,8 @@ public final class PostgreSQLArrayParameterDecoder {
Collection<String> parameterElements = decodeText(parameterValue);
short[] result = new short[parameterElements.size()];
int index = 0;
- for (String element : parameterElements) {
- result[index++] = Short.parseShort(element);
+ for (String each : parameterElements) {
+ result[index++] = Short.parseShort(each);
}
return result;
}
@@ -65,8 +65,8 @@ public final class PostgreSQLArrayParameterDecoder {
Collection<String> parameterElements = decodeText(parameterValue);
int[] result = new int[parameterElements.size()];
int index = 0;
- for (String element : parameterElements) {
- result[index++] = Integer.parseInt(element);
+ for (String each : parameterElements) {
+ result[index++] = Integer.parseInt(each);
}
return result;
}
@@ -84,8 +84,8 @@ public final class PostgreSQLArrayParameterDecoder {
Collection<String> parameterElements = decodeText(parameterValue);
long[] result = new long[parameterElements.size()];
int index = 0;
- for (String element : parameterElements) {
- result[index++] = Long.parseLong(element);
+ for (String each : parameterElements) {
+ result[index++] = Long.parseLong(each);
}
return result;
}
@@ -103,8 +103,8 @@ public final class PostgreSQLArrayParameterDecoder {
Collection<String> parameterElements = decodeText(parameterValue);
float[] result = new float[parameterElements.size()];
int index = 0;
- for (String element : parameterElements) {
- result[index++] = Float.parseFloat(element);
+ for (String each : parameterElements) {
+ result[index++] = Float.parseFloat(each);
}
return result;
}
@@ -122,8 +122,8 @@ public final class PostgreSQLArrayParameterDecoder {
Collection<String> parameterElements = decodeText(parameterValue);
double[] result = new double[parameterElements.size()];
int index = 0;
- for (String element : parameterElements) {
- result[index++] = Double.parseDouble(element);
+ for (String each : parameterElements) {
+ result[index++] = Double.parseDouble(each);
}
return result;
}
@@ -141,8 +141,8 @@ public final class PostgreSQLArrayParameterDecoder {
Collection<String> parameterElements = decodeText(parameterValue);
boolean[] result = new boolean[parameterElements.size()];
int index = 0;
- for (String element : parameterElements) {
- result[index++] = Boolean.parseBoolean(element);
+ for (String each : parameterElements) {
+ result[index++] = Boolean.parseBoolean(each);
}
return result;
}