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 { ...@@ -42,9 +42,7 @@ public class SearchPoint extends BasicPoint implements IEncodeEngine {
} }
private void importEncodeInfo(double[] info) { private void importEncodeInfo(double[] info) {
for(int i=0; i<encodeInfo.length; i++) { System.arraycopy(info, 0, encodeInfo, 0, encodeInfo.length);
encodeInfo[i] = info[i];
}
} }
private void importEncodeInfo(IEncodeEngine point) { private void importEncodeInfo(IEncodeEngine point) {
......
...@@ -131,9 +131,7 @@ public class DesignSpace { ...@@ -131,9 +131,7 @@ public class DesignSpace {
public double[] getRealLoc(double[] imageLoc) { public double[] getRealLoc(double[] imageLoc) {
double[] realLoc = new double[imageLoc.length]; double[] realLoc = new double[imageLoc.length];
for (int i=0; i<imageLoc.length; i++) { System.arraycopy(imageLoc, 0, realLoc, 0, imageLoc.length);
realLoc[i] = imageLoc[i];
}
annulusAdjust(realLoc); annulusAdjust(realLoc);
return 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