Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4b54b98

Browse filesBrowse files
committed
added JSONArray.shallowClonedList()
1 parent 4e32adc commit 4b54b98
Copy full SHA for 4b54b98

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Collapse file

‎JSONArray.java‎

Copy file name to clipboardExpand all lines: JSONArray.java
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ of this software and associated documentation files (the "Software"), to deal
3131
import java.util.ArrayList;
3232
import java.util.Collection;
3333
import java.util.Iterator;
34+
import java.util.List;
3435
import java.util.Map;
3536

3637
/**
@@ -903,4 +904,8 @@ Writer write(Writer writer, int indentFactor, int indent)
903904
throw new JSONException(e);
904905
}
905906
}
907+
908+
public List shallowClonedList() {
909+
return new ArrayList(this.myArrayList);
910+
}
906911
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.