/*
- * Copyright (c) 2014, 2015 Matt Oswalt and others. All rights reserved.
+ * Copyright © 2014, 2017 Matt Oswalt and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
*/
package org.opendaylight.ovsdb.lib.operations;
-import com.google.common.collect.Lists;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import java.util.ArrayList;
import java.util.List;
import org.opendaylight.ovsdb.lib.notation.Condition;
import org.opendaylight.ovsdb.lib.notation.Mutation;
public class Mutate<E extends TableSchema<E>> extends Operation<E> implements ConditionalOperation {
public static final String MUTATE = "mutate";
- List<Condition> where = Lists.newArrayList();
- private List<Mutation> mutations = Lists.newArrayList();
+ List<Condition> where = new ArrayList<>();
+ private List<Mutation> mutations = new ArrayList<>();
public Mutate on(TableSchema schema) {
this.setTableSchema(schema);
super(schema, MUTATE);
}
+ @SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT") // validate call below
public <T extends TableSchema<T>, D> Mutate<E> addMutation(ColumnSchema<T, D> columnSchema,
Mutator mutator, D value) {
columnSchema.validate(value);
public void setWhere(List<Condition> where) {
this.where = where;
}
-}
\ No newline at end of file
+}