Kaydet (Commit) 90b4217e authored tarafından rbuj's avatar rbuj Kaydeden (comit) David Tardon

nlpsolver: Use System.arraycopy

Change-Id: I2550bf0799bd5ebc7f6ff299752fa90b7a31674d
Reviewed-on: https://gerrit.libreoffice.org/10806Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst efbc5ac6
......@@ -42,9 +42,7 @@ public class SearchPoint extends BasicPoint implements IEncodeEngine {
}
private void importEncodeInfo(double[] info) {
for(int i=0; i<encodeInfo.length; i++) {
encodeInfo[i] = info[i];
}
System.arraycopy(info, 0, encodeInfo, 0, encodeInfo.length);
}
private void importEncodeInfo(IEncodeEngine point) {
......
......@@ -131,9 +131,7 @@ public class DesignSpace {
public double[] getRealLoc(double[] imageLoc) {
double[] realLoc = new double[imageLoc.length];
for (int i=0; i<imageLoc.length; i++) {
realLoc[i] = imageLoc[i];
}
System.arraycopy(imageLoc, 0, realLoc, 0, imageLoc.length);
annulusAdjust(realLoc);
return realLoc;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment