Skip to content

Commit

Permalink
Fixed possible typo srv to svr as described in Part.6 Mappings - Expa…
Browse files Browse the repository at this point in the history
…ndedNodeId
  • Loading branch information
Drakezul committed Jun 30, 2018
1 parent cddca96 commit 835a916
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,17 +423,17 @@ public boolean isNullNodeId() {
@Override
public String toString() {
try {
String srvPart = !isLocal() ? "srv="+serverIndex+";" : "";
String svrPart = !isLocal() ? "svr="+serverIndex+";" : "";
String nsPart = namespaceUri!=null ? "nsu="+URLEncoder.encode(namespaceUri, "ISO8859-1")+";" : namespaceIndex>0 ? "ns="+namespaceIndex+";" : "";
if (type == IdType.Numeric) return srvPart+nsPart+"i="+value;
if (type == IdType.String) return srvPart+nsPart+"s="+value;
if (type == IdType.Guid) return srvPart+nsPart+"g="+value;
if (type == IdType.Numeric) return svrPart+nsPart+"i="+value;
if (type == IdType.String) return svrPart+nsPart+"s="+value;
if (type == IdType.Guid) return svrPart+nsPart+"g="+value;
if (type == IdType.Opaque) {
if (value==null) return srvPart+nsPart+"b=null";
return srvPart+nsPart+"b="+new String( CryptoUtil.base64Encode(((ByteString)value).getValue()) );
if (value==null) return svrPart+nsPart+"b=null";
return svrPart+nsPart+"b="+new String( CryptoUtil.base64Encode(((ByteString)value).getValue()) );
}
} catch (UnsupportedEncodingException e) {
}
return "error";
}
}
}

0 comments on commit 835a916

Please sign in to comment.