commit | 76e33c6a84ba6994d3ac21809223246863138b80 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Thu Apr 05 15:08:23 2018 -0700 |
committer | Ray Milkey <ray@opennetworking.org> | Thu Apr 05 15:08:23 2018 -0700 |
tree | d700f240d3d1fbd2f680ae87ad74793fcf9d2cfe | |
parent | df3eec564133cd17700a2a994e563acbe6790864 [diff] |
Fix string format bug found by error prone Change-Id: I2ede9a739be18bafd3c70c2d0e8023ae8209e57d
diff --git a/protocols/p4runtime/ctl/src/main/java/org/onosproject/p4runtime/ctl/MeterEntryCodec.java b/protocols/p4runtime/ctl/src/main/java/org/onosproject/p4runtime/ctl/MeterEntryCodec.java index c30e2c8..9019613 100644 --- a/protocols/p4runtime/ctl/src/main/java/org/onosproject/p4runtime/ctl/MeterEntryCodec.java +++ b/protocols/p4runtime/ctl/src/main/java/org/onosproject/p4runtime/ctl/MeterEntryCodec.java
@@ -203,7 +203,7 @@ PiMeterId piMeterId = meterIdMap.get(meterId); if (!pipeconf.pipelineModel().meter(piMeterId).isPresent()) { - throw new EncodeException(format("Unable to find meter '{}' in pipeline model", meterId)); + throw new EncodeException(format("Unable to find meter '%s' in pipeline model", meterId)); } PiMeterType piMeterType = pipeconf.pipelineModel().meter(piMeterId).get().meterType();