SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Avoid too many return statements within this method.
Open

            else if (columnIndex == 2) return Boolean.class;

Avoid too many return statements within this method.
Open

            else if (columnIndex == 4) return Double.class;

Avoid too many return statements within this method.
Open

            else if (columnIndex == 1) return Object.class;

Avoid too many return statements within this method.
Open

                if (columnIndex == 4) return isIndep ? null : 
                    thePM.getParamError(rowID) == null || Double.isNaN(thePM.getParamError(rowID)) ? null : thePM.getParamError(rowID);

Avoid too many return statements within this method.
Open

                if (columnIndex == 6) return isIndep ? (thePM.getIndepMax(rowID) == null || Double.isNaN(thePM.getIndepMax(rowID)) ? null : thePM.getIndepMax(rowID)) :
                    (thePM.getParamMax(rowID) == null || Double.isNaN(thePM.getParamMax(rowID)) ? null : thePM.getParamMax(rowID));

Avoid too many return statements within this method.
Open

                if (columnIndex == 3) return isIndep ? null : 
                    thePM.getParamValue(rowID) == null || Double.isNaN(thePM.getParamValue(rowID)) ? null : thePM.getParamValue(rowID);

Avoid too many return statements within this method.
Open

                if (columnIndex == 7) return isIndep ? (thePM.getIndepDescription(rowID) == null ? null : thePM.getIndepDescription(rowID)) :
                    (thePM.getParamDescription(rowID) == null ? null : thePM.getParamDescription(rowID));

Avoid too many return statements within this method.
Open

            return null;

Avoid too many return statements within this method.
Open

            else if (columnIndex == 3) return Double.class;

Avoid too many return statements within this method.
Open

                if (columnIndex < 2) return thePM.getDepVar();

Avoid too many return statements within this method.
Open

                if (columnIndex == 5) return isIndep ? (thePM.getIndepMin(rowID) == null || Double.isNaN(thePM.getIndepMin(rowID)) ? null : thePM.getIndepMin(rowID)) :
                    (thePM.getParamMin(rowID) == null || Double.isNaN(thePM.getParamMin(rowID)) ? null : thePM.getParamMin(rowID));

Avoid too many return statements within this method.
Open

                if (columnIndex == 1) return rowID;

Avoid too many return statements within this method.
Open

        return true;

Avoid too many return statements within this method.
Open

                        if (literatureID != id) return false;

Avoid too many return statements within this method.
Open

                if (emx != null && emx.rms <= qualityThresh) return true;                

Avoid too many return statements within this method.
Open

                        if (!s.contains(literatureString.toLowerCase()) && !sd.contains(literatureString.toLowerCase())) return false;

Avoid too many return statements within this method.
Open

                if (!paramFound && (dbl[0] != null || dbl[1] != null)) return false;

Avoid too many return statements within this method.
Open

                                return false;

Avoid too many return statements within this method.
Open

                    if (doTheUpdates(dbPath)) return loadDBNew(myDBi, dbPath, autoUpdate, openTheGui, beInteractive);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/Login.java - About 30 mins to fix

Avoid too many return statements within this method.
Open

                    return;
Severity
Category
Status
Source
Language