Removed deprecated int based weights

This commit is contained in:
Markus Heiden
2014-08-27 21:41:22 +02:00
parent ad5412d8cf
commit 2eda9cd8fb
2 changed files with 5 additions and 22 deletions

View File

@@ -28,25 +28,8 @@ public class ZParams {
*
* @param weights
* weights.
* @deprecated Use {@link #weightsByDouble(double...)} instead
*/
@Deprecated
public ZParams weights(final int... weights) {
params.add(WEIGHTS.raw);
for (final int weight : weights) {
params.add(Protocol.toByteArray(weight));
}
return this;
}
/**
* Set weights.
*
* @param weights
* weights.
*/
public ZParams weightsByDouble(final double... weights) {
public ZParams weights(final double... weights) {
params.add(WEIGHTS.raw);
for (final double weight : weights) {
params.add(Protocol.toByteArray(weight));