SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method retrieveAssay has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Assay retrieveAssay(Row row) {
        // Check first mandatory properties
        if (row.getCell(K).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing assay name");
        }

Method retrieveAssay has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Assay retrieveAssay(Row row) {
        // Check first mandatory properties
        if (row.getCell(K).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing assay name");
        }

Method retrieveAssay has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Assay retrieveAssay(Row row) {
        // Check first mandatory properties
        if (row.getCell(K).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing assay name");
        }

Method retrieveAssay has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Assay retrieveAssay(Row row) {
        // Check first mandatory properties
        if (row.getCell(L).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing assay name");
        }

Method retrieveAssay has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Assay retrieveAssay(Row row) {
        // Check first mandatory properties
        if (row.getCell(L).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing assay name");
        }

Method retrieveAssay has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Assay retrieveAssay(Row row) {
        // Check first mandatory properties
        if (row.getCell(L).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing assay name");
        }

Method retrieveBackground has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private GenericModelDataBackground retrieveBackground(Sheet sheet) {

        GenericModelDataBackground background = new GenericModelDataBackground();

        try {

Method eGet has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case MetadataPackage.PARAMETER__PARAMETER_ID:
                return getParameterID();

Method loadFromDB has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void loadFromDB() {
        ParametricModel ppm = table.getPM();
        modelNameBox.removeAllItems();
        // if (m_secondaryModels != null) m_secondaryModels.clear();
        int level = radioButton2.isSelected() ? 2 : 1;

Method getValueAt has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public Object getValueAt(int rowIndex, int columnIndex) {
            switch (columnIndex) {
            case 0:
                return ids.get(rowIndex);

Method getNumDBSuccesses has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private int getNumDBSuccesses(boolean conform, int level, String dbuuid, DataRow row, DataTableSpec outSpec,
            Connection conn) {
        int numDBSuccesses = 0;
        if (conform && (nodeSettings.deletePrimaryModels && level == 1
                || nodeSettings.deleteSecondaryModels && level == 2)) {

Method fillWithDefaults has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void fillWithDefaults(Integer defAgent, Integer defMatrix, Double defTemp, Double defPh, Double defAw, LinkedHashMap<String, DoubleTextField[]> params) throws InvalidSettingsException {
        if (defAgent != null) {
            //c.getConfig("MdReaderUi").addInt(MdReaderUi.PARAM_AGENTID, defAgent);
            mdReaderUi.setAgensID(defAgent);
            mdReaderUi.setAgentString(""+DBKernel.getValue(db.getConnection(), "Agenzien", "ID", defAgent+"", "Agensname"));

Method saveSettings has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void saveSettings(NodeSettingsWO settings) {
        settings.addString(CFG_FILE_NAME, fileName);
        settings.addString(CFG_SHEET_NAME, sheetName);
        settings.addBoolean(CFG_PRESERVE_IDS, preserveIds);
        settings.addString(CFG_USED_IDS, XmlConverter.objectToXml(usedIds));

Method button11ActionPerformed has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    void button11ActionPerformed(ActionEvent e) {
        if (isFormVisible()) {
            return;
        }
        if (parentDialog != null) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBPanel.java - About 1 hr to fix

Method refreshFKs has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static void refreshFKs(final String tableName, final boolean dropOnly) {
        // Foreign Keys setzen, ACHTUNG: immer checken, wenn ein Fehler auftritt
        ResultSet rs = DBKernel.getResultSet("SELECT TABLE_NAME, CONSTRAINT_NAME, CONSTRAINT_TYPE FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS", false);
        try {
            if (rs != null && rs.first()) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 1 hr to fix

Method go4Dateispeicher has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void go4Dateispeicher(final Statement anfrage) {
        try {            
            String sql = "SELECT * FROM " + DBKernel.delimitL("DateiSpeicher") + " ORDER BY " + DBKernel.delimitL("Zeitstempel") + " ASC";
            ResultSet rs = DBKernel.getResultSet(anfrage, sql, false);
                if (rs.first()) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MergeDBsAPriori.java - About 1 hr to fix

Method dbBackup has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static boolean dbBackup(final JFrame frame) {
        String lastOutDir = DBKernel.prefs.get("LAST_OUTPUT_DIR", "");
        JFileChooser fc = new JFileChooser(lastOutDir);
        Backup bkp = new Backup();
        fc.setFileFilter(bkp);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/Backup.java - About 1 hr to fix

Method unzipNExtract has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private String unzipNExtract(String filename, String destination) {
        String result = "";
        File tarGzFile = null;
        FileInputStream fis;
        //buffer for read and write data to file
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBI.java - About 1 hr to fix

Method insertEstParam has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void insertEstParam(final int estModelId, final int paramId, final Double value, final Double paramErr, String unit, ParametricModel pm, boolean isDepIndep,
            String paramName) {
        try {
            PreparedStatement ps = conn.prepareStatement("INSERT INTO \"GeschaetzteParameter\" (\"GeschaetztesModell\", \"Parameter\", \"Wert\", \"StandardError\", \"Einheit\", \"p\", \"t\") VALUES(?, ?, ?, ?, ?, ?, ?)");
            ps.setInt(1, estModelId);

Method runSnippet has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private FskPortObject runSnippet(final RController controller, final FskPortObject fskObj,
            final ExecutionMonitor monitor, final File imageFile)
            throws RException, CanceledExecutionException, InterruptedException, IOException, REXPMismatchException {

        ScriptExecutor executor = new ScriptExecutor(controller);
Severity
Category
Status
Source
Language