Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ public static byte[] hexStringToBytes(final String hexString) {
public static long hexStringToLong(final String hexString) {
Preconditions.checkNotNull(hexString, "Error: Unicode string can't be null");
Preconditions.checkArgument(
isHexString(hexString),
String.format("Error: Hex string '%s' is not a valid hex string", hexString));
isHexString(hexString), "Error: Hex string '%s' is not a valid hex string", hexString);

if ((hexString.length() == 16) && (hexString.charAt(0) >= 8)) {
// Reason: Long.parseLong(x, 16) throws NumberFormatException when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void removeEdge(final EdgeType edge) {
*/
public void removeNode(final NodeType node) {
Preconditions.checkArgument(
m_nodes.remove(node), String.format("Error: Node '%s' was not part of the graph", node));
m_nodes.remove(node), "Error: Node '%s' was not part of the graph", node);
m_edges.removeAll(m_nodeToEdges.get(node));
m_nodeToEdges.remove(node);
}
Expand Down
Loading