Skip to content

Commit 156cc32

Browse files
cushoncopybara-github
authored andcommitted
Automated Code Change
PiperOrigin-RevId: 830348037 Change-Id: Ia419da1c9e0f4d708d50bdbbfb190d72d932c170
1 parent 5c2bb58 commit 156cc32

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

java/zylib/src/main/java/com/google/security/zynamics/zylib/general/Convert.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ public static byte[] hexStringToBytes(final String hexString) {
134134
public static long hexStringToLong(final String hexString) {
135135
Preconditions.checkNotNull(hexString, "Error: Unicode string can't be null");
136136
Preconditions.checkArgument(
137-
isHexString(hexString),
138-
String.format("Error: Hex string '%s' is not a valid hex string", hexString));
137+
isHexString(hexString), "Error: Hex string '%s' is not a valid hex string", hexString);
139138

140139
if ((hexString.length() == 16) && (hexString.charAt(0) >= 8)) {
141140
// Reason: Long.parseLong(x, 16) throws NumberFormatException when

java/zylib/src/main/java/com/google/security/zynamics/zylib/types/graphs/MutableDirectedGraph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public void removeEdge(final EdgeType edge) {
155155
*/
156156
public void removeNode(final NodeType node) {
157157
Preconditions.checkArgument(
158-
m_nodes.remove(node), String.format("Error: Node '%s' was not part of the graph", node));
158+
m_nodes.remove(node), "Error: Node '%s' was not part of the graph", node);
159159
m_edges.removeAll(m_nodeToEdges.get(node));
160160
m_nodeToEdges.remove(node);
161161
}

0 commit comments

Comments
 (0)