Showing 6,856 of 14,752 total issues
Method button12ActionPerformed
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private void button12ActionPerformed(ActionEvent e) {
if (myDBTable1.getActualTable().isHasForm()) {
if (isFormVisible()) {
myDBForm1.save();
try {
- Read upRead up
- Create a ticketCreate a ticket
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 stopCellEditing
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public boolean stopCellEditing() {
//System.out.println("stopCellEditing");
ChangeEvent ce = new ChangeEvent(this);
for (int i=listeners.size()-1; i>=0; i--) {
listeners.elementAt(i).editingStopped(ce);
- Read upRead up
- Create a ticketCreate a ticket
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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public Object get(KeyStroke keyStroke) {
if (disableKeys != null) {
for(int i=0; i<disableKeys.length; i++) {
if(keyStroke.equals(disableKeys[i])) {
return null;
- Read upRead up
- Create a ticketCreate a ticket
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 loopInternal
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private void loopInternal(Vector<Integer> vv, int row, TableModel tm, String findString) {
for (int col = 0; col < myTable.getFieldNames().length; col++) {
if (myTable.getFieldNames()[col].equals(columnName)) {
Object o = tm.getValueAt(row, col + 2);
if (o != null && o.toString().equals(findString)) { // sonst Fehler in z.B. Methoden bei der Suchfunktion
- Read upRead up
- Create a ticketCreate a ticket
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 getAdd2Select
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private String getAdd2Select(String fieldName, Integer fi) {
if (fi == null) return "'" + fieldName + "'";
String result = "";
boolean isDbl = this.getFieldTypes()[fi].equals("DOUBLE");
LinkedHashMap<Object, String> hash = this.getHash(fieldName);
- Read upRead up
- Create a ticketCreate a ticket
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 getInsertSql
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private String getInsertSql() {
String result = "";
String qms = "";
String columnName;
for (int i = 0; i < fieldNames.length; i++) {
- Read upRead up
- Create a ticketCreate a ticket
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 getHash
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private LinkedHashMap<Object, String> getHash(String fieldName) {
if (fieldName != null && this.getForeignHashs() != null) {
String[] fn = this.getFieldNames();
for (int i = 0; i < fn.length; i++) {
if (fieldName.equals(fn[i])) {
- Read upRead up
- Create a ticketCreate a ticket
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 getForeignTable
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private MyTable getForeignTable(String fieldName) {
if (fieldName != null && this != null && this.getForeignFields() != null) {
String[] fn = this.getFieldNames();
for (int i = 0; i < fn.length; i++) {
if (fieldName.equals(fn[i])) {
- Read upRead up
- Create a ticketCreate a ticket
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 getForeignTable
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private String getForeignTable(String fieldName, MyTable myT) {
String result = null;
String[] tFieldNames = myT.getFieldNames();
MyTable[] myFs = myT.getForeignFields();
if (myFs == null) return null;
- Read upRead up
- Create a ticketCreate a ticket
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 getMetadata
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public String getMetadata() {
String result = "-------------- " + tableName + " --------------\n";
for (int i = 0; i < fieldNames.length; i++) {
result += fieldNames[i] + "\t" + (fieldComments[i] == null ? fieldNames[i] : fieldComments[i]) + "\t" + fieldTypes[i] + "\n";
}
- Read upRead up
- Create a ticketCreate a ticket
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 getFieldIndex
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public Integer getFieldIndex(String fieldName) {
if (fieldName != null && this.getFieldNames() != null) {
String[] fn = this.getFieldNames();
for (int i = 0; i < fn.length; i++) {
if (fieldName.equals(fn[i])) {
- Read upRead up
- Create a ticketCreate a ticket
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 getDefaultSAPass
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private static String getDefaultSAPass(boolean other) {
String pass = "";
// if (debug) return "";
if (other) pass = isKNIME || isKrise ? "de6!§5ddy" : "";
else pass = isKNIME || isKrise ? "" : "de6!§5ddy";
- Read upRead up
- Create a ticketCreate a ticket
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 go4Dateispeicher
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private void go4Dateispeicher(final Statement anfrage) {
try {
String sql = "SELECT * FROM " + DBKernel.delimitL("DateiSpeicher") + " ORDER BY " + DBKernel.delimitL("Zeitstempel") + " ASC";
ResultSet rs = DBKernel.getResultSet(anfrage, sql, false);
if (rs.first()) {
- Read upRead up
- Create a ticketCreate a ticket
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 deleteOldFiles
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private static void deleteOldFiles(String path, String dbKennung) {
java.io.File f = new java.io.File(path);
String fileKennung = dbKennung + ".";
java.io.File[] files = f.listFiles();
if (files != null) {
- Read upRead up
- Create a ticketCreate a ticket
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 getDefaultSA
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private static String getDefaultSA(boolean other) {
String sa = "";
// if (debug) return "SA";
if (other) sa = isKNIME || isKrise ? "defad" : "SA";
else sa = isKNIME || isKrise ? "SA" : "defad";
- Read upRead up
- Create a ticketCreate a ticket
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 execute
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
FskPortObject outObj;
// If there is an input model
- Read upRead up
- Create a ticketCreate a ticket
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 deleteOldFiles
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private void deleteOldFiles(String path) {
java.io.File f = new java.io.File(path);
String fileKennung = DBKernel.dbKennung + ".";
java.io.File[] files = f.listFiles();
if (files != null) {
- Read upRead up
- Create a ticketCreate a ticket
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 isAdmin
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
boolean isAdmin() {
if (dbUsername == null) return false;
if (conn == null) {
if (dbUsername.equals(getSA())) return true;
}
- Read upRead up
- Create a ticketCreate a ticket
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 getJSONType
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
static JSTypes getJSONType(final DataType colType) {
JSTypes type;
if (colType.isCompatible(SvgValue.class)) {
type = JSTypes.SVG;
} else if (colType.isCompatible(PNGImageValue.class)) {
- Read upRead up
- Create a ticketCreate a ticket
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 retrieveGeneralInformation
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
static GeneralInformation retrieveGeneralInformation(String[][] values) {
GeneralInformation generalInformation = MetadataFactory.eINSTANCE.createGeneralInformation();
String name = values[RakipRow.GENERAL_INFORMATION__NAME.num][RakipColumn.I.ordinal()];
- Read upRead up
- Create a ticketCreate a ticket
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"