SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(K).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(K).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(K).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method eUnset has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case MetadataPackage.POPULATION_GROUP__POPULATION_NAME:
                setPopulationName(POPULATION_NAME_EDEFAULT);

Method initDialog has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Component initDialog() {
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints c = new GridBagConstraints();
        c.insets = new Insets(5, 5, 5, 5);
        c.gridx = 0;

Method loadSettingsFrom has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected void loadSettingsFrom(NodeSettingsRO settings, DataTableSpec[] specs) throws NotConfigurableException {
        set = new SettingsHelper();
        set.loadSettings(settings);

Method actionPerformed has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == addButton) {
            Integer id = DBKernel.openMiscDBWindow(addButton, null);

Method createChart has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void createChart() {
        String id = null;

        if (configPanel.isDisplayFocusedRow()) {
            id = selectionPanel.getFocusedID();

Method checkOtherEditor2Open has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void checkOtherEditor2Open(final int lastClickedRow, final int lastClickedCol, final int x, final int y, final char ch) {
        if (lastClickedCol > 0) {
        MyTable[] myTs = actualTable.getForeignFields();
        if (lastClickedCol > 0 && lastClickedCol <= myTs.length && myTs[lastClickedCol-1] != null &&
                myTs[lastClickedCol-1].getTablename().equals("DoubleKennzahlen")) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix
Severity
Category
Status
Source
Language