Github user rafaelweingartner commented on the pull request:

    https://github.com/apache/cloudstack/pull/1361#issuecomment-176948581
  
    It is better now.
    I only have to point two things out.
    1 – About the class “com.cloud.storage.ImageStoreDetailsUtil” that 
you created. You are using static methods, and those static methods are using 
“variables” that you want to set using the spring suite. The way you did 
will not work; to my knowledge, those attributes will not be set by spring. If 
you want to set them with spring you should annotate the class with 
“@component”, then the object will be in the spring life cycle, and those 
attributes will be set properly. Of course, if you do that, remove the static 
from those methods (getNfsVersionByUuid, getNfsVersion) and then you would have 
to inject the "ImageStoreDetailsUtil" object into those classes that want to 
use the “getNfsVersion” methods.
    
    2 – The java doc you created for 
“com.cloud.storage.ImageStoreDetailsUtil.getNfsVersion(long)” is pretty 
nice. I would like to see the same in 
“com.cloud.storage.ImageStoreDetailsUtil.getNfsVersionByUuid(String)”. 
Moreover, I think those methods deserve some test case.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to