Skip to content

Commit a80b519

Browse files
committed
Merge branch 'release/2.4.0'
2 parents 1c853b6 + af7c719 commit a80b519

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 2.4.0
2+
3+
<!-- Release notes generated using configuration in .github/release.yml at release/2.4.0 -->
4+
5+
## What's Changed
6+
### Enhancements
7+
* Patch: Remove de-duping via HashSet from accounts,foriegn apps, and foreign … by @gmalouf in https://github.com/algorand/java-algorand-sdk/pull/652
8+
9+
## New Contributors
10+
* @gmalouf made their first contribution in https://github.com/algorand/java-algorand-sdk/pull/652
11+
12+
**Full Changelog**: https://github.com/algorand/java-algorand-sdk/compare/2.3.0...2.4.0
13+
114
# 2.3.0
215

316
<!-- Release notes generated using configuration in .github/release.yml at release/2.3.0 -->

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Maven:
1919
<dependency>
2020
<groupId>com.algorand</groupId>
2121
<artifactId>algosdk</artifactId>
22-
<version>2.3.0</version>
22+
<version>2.4.0</version>
2323
</dependency>
2424
```
2525

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.algorand</groupId>
66
<artifactId>algosdk</artifactId>
7-
<version>2.3.0</version>
7+
<version>2.4.0</version>
88
<packaging>jar</packaging>
99

1010
<name>${project.groupId}:${project.artifactId}</name>

src/main/java/com/algorand/algosdk/builder/transaction/MethodCallTransactionBuilder.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import java.math.BigInteger;
1414
import java.util.ArrayList;
15-
import java.util.HashSet;
1615
import java.util.List;
1716

1817
@SuppressWarnings("unchecked")
@@ -105,7 +104,7 @@ public T signer(TxnSigner signer) {
105104
@Override
106105
public T accounts(List<Address> accounts) {
107106
if (accounts != null)
108-
this.foreignAccounts = new ArrayList<>(new HashSet<>(accounts));
107+
this.foreignAccounts = new ArrayList<>(accounts);
109108
else
110109
this.foreignAccounts.clear();
111110
return (T) this;
@@ -114,7 +113,7 @@ public T accounts(List<Address> accounts) {
114113
@Override
115114
public T foreignApps(List<Long> foreignApps) {
116115
if (foreignApps != null)
117-
this.foreignApps = new ArrayList<>(new HashSet<>(foreignApps));
116+
this.foreignApps = new ArrayList<>(foreignApps);
118117
else
119118
this.foreignApps.clear();
120119
return (T) this;
@@ -123,7 +122,7 @@ public T foreignApps(List<Long> foreignApps) {
123122
@Override
124123
public T foreignAssets(List<Long> foreignAssets) {
125124
if (foreignAssets != null)
126-
this.foreignAssets = new ArrayList<>(new HashSet<>(foreignAssets));
125+
this.foreignAssets = new ArrayList<>(foreignAssets);
127126
else
128127
this.foreignAssets.clear();
129128
return (T) this;

0 commit comments

Comments
 (0)