commit | a3fcf6754a23a46f2c7b7f856817ea8b4fc5cfb1 | [log] [tgz] |
---|---|---|
author | Jon Hall <jhall@ciena.com> | Tue Mar 28 16:53:22 2017 -0700 |
committer | Ray Milkey <ray@onlab.us> | Wed Apr 05 22:54:30 2017 +0000 |
tree | 2508a2f4bcff7c24cd4d9bcac29aa4e13bad48cd | |
parent | 634eb17ac5e522b94632e34fa797a8333f321892 [diff] [blame] |
Fix Sonar issue: Strings literals should be placed on the left side when checking for equality Change-Id: I4537e08936731ace55aeecb3ad941269ec1eb191
diff --git a/cli/src/main/java/org/onosproject/cli/net/FlowsListCommand.java b/cli/src/main/java/org/onosproject/cli/net/FlowsListCommand.java index 7cbd586..c417ddc 100644 --- a/cli/src/main/java/org/onosproject/cli/net/FlowsListCommand.java +++ b/cli/src/main/java/org/onosproject/cli/net/FlowsListCommand.java
@@ -163,7 +163,7 @@ try { response = br.readLine(); response = response.trim().replace("\n", ""); - if (response.equals("y")) { + if ("y".equals(response)) { flowService.removeFlowRules(flow); } } catch (IOException e) {