Skip to content

CID 114405: API usage errors (WRONG_METHOD) #375

@jewzaam

Description

@jewzaam

https://scan.coverity.com/projects/lightblue-platform-lightblue

*** CID 114405:  API usage errors  (WRONG_METHOD)
/lightblue-migrator/lightblue-migration-monitor/src/main/java/com/redhat/lightblue/migrator/monitor/MonitorConfiguration.java: 84 in com.redhat.lightblue.migrator.monitor.MonitorConfiguration.applyProperties(java.util.Properties)()
78         public void applyProperties(Properties p) {
79             String s = p.getProperty("config");
80             if (s != null) {
81                 setClientConfig(s);
82             }
83
>>>     CID 114405:  API usage errors  (WRONG_METHOD)
>>>     The method "java.lang.Integer.getInteger(java.lang.String)" expects its argument to name a system property, but the argument "p.getProperty("periods")" does not seem to represent such a name.
84             Integer periods = Integer.getInteger(p.getProperty("periods"));
85             if(periods != null){
86                 setPeriods(periods);
87             }
88         }
89

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions