Skip to content

Reduce the amount of code a little - #172

Merged
zhaohong merged 3 commits into
tronprotocol:developfrom
AhnSinYong:master
Mar 5, 2018
Merged

zhaohong merged 3 commits into
tronprotocol:developfrom
AhnSinYong:master

Conversation

@AhnSinYong

Copy link
Copy Markdown
Contributor

What does this PR do?
Args.java

  • new String() create a new distinct instance of String object but literal reuse an instance from the string pool if one is available.

BlockCapsule.java

  • Replace list null check with CollectionUtils.isEmpty().

UtxoStore.java

  • Replace if condition code reformat for readable.
  • Replace the way add a value to long array.

Why are these changes required?

  • Reduce the amount of code a little

@zhaohong

zhaohong commented Mar 5, 2018

Copy link
Copy Markdown
Contributor

thanks!

@zhaohong
zhaohong merged commit 422340f into tronprotocol:develop Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants