Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bytes. #859

Merged
merged 1 commit into from
Jan 30, 2019
Merged

Add Bytes. #859

merged 1 commit into from
Jan 30, 2019

Conversation

boaks
Copy link
Contributor

@boaks boaks commented Jan 28, 2019

Use it for Token and SessionId.

(split from #857)

Signed-off-by: Achim Kraus [email protected]

@boaks
Copy link
Contributor Author

boaks commented Jan 29, 2019

I would like to merge this tomorrow evening, if no objection.

Use it for Token and SessionId.

Signed-off-by: Achim Kraus <[email protected]>
@boaks boaks merged commit 414798e into eclipse-californium:2.0.x Jan 30, 2019
* @return bytes as (hexadecimal) string
*/
public final String getAsString() {
return StringUtil.byteArray2HexString(bytes, StringUtil.NO_SEPARATOR, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have many "byte to hex string" function :

  • some in element-connector : StringUtil
  • others in scandium : ByteArrayUtils

The scandium version seems to be an optimized one.
Maybe one day we should merge all in element-connector. (and removing duplicate one)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue #168

Somehow, I'm aware, but somehow, #168 is a clean-up, which affects many lines and with the stuff in #824 open, I'm afraid of a lot extra merging work. Therefore I shifted that #168 clean-up now many times ;-(.
Hope, after the "connection id", it's silent enough :-).

@boaks boaks deleted the add_bytes branch April 5, 2019 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants