• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

JAVA0138 20 parameters defined for method (maximum: 5)

Hi,

 JAVA0138 20 parameters defined for method (maximum: 5) is this impact the code ?

i mean reduce the speed ? or any other impact ?
0
Sathish David  Kumar N
Asked:
Sathish David  Kumar N
3 Solutions
 
CEHJCommented:
It's more a question of readability, but yes - the more parameters, the more overhead

http://www.enerjy.com/explorer/help/rules/JAVA0138.html
0
 
objectsCommented:
> i mean reduce the speed ? or any other impact ?

no, it won't reduce speed., but it makes the method confusing for the developer.
to fix package the parameters into a bean and pass the bean as a a parameter instead, thus reducing the number of parameters,
0
 
for_yanCommented:
Also consider if some of these parameters would be more appropriate to be instance varaibles
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now