FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.3.2

Threshold is Low

Effort is Max

Summary

Classes Bugs Errors Missing Classes
119 29 0 0

com.gridsystems.resource.api.CPUId

Bug Category Details Line
Comparison of String parameter using == or != in com.gridsystems.resource.api.CPUId.eq(String, String) BAD_PRACTICE ES_COMPARING_PARAMETER_STRING_WITH_EQ 133

com.gridsystems.resource.api.Group

Bug Category Details Line
com.gridsystems.resource.api.Group.getLabourHours() may expose internal representation by returning Group.labourHours MALICIOUS_CODE EI_EXPOSE_REP 249
com.gridsystems.resource.api.Group.getResources() may expose internal representation by returning Group.resources MALICIOUS_CODE EI_EXPOSE_REP 240
com.gridsystems.resource.api.Group.setLabourHours(TimeInterval[]) may expose internal representation by storing an externally mutable object into Group.labourHours MALICIOUS_CODE EI_EXPOSE_REP2 265
com.gridsystems.resource.api.Group.setResources(ResourceId[]) may expose internal representation by storing an externally mutable object into Group.resources MALICIOUS_CODE EI_EXPOSE_REP2 231

com.gridsystems.resource.api.OS

Bug Category Details Line
Comparison of String parameter using == or != in com.gridsystems.resource.api.OS.eq(String, String) BAD_PRACTICE ES_COMPARING_PARAMETER_STRING_WITH_EQ 172

com.gridsystems.resource.api.ResourceAssignment

Bug Category Details Line
Comparison of String parameter using == or != in com.gridsystems.resource.api.ResourceAssignment.eq(String, String) BAD_PRACTICE ES_COMPARING_PARAMETER_STRING_WITH_EQ 104

com.gridsystems.resource.api.ResourceId

Bug Category Details Line
ResourceId.resourceName not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available
ResourceId.resourceType not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

com.gridsystems.resource.api.ResourceProperties

Bug Category Details Line
com.gridsystems.resource.api.ResourceProperties.getCpus() may expose internal representation by returning ResourceProperties.cpu MALICIOUS_CODE EI_EXPOSE_REP 477
com.gridsystems.resource.api.ResourceProperties.getGroups() may expose internal representation by returning ResourceProperties.groups MALICIOUS_CODE EI_EXPOSE_REP 347
com.gridsystems.resource.api.ResourceProperties.getKeywords() may expose internal representation by returning ResourceProperties.keywords MALICIOUS_CODE EI_EXPOSE_REP 430
com.gridsystems.resource.api.ResourceProperties.getOss() may expose internal representation by returning ResourceProperties.oss MALICIOUS_CODE EI_EXPOSE_REP 572
com.gridsystems.resource.api.ResourceProperties.getSecurityLevels() may expose internal representation by returning ResourceProperties.securityLevels MALICIOUS_CODE EI_EXPOSE_REP 732
com.gridsystems.resource.api.ResourceProperties.getSupportedParameterTypes() may expose internal representation by returning ResourceProperties.supportedParameterTypes MALICIOUS_CODE EI_EXPOSE_REP 627
com.gridsystems.resource.api.ResourceProperties.getSupportedRangeTypes() may expose internal representation by returning ResourceProperties.supportedRangeTypes MALICIOUS_CODE EI_EXPOSE_REP 645
com.gridsystems.resource.api.ResourceProperties.getSupportedResultFilterPolicies() may expose internal representation by returning ResourceProperties.supportedResultFilterPolicies MALICIOUS_CODE EI_EXPOSE_REP 679
com.gridsystems.resource.api.ResourceProperties.setCpus(CPU[]) may expose internal representation by storing an externally mutable object into ResourceProperties.cpu MALICIOUS_CODE EI_EXPOSE_REP2 486
com.gridsystems.resource.api.ResourceProperties.setGroups(String[]) may expose internal representation by storing an externally mutable object into ResourceProperties.groups MALICIOUS_CODE EI_EXPOSE_REP2 357
com.gridsystems.resource.api.ResourceProperties.setKeywords(String[]) may expose internal representation by storing an externally mutable object into ResourceProperties.keywords MALICIOUS_CODE EI_EXPOSE_REP2 447
com.gridsystems.resource.api.ResourceProperties.setOss(OS[]) may expose internal representation by storing an externally mutable object into ResourceProperties.oss MALICIOUS_CODE EI_EXPOSE_REP2 581
com.gridsystems.resource.api.ResourceProperties.setSecurityLevels(String[]) may expose internal representation by storing an externally mutable object into ResourceProperties.securityLevels MALICIOUS_CODE EI_EXPOSE_REP2 739
com.gridsystems.resource.api.ResourceProperties.setSupportedParameterTypes(String[]) may expose internal representation by storing an externally mutable object into ResourceProperties.supportedParameterTypes MALICIOUS_CODE EI_EXPOSE_REP2 636
com.gridsystems.resource.api.ResourceProperties.setSupportedRangeTypes(String[]) may expose internal representation by storing an externally mutable object into ResourceProperties.supportedRangeTypes MALICIOUS_CODE EI_EXPOSE_REP2 654
com.gridsystems.resource.api.ResourceProperties.setSupportedResultFilterPolicies(String[]) may expose internal representation by storing an externally mutable object into ResourceProperties.supportedResultFilterPolicies MALICIOUS_CODE EI_EXPOSE_REP2 686
com.gridsystems.resource.api.ResourceProperties.ALL_SECURITYLEVELS should be package protected MALICIOUS_CODE MS_PKGPROTECT 104
com.gridsystems.resource.api.ResourceProperties.ALL_STATES should be package protected MALICIOUS_CODE MS_PKGPROTECT 66

com.gridsystems.resource.api.ResourceUsage

Bug Category Details Line
com.gridsystems.resource.api.ResourceUsage.getAssignments() may expose internal representation by returning ResourceUsage.assignments MALICIOUS_CODE EI_EXPOSE_REP 49
com.gridsystems.resource.api.ResourceUsage.setAssignments(ResourceAssignment[]) may expose internal representation by storing an externally mutable object into ResourceUsage.assignments MALICIOUS_CODE EI_EXPOSE_REP2 68