java - What does the following code analysis mean? -


i have object instantiated following in 1 place in code(aggregatefunctions).

    private string selectcolumns() {         string query = "select ";          if (this.distinctresults) {             query = query + "distinct ";         }          selectcolumn selectcolumn = new selectcolumn(this);          if (!this.applyaggregation) {             (object object : this.columns) {                 query = selectcolumn.selectcolumn(query, object);             }         } else {             aggregatefunctions aggregatefunctions = new aggregatefunctions(this);             query = query + aggregatefunctions.select();         }         //remove ', '         query = query.substring(0, query.length() - 2) + " ";         return query;     } 

the constructors:

    public aggregatefunctions(@notnull sqlquerygenerator sqlquerygenerator) {         this.spaceencloser = sqlquerygenerator.getspaceencloser();         this.selectcolumn = new selectcolumn(sqlquerygenerator);         jsonobject formdata = sqlquerygenerator.getformdata();         this.columns = formdata.getjsonarray("columns");         this.aggregatejson = formdata.getjsonobject("functions").getjsonarray("aggregate");         this.aggregateslist = new arraylist<aggregate>();         prepareaggregates();         this.query = new stringbuilder();     }      public selectcolumn(sqlquerygenerator sqlquerygenerator) {         this.sqlquerygenerator = sqlquerygenerator;     } 

but intellij code analysis says following recursive calls. didn't understand meaning. can elaborate me understand?

problem synopsis

constructor has usage(s) belong recursive calls chain has no members reachable entry points.   

problem resolution

  1. safe delete
  2. comment out
  3. add entry point

this warning unused declaration inspection. intellij idea thinks constructor not reachable entry points. constructor not unused however, usages unreachable.

if not case code, may bug in intellij idea.


Comments