Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
API: Use string type instead of u8.
[vpp.git]
/
extras
/
japi
/
java
/
jvpp-core
/
io
/
fd
/
vpp
/
jvpp
/
core
/
examples
/
CallbackApiExample.java
diff --git
a/extras/japi/java/jvpp-core/io/fd/vpp/jvpp/core/examples/CallbackApiExample.java
b/extras/japi/java/jvpp-core/io/fd/vpp/jvpp/core/examples/CallbackApiExample.java
index
b99979c
..
b6558ff
100644
(file)
--- a/
extras/japi/java/jvpp-core/io/fd/vpp/jvpp/core/examples/CallbackApiExample.java
+++ b/
extras/japi/java/jvpp-core/io/fd/vpp/jvpp/core/examples/CallbackApiExample.java
@@
-77,17
+77,17
@@
public class CallbackApiExample {
System.out.printf("Received ShowVersionReply: context=%d, program=%s, version=%s, "
+ "buildDate=%s, buildDirectory=%s%n",
msg.context,
System.out.printf("Received ShowVersionReply: context=%d, program=%s, version=%s, "
+ "buildDate=%s, buildDirectory=%s%n",
msg.context,
-
new String(msg.program, StandardCharsets.UTF_8)
,
-
new String(msg.version, StandardCharsets.UTF_8)
,
-
new String(msg.buildDate, StandardCharsets.UTF_8)
,
-
new String(msg.buildDirectory, StandardCharsets.UTF_8)
);
+
msg.program
,
+
msg.version
,
+
msg.buildDate
,
+
msg.buildDirectory
);
}
@Override
public void onSwInterfaceDetails(final SwInterfaceDetails msg) {
System.out.printf("Received SwInterfaceDetails: interfaceName=%s, l2AddressLength=%d, adminUpDown=%d, "
+ "linkUpDown=%d, linkSpeed=%d, linkMtu=%d%n",
}
@Override
public void onSwInterfaceDetails(final SwInterfaceDetails msg) {
System.out.printf("Received SwInterfaceDetails: interfaceName=%s, l2AddressLength=%d, adminUpDown=%d, "
+ "linkUpDown=%d, linkSpeed=%d, linkMtu=%d%n",
-
new String(msg.interfaceName, StandardCharsets.UTF_8)
, msg.l2AddressLength, msg.adminUpDown,
+
msg.interfaceName
, msg.l2AddressLength, msg.adminUpDown,
msg.linkUpDown, msg.linkSpeed, (int) msg.linkMtu);
}
msg.linkUpDown, msg.linkSpeed, (int) msg.linkMtu);
}