We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ユーザーパラメータがDeepCopyされてしまい、同じオブジェクトを渡すことができない。
The text was updated successfully, but these errors were encountered:
パラメータのクローン自体を行わないようにする。
ここで渡すオブジェクトが「パラメータとして渡しているものである」ことはコードから意図が明確。 ShallowCopyをする方法も考えられるが、通常のメソッド呼び出しとあえて区別するほどの必要はないと思われる。
ShallowCopyをしない場合、パラメータとして渡したオブジェクトを後から書き換えると 値が変わってしまう問題があるが、中にオブジェクトを入れた場合結局書き換えられるので、 もっとも外側のインスタンスだけを守っても中途半端である。
Sorry, something went wrong.
hifive#163 controller()のユーザーパラメータはクローンしないようにした
c11bbe4
hifive#163 テストケースを修正
c836188
simdy
No branches or pull requests
ユーザーパラメータがDeepCopyされてしまい、同じオブジェクトを渡すことができない。
The text was updated successfully, but these errors were encountered: