Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-11-26 15:56:04 -0500
committerKarsten Thoms2019-12-11 05:32:49 -0500
commitb477bd8d3c77424ba052b2805184cf696f30d966 (patch)
tree5fda8354a4a9a1e96a91dc59b1e7a60af1c75b04 /examples
parent8671d0330cf717a57a0c8d68fabafde38e9f4e58 (diff)
downloadeclipse.platform.swt-b477bd8d3c77424ba052b2805184cf696f30d966.tar.gz
eclipse.platform.swt-b477bd8d3c77424ba052b2805184cf696f30d966.tar.xz
eclipse.platform.swt-b477bd8d3c77424ba052b2805184cf696f30d966.zip
Replace occurrences of manual array copying via for loop
Change-Id: I0675c6ee5ae32c2d21c9d4bd6129ad75d05d1e36 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/DataEntryDialog.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/DataEntryDialog.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/DataEntryDialog.java
index a1de350d76..18cb76d71a 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/DataEntryDialog.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/DataEntryDialog.java
@@ -159,8 +159,6 @@ public void setValues(String[] itemInfo) {
values = new String[labels.length];
int numItems = Math.min(values.length, itemInfo.length);
- for(int i = 0; i < numItems; i++) {
- values[i] = itemInfo[i];
- }
+ System.arraycopy(itemInfo, 0, values, 0, numItems);
}
}

Back to the top