Private members with custom attributes marked as unused

You'd normally add custom attributes to private members to locate them with reflection. Perhaps it makes sense to avoid marking any of these members (as well as their parameters, if any) as unused?

For example, private methods attributed is called by runtime after deserialization occurred are required to have context argument, yet R# marks method with warning "Unused private member" and its StreamingContext parameter with "Parameter is never used".

Just a thought...

2 comments
Comment actions Permalink

These methods (marked bu custom attributes) are definitely shouldn't be
counted as unused.
I'll check this problem

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"repka" <no_reply@jetbrains.com> wrote in message
news:4230433.1190386880034.JavaMail.itn@is.intellij.net...

You'd normally add custom attributes to private members to locate them
with reflection. Perhaps it makes sense to avoid marking any of these
members (as well as their parameters, if any) as unused?

>

For example, private methods attributed is called by
runtime after deserialization occurred are required to have context
argument, yet R# marks method with warning "Unused private member" and its
StreamingContext parameter with "Parameter is never used".

>

Just a thought...



0
Comment actions Permalink

I can't reprduce this problem.
Please could you send me small sample solution which demonstrates it?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"repka" <no_reply@jetbrains.com> wrote in message
news:4230433.1190386880034.JavaMail.itn@is.intellij.net...

You'd normally add custom attributes to private members to locate them
with reflection. Perhaps it makes sense to avoid marking any of these
members (as well as their parameters, if any) as unused?

>

For example, private methods attributed is called by
runtime after deserialization occurred are required to have context
argument, yet R# marks method with warning "Unused private member" and its
StreamingContext parameter with "Parameter is never used".

>

Just a thought...



0

Please sign in to leave a comment.