SiLeBAT/FSK-Lab

View on GitHub
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java

Summary

Maintainability
F
2 wks
Test Coverage

Method check4Updates_183_184 has a Cognitive Complexity of 86 (exceeds 5 allowed). Consider refactoring.
Open

    public static void check4Updates_183_184() {
        try {
            ResultSet rs = DBKernel.getResultSet(
                    "SELECT MIN(\"Agenzien\".\"Agensname\") AS \"Agensname\", MIN(\"Versuchsbedingungen\") AS \"Versuchsbedingung\" FROM \"Messwerte\"" +
                            " LEFT JOIN \"Versuchsbedingungen\" ON \"Versuchsbedingungen\".\"ID\" = \"Messwerte\".\"Versuchsbedingungen\"" +
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 1 day to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method updateChangeLog has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
Open

    private static boolean updateChangeLog(final String tablename, final int modifiedCol, final boolean deleted, final int oSize) {
        boolean result = true;
        boolean showMessages = false;
        ResultSet rs = DBKernel.getResultSet("SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Alteintrag") + " FROM " + DBKernel.delimitL("ChangeLog") + " WHERE "
                + DBKernel.delimitL("Tabelle") + "='" + tablename + "'", false); //  + " AND " + DBKernel.delimitL("ID") + " > 169000"
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 1 day to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File UpdateChecker.java has 665 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*******************************************************************************
 * Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 1 day to fix

Method check4Updates_176_177 has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
Open

    public static void check4Updates_176_177() {
        new GeneralXLSImporter().doImport("/org/hsh/bfr/db/res/Einheiten_140312.xls", null, false);

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 1 day to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method check4Updates_176_177 has 189 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void check4Updates_176_177() {
        new GeneralXLSImporter().doImport("/org/hsh/bfr/db/res/Einheiten_140312.xls", null, false);

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 7 hrs to fix

Method refreshFKs has a Cognitive Complexity of 47 (exceeds 5 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 7 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method check4Updates_183_184 has 107 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void check4Updates_183_184() {
        try {
            ResultSet rs = DBKernel.getResultSet(
                    "SELECT MIN(\"Agenzien\".\"Agensname\") AS \"Agensname\", MIN(\"Versuchsbedingungen\") AS \"Versuchsbedingung\" FROM \"Messwerte\"" +
                            " LEFT JOIN \"Versuchsbedingungen\" ON \"Versuchsbedingungen\".\"ID\" = \"Messwerte\".\"Versuchsbedingungen\"" +
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 4 hrs to fix

Method check4Updates_172_173 has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void check4Updates_172_173() {
        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Name") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);
        updateChangeLog("Station", 1, false);
        DBKernel.sendRequest(
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 3 hrs to fix

Method updateChangeLog has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static boolean updateChangeLog(final String tablename, final int modifiedCol, final boolean deleted, final int oSize) {
        boolean result = true;
        boolean showMessages = false;
        ResultSet rs = DBKernel.getResultSet("SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Alteintrag") + " FROM " + DBKernel.delimitL("ChangeLog") + " WHERE "
                + DBKernel.delimitL("Tabelle") + "='" + tablename + "'", false); //  + " AND " + DBKernel.delimitL("ID") + " > 169000"
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 2 hrs to fix

UpdateChecker has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

public class UpdateChecker {
    public static void check4Updates_183_184() {
        try {
            ResultSet rs = DBKernel.getResultSet(
                    "SELECT MIN(\"Agenzien\".\"Agensname\") AS \"Agensname\", MIN(\"Versuchsbedingungen\") AS \"Versuchsbedingung\" FROM \"Messwerte\"" +
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 2 hrs 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 check4Updates_170_171 has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void check4Updates_170_171() {
        boolean isBios = false;
        if (isBios) {
            new GeneralXLSImporter(true).doImport("/org/hsh/bfr/db/res/Einheiten_130902.xls", null, false);
            DBKernel.sendRequest("DELETE FROM " + DBKernel.delimitL("Einheiten") + " WHERE " + DBKernel.delimitL("ID") + "=102", false);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 1 hr to fix

Avoid deeply nested control flow statements.
Open

                                if (s2.indexOf("_") >= 0 && s2.indexOf(".") < 0) {
                                    if (!ser.isEmpty()) ser += "\n";
                                    ser += s2;
                                } else {
                                    if (!cqr.isEmpty()) cqr += "\n";
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                                    if (zero_ncs.equals("1/mL") && KE_ncs.equals("log10(1)")) {
                                        calcZeroV = Math.log10(zeroVal);
                                        calcUnit = "log10(count/ml)";
                                    }
                                    else if (zero_ncs.equals("1/mL") && KE_ncs.equals("log10(1/mL)")) {
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                                if (showMessages) {
                                    if (deleted) {
                                        System.out.println("before: " + newO[modifiedCol - 1] + "\tdeleted: " + newO[modifiedCol] + "\tafter: " + newO[modifiedCol + 1]);
                                    } else {
                                        System.out.println("before: " + newO[modifiedCol - 1] + (modifiedCol + 1 < newO.length ? "\tafter: " + newO[modifiedCol + 1] : "\tnix"));
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                                for (int i = 0; i < newO.length; i++) {
                                    if (deleted) {
                                        if (i > modifiedCol) {
                                            newO[i] = o[i + 1];
                                        } else if (i < modifiedCol) {
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 45 mins to fix

Refactor this method to reduce its Cognitive Complexity from 47 to the 15 allowed.
Open

    private static void refreshFKs(final String tableName, final boolean dropOnly) {

Cognitive Complexity is a measure of how hard the control flow of a method is to understand. Methods with high Cognitive Complexity will be difficult to maintain.

See

Refactor this method to reduce its Cognitive Complexity from 98 to the 15 allowed.
Open

    public static void check4Updates_176_177() {

Cognitive Complexity is a measure of how hard the control flow of a method is to understand. Methods with high Cognitive Complexity will be difficult to maintain.

See

Refactor this method to reduce its Cognitive Complexity from 44 to the 15 allowed.
Open

    public static void check4Updates_172_173() {

Cognitive Complexity is a measure of how hard the control flow of a method is to understand. Methods with high Cognitive Complexity will be difficult to maintain.

See

Refactor this method to reduce its Cognitive Complexity from 128 to the 15 allowed.
Open

    public static void check4Updates_183_184() {

Cognitive Complexity is a measure of how hard the control flow of a method is to understand. Methods with high Cognitive Complexity will be difficult to maintain.

See

Refactor this method to reduce its Cognitive Complexity from 94 to the 15 allowed.
Open

    private static boolean updateChangeLog(final String tablename, final int modifiedCol, final boolean deleted, final int oSize) {

Cognitive Complexity is a measure of how hard the control flow of a method is to understand. Methods with high Cognitive Complexity will be difficult to maintain.

See

Define a constant instead of duplicating this literal "SELECT " 6 times.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Kommentar") + " FROM " + DBKernel.delimitL("Lieferungen");

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Unitmenge" 10 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("dd_day") + " INTEGER BEFORE " + DBKernel.delimitL("Unitmenge"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "#Units2" 4 times.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("#Units1") + "," + DBKernel.delimitL("#Units2") + "," + DBKernel.delimitL("BezUnits2") + ","

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " DOUBLE BEFORE " 5 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Longitude") + " DOUBLE BEFORE " + DBKernel.delimitL("Ansprechpartner"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Hausnummer" 4 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Hausnummer") + " VARCHAR(10) BEFORE " + DBKernel.delimitL("Kontaktadresse"),

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Versuchsbedingung" 6 times.
Open

                            " WHERE \"Messwerte\".\"Versuchsbedingungen\" = " + rs.getString("Versuchsbedingung");

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "DELETE FROM " 7 times.
Open

            DBKernel.sendRequest("DELETE FROM " + DBKernel.delimitL("Einheiten") + " WHERE " + DBKernel.delimitL("ID") + "=102", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "log10(count/ml)" 3 times.
Open

                                        calcUnit = "log10(count/ml)";

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " VARCHAR(16383) BEFORE " 5 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Versuchsbedingungen") + " ADD COLUMN " + DBKernel.delimitL("ExperimentalDetails") + " VARCHAR(16383) BEFORE "

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Contact_Questions_Remarks" 3 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ALTER COLUMN " + DBKernel.delimitL("Contact_Questions_Remarks") + " VARCHAR(16383)", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "FallErfuellt" 3 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("CasePriority") + " DOUBLE BEFORE " + DBKernel.delimitL("FallErfuellt"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " DROP COLUMN " 10 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " DROP COLUMN " + DBKernel.delimitL("MHD"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Station" 54 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Longitude") + " DOUBLE BEFORE " + DBKernel.delimitL("Ansprechpartner"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " ALTER COLUMN " 4 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Einheiten") + " ALTER COLUMN " + DBKernel.delimitL("MathML string") + " VARCHAR(16383)", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Einheit" 14 times.
Open

                        + DBKernel.delimitL("Einheit"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "ALTER TABLE " 60 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Einheiten") + " ALTER COLUMN " + DBKernel.delimitL("MathML string") + " VARCHAR(16383)", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "=NULL" 3 times.
Open

            sql = "UPDATE " + DBKernel.delimitL("Chargen") + " SET " + DBKernel.delimitL("Kommentar") + "=NULL";

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Herstellungsdatum" 4 times.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("MHD") + "," + DBKernel.delimitL("Herstellungsdatum") + " FROM " + DBKernel.delimitL("Chargen");

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "EstModelPrimView" 3 times.
Open

        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelPrimView") + ";", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Postfach" 4 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Postfach") + " VARCHAR(20) BEFORE " + DBKernel.delimitL("Kontaktadresse"),

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Strasse" 4 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Strasse") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kontaktadresse"),

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Telefon" 4 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Telefon") + " VARCHAR(30) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " VARCHAR(100) BEFORE " 3 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Land") + " VARCHAR(100) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "DROP VIEW IF EXISTS " 8 times.
Open

        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelPrimView") + ";", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " INTEGER BEFORE " 10 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("MHD_day") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " VARCHAR(30) BEFORE " 3 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Bundesland") + " VARCHAR(30) BEFORE " + DBKernel.delimitL("Kontaktadresse"),

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "log10(1)" 3 times.
Open

                                    if (zero_ncs.equals("1/mL") && KE_ncs.equals("log10(1)")) {

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "EstModelSecView" 3 times.
Open

        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelSecView") + ";", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "BezUnits2" 3 times.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("#Units1") + "," + DBKernel.delimitL("#Units2") + "," + DBKernel.delimitL("BezUnits2") + ","

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Beschreibung" 3 times.
Open

                    "INSERT INTO " + DBKernel.delimitL("Einheiten") + " (" + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Einheit") + "," + DBKernel.delimitL("Beschreibung")

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Kontaktadresse" 20 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Name") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Lieferdatum" 4 times.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Lieferdatum") + " FROM " + DBKernel.delimitL("Lieferungen");

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " WHERE " 14 times.
Open

                                + (cqr.isEmpty() ? "NULL" : "'" + cqr + "'") + "," + DBKernel.delimitL("Serial") + "='" + ser + "'" + " WHERE " + DBKernel.delimitL("ID") + "="

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " FROM " 5 times.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Kommentar") + " FROM " + DBKernel.delimitL("Lieferungen");

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " VARCHAR(16383)" 3 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Einheiten") + " ALTER COLUMN " + DBKernel.delimitL("MathML string") + " VARCHAR(16383)", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Serial" 11 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Produktkatalog" 4 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Produktkatalog") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"),

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Chargen" 27 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Bundesland" 5 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("District") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Bundesland"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "INSERT INTO " 3 times.
Open

                    "INSERT INTO " + DBKernel.delimitL("Einheiten") + " (" + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Einheit") + "," + DBKernel.delimitL("Beschreibung")

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " VARCHAR(255) BEFORE " 10 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("District") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Bundesland"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "UPDATE " 18 times.
Open

            String sql = "UPDATE " + DBKernel.delimitL("Chargen") + " SET " + DBKernel.delimitL("OriginCountry") + "=LEFT(" + DBKernel.delimitL("Kommentar") + ",CASEWHEN(INSTR("

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Prozessdaten_Sonstiges" 6 times.
Open

            DBKernel.myDBi.getTable("Prozessdaten_Sonstiges").createTable();

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Ansprechpartner" 6 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Longitude") + " DOUBLE BEFORE " + DBKernel.delimitL("Ansprechpartner"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Kontakte" 3 times.
Open

            ResultSet rs = DBKernel.getResultSet("SELECT " + DBKernel.delimitL("Kontaktadresse") + "," + DBKernel.delimitL("Kontakte") + ".* FROM " + DBKernel.delimitL("Station")

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "EMail" 4 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("EMail") + " VARCHAR(100) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Kommentar" 20 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " ADD COLUMN " 45 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Versuchsbedingungen") + " ADD COLUMN " + DBKernel.delimitL("ExperimentalDetails") + " VARCHAR(16383) BEFORE "

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Modellkatalog" 4 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Modellkatalog") + " ALTER COLUMN " + DBKernel.delimitL("Formel") + " VARCHAR(1023)", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "#Units1" 4 times.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("#Units1") + "," + DBKernel.delimitL("#Units2") + "," + DBKernel.delimitL("BezUnits2") + ","

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Lieferungen" 39 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ALTER COLUMN " + DBKernel.delimitL("Explanation_EndChain") + " VARCHAR(16383)", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Einheiten" 11 times.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Einheiten") + " ALTER COLUMN " + DBKernel.delimitL("MathML string") + " VARCHAR(16383)", false);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Versuchsbedingung " 3 times.
Open

                                System.err.println("Versuchsbedingung " + rs.getString("Versuchsbedingung") + "." + lfd + " (" + agensname + ") makes no sense to convert - has different object type to initial concentration: " + KE_ot + " <-> " + zero_ot);

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal " SET " 18 times.
Open

            String sql = "UPDATE " + DBKernel.delimitL("Chargen") + " SET " + DBKernel.delimitL("OriginCountry") + "=LEFT(" + DBKernel.delimitL("Kommentar") + ",CASEWHEN(INSTR("

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Webseite" 4 times.
Open

                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Webseite") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kontaktadresse"),

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Alteintrag" 3 times.
Open

        ResultSet rs = DBKernel.getResultSet("SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Alteintrag") + " FROM " + DBKernel.delimitL("ChangeLog") + " WHERE "

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

public void run() {
  prepare("action1");                              // Noncompliant - "action1" is duplicated 3 times
  execute("action1");
  release("action1");
}

@SuppressWarning("all")                            // Compliant - annotations are excluded
private void method1() { /* ... */ }
@SuppressWarning("all")
private void method2() { /* ... */ }

public String method3(String a) {
  System.out.println("'" + a + "'");               // Compliant - literal "'" has less than 5 characters and is excluded
  return "";                                       // Compliant - literal "" has less than 5 characters and is excluded
}

Compliant Solution

private static final String ACTION_1 = "action1";  // Compliant

public void run() {
  prepare(ACTION_1);                               // Compliant
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                    if (rs.getObject("MHD") != null) {
                        cal.setTimeInMillis(rs.getTimestamp("MHD").getTime());
                        sql = "UPDATE " + DBKernel.delimitL("Chargen") + " SET " + DBKernel.delimitL("MHD_day") + "="
                                + (cal.get(Calendar.HOUR_OF_DAY) == 12 ? "NULL" : cal.get(Calendar.DAY_OF_MONTH)) + "," + DBKernel.delimitL("MHD_month") + "="
                                + (cal.get(Calendar.HOUR_OF_DAY) == 12 && cal.get(Calendar.MONTH) == 0 ? "NULL" : cal.get(Calendar.MONTH) + 1) + ","
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 3 hrs to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 376..383
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 391..398

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 210.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                    if (rs.getObject("Lieferdatum") != null) {
                        cal.setTimeInMillis(rs.getTimestamp("Lieferdatum").getTime());
                        sql = "UPDATE " + DBKernel.delimitL("Lieferungen") + " SET " + DBKernel.delimitL("dd_day") + "="
                                + (cal.get(Calendar.HOUR_OF_DAY) == 12 ? "NULL" : cal.get(Calendar.DAY_OF_MONTH)) + "," + DBKernel.delimitL("dd_month") + "="
                                + (cal.get(Calendar.HOUR_OF_DAY) == 12 && cal.get(Calendar.MONTH) == 0 ? "NULL" : cal.get(Calendar.MONTH) + 1) + "," + DBKernel.delimitL("dd_year")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 3 hrs to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 368..375
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 376..383

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 210.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                    if (rs.getObject("Herstellungsdatum") != null) {
                        cal.setTimeInMillis(rs.getTimestamp("Herstellungsdatum").getTime());
                        sql = "UPDATE " + DBKernel.delimitL("Chargen") + " SET " + DBKernel.delimitL("pd_day") + "="
                                + (cal.get(Calendar.HOUR_OF_DAY) == 12 ? "NULL" : cal.get(Calendar.DAY_OF_MONTH)) + "," + DBKernel.delimitL("pd_month") + "="
                                + (cal.get(Calendar.HOUR_OF_DAY) == 12 && cal.get(Calendar.MONTH) == 0 ? "NULL" : cal.get(Calendar.MONTH) + 1) + "," + DBKernel.delimitL("pd_year")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 3 hrs to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 368..375
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 391..398

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 210.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public static void check4Updates_174_175() {
        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelPrimView") + ";", false);
        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelSecView") + ";", false);
        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("ParamView") + ";", false);
        new SQLScriptImporter().doImport("/org/hsh/bfr/db/res/001_ParamVarView_175.sql", null, false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 1 other location - About 1 hr to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 151..158

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 105.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public static void check4Updates_182_183() {
        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelPrimView") + ";", false);
        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelSecView") + ";", false);
        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("ParamView") + ";", false);
        new SQLScriptImporter().doImport("/org/hsh/bfr/db/res/001_ParamVarView_183.sql", null, false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 1 other location - About 1 hr to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 480..487

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 105.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    public static void check4Updates_177_178() {
        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ALTER COLUMN " + DBKernel.delimitL("Explanation_EndChain") + " VARCHAR(16383)", false);
        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ALTER COLUMN " + DBKernel.delimitL("Contact_Questions_Remarks") + " VARCHAR(16383)", false);
    }
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 1 other location - About 1 hr to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBTablesNew.java on lines 88..91

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    public static void check4Updates_178_179() {
        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelPrimView") + ";", false);
        DBKernel.sendRequest("DROP VIEW IF EXISTS " + DBKernel.delimitL("EstModelSecView") + ";", false);
        new SQLScriptImporter().doImport("/org/hsh/bfr/db/res/002_EstModelPrimView_179.sql", null, false);
        new SQLScriptImporter().doImport("/org/hsh/bfr/db/res/002_EstModelSecView_179.sql", null, false);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 1 other location - About 1 hr to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBTablesNew.java on lines 92..97

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 69.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

            DBKernel.sendRequest(
                    "INSERT INTO " + DBKernel.delimitL("Einheiten") + " (" + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Einheit") + "," + DBKernel.delimitL("Beschreibung")
                            + ") VALUES (44,'°Bé','Grad Baumé')", false); // 31 -> 44
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 50 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 610..612
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 613..615

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

            DBKernel.sendRequest(
                    "INSERT INTO " + DBKernel.delimitL("Einheiten") + " (" + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Einheit") + "," + DBKernel.delimitL("Beschreibung")
                            + ") VALUES (46,'U/min','Umdrehungen pro Minute')", false); // 32 -> 46
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 50 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 607..609
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 613..615

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

            DBKernel.sendRequest(
                    "INSERT INTO " + DBKernel.delimitL("Einheiten") + " (" + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Einheit") + "," + DBKernel.delimitL("Beschreibung")
                            + ") VALUES (70,'mm','Millimeter')", false); // 35 -> 70
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 50 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 607..609
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 610..612

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Open

            DBKernel.sendRequest("UPDATE " + DBKernel.delimitL("Prozessdaten_Sonstiges") + " SET " + DBKernel.delimitL("Einheit") + "=31 WHERE " + DBKernel.delimitL("Einheit")
                    + "=33", false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 4 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 617..618
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 620..621
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 623..624
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 629..630

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Open

            DBKernel.sendRequest("UPDATE " + DBKernel.delimitL("Prozessdaten_Sonstiges") + " SET " + DBKernel.delimitL("Einheit") + "=70 WHERE " + DBKernel.delimitL("Einheit")
                    + "=35", false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 4 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 620..621
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 623..624
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 626..627
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 629..630

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Open

            DBKernel.sendRequest("UPDATE " + DBKernel.delimitL("Prozessdaten_Sonstiges") + " SET " + DBKernel.delimitL("Einheit") + "=44 WHERE " + DBKernel.delimitL("Einheit")
                    + "=31", false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 4 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 617..618
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 620..621
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 626..627
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 629..630

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Open

            DBKernel.sendRequest("UPDATE " + DBKernel.delimitL("Prozessdaten_Sonstiges") + " SET " + DBKernel.delimitL("Einheit") + "=35 WHERE " + DBKernel.delimitL("Einheit")
                    + "=34", false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 4 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 617..618
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 620..621
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 623..624
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 626..627

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Open

            DBKernel.sendRequest("UPDATE " + DBKernel.delimitL("Prozessdaten_Sonstiges") + " SET " + DBKernel.delimitL("Einheit") + "=46 WHERE " + DBKernel.delimitL("Einheit")
                    + "=32", false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 4 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 617..618
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 623..624
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 626..627
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 629..630

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Postfach") != null ? DBKernel.delimitL("Postfach") + "='" + rs.getString("Postfach").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("PLZ") != null ? DBKernel.delimitL("PLZ") + "='" + rs.getString("PLZ").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Ansprechpartner") != null ? DBKernel.delimitL("Ansprechpartner") + "='" + rs.getString("Ansprechpartner").replace("'", "''") + "',"
                                    : "") + (rs.getObject("Telefon") != null ? DBKernel.delimitL("Telefon") + "='" + rs.getString("Telefon").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Fax") != null ? DBKernel.delimitL("Fax") + "='" + rs.getString("Fax").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Webseite") != null ? DBKernel.delimitL("Webseite") + "='" + rs.getString("Webseite").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Land") != null ? DBKernel.delimitL("Land") + "='" + rs.getString("Land").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Name") != null ? DBKernel.delimitL("Name") + "='" + rs.getString("Name").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Hausnummer") != null ? DBKernel.delimitL("Hausnummer") + "='" + rs.getString("Hausnummer").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                                    : "") + (rs.getObject("Telefon") != null ? DBKernel.delimitL("Telefon") + "='" + rs.getString("Telefon").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Strasse") != null ? DBKernel.delimitL("Strasse") + "='" + rs.getString("Strasse").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Ort") != null ? DBKernel.delimitL("Ort") + "='" + rs.getString("Ort").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("EMail") != null ? DBKernel.delimitL("EMail") + "='" + rs.getString("EMail").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 13 locations. Consider refactoring.
Open

                            + (rs.getObject("Bundesland") != null ? DBKernel.delimitL("Bundesland") + "='" + rs.getString("Bundesland").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

                String sql = "UPDATE " + DBKernel.delimitL("ChangeLog") + " SET " + DBKernel.delimitL("Alteintrag") + " = ? WHERE " + DBKernel.delimitL("ID") + "=?";
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 1 other location - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/DBKernel.java on lines 1877..1877

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 44.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("pd_day") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("MHD_day") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Latitude") + " DOUBLE BEFORE " + DBKernel.delimitL("Ansprechpartner"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Produktkatalog") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("MHD_month") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("pd_year") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("OriginCountry") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kommentar"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("District") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Bundesland"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("MHD_year") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Versuchsbedingungen") + " ADD COLUMN " + DBKernel.delimitL("ExperimentalDetails") + " VARCHAR(16383) BEFORE "
                + DBKernel.delimitL("Nachweisverfahren"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("MicrobioSample") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kommentar"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Longitude") + " DOUBLE BEFORE " + DBKernel.delimitL("Ansprechpartner"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("pd_month") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("EndChain") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kommentar"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("CasePriority") + " DOUBLE BEFORE " + DBKernel.delimitL("FallErfuellt"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("Contact_Questions_Remarks") + " VARCHAR(1023) BEFORE "
                + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Hausnummer") + " VARCHAR(10) BEFORE " + DBKernel.delimitL("Kontaktadresse"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Postfach") + " VARCHAR(20) BEFORE " + DBKernel.delimitL("Kontaktadresse"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Fax") + " VARCHAR(30) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("Explanation_EndChain") + " VARCHAR(255) BEFORE "
                        + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("numPU") + " DOUBLE BEFORE " + DBKernel.delimitL("Unitmenge"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Bundesland") + " VARCHAR(30) BEFORE " + DBKernel.delimitL("Kontaktadresse"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Produktkatalog") + " INTEGER BEFORE " + DBKernel.delimitL("Name"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("dd_year") + " INTEGER BEFORE " + DBKernel.delimitL("Unitmenge"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Land") + " VARCHAR(100) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Modellkatalog") + " ADD COLUMN " + DBKernel.delimitL("visible") + " BOOLEAN BEFORE " + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest("UPDATE " + DBKernel.delimitL("Station") + " SET " + DBKernel.delimitL("CasePriority") + "=1 WHERE " + DBKernel.delimitL("FallErfuellt"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Name") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Telefon") + " VARCHAR(30) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("Further_Traceback") + " VARCHAR(255) BEFORE "
                        + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("ModellkatalogParameter") + " ADD COLUMN " + DBKernel.delimitL("optimalValue") + " DOUBLE BEFORE "
                        + DBKernel.delimitL("Einheit"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("dd_day") + " INTEGER BEFORE " + DBKernel.delimitL("Unitmenge"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Ort") + " VARCHAR(60) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Webseite") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kontaktadresse"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("dd_month") + " INTEGER BEFORE " + DBKernel.delimitL("Unitmenge"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Strasse") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Kontaktadresse"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("EMail") + " VARCHAR(100) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Lieferungen") + " ADD COLUMN " + DBKernel.delimitL("typePU") + " VARCHAR(255) BEFORE " + DBKernel.delimitL("Unitmenge"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("PLZ") + " VARCHAR(10) BEFORE " + DBKernel.delimitL("Kontaktadresse"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 43 locations. Consider refactoring.
Open

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Ansprechpartner") + " VARCHAR(100) BEFORE "
                        + DBKernel.delimitL("Kontaktadresse"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 42.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                                Double kvmin = rs2.getDouble("K_min") * Math.pow(10, rs2.getObject("K_min_exp") == null ? 0 : rs2.getDouble("K_min_exp"));                                
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 67..67
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 75..75

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 40.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                            Double tv = rs2.getDouble("T_Wert") * Math.pow(10, rs2.getObject("T_Exponent") == null ? 0 : rs2.getDouble("T_Exponent"));
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 74..74
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 75..75

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 40.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                                Double kvmax = rs2.getDouble("K_max") * Math.pow(10, rs2.getObject("K_max_exp") == null ? 0 : rs2.getDouble("K_max_exp"));    
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 2 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 67..67
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 74..74

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 40.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Kommentar") + " FROM " + DBKernel.delimitL("Lieferungen");
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 1 other location - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 387..387

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 40.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            sql = "SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Lieferdatum") + " FROM " + DBKernel.delimitL("Lieferungen");
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 1 other location - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 321..321

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 40.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

There are no issues that match your filters.

Category
Status