silentbalanceyh/vertx-zero

View on GitHub

Showing 9,050 of 9,050 total issues

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

    Cert<PemKeyCertOptions> SNI_PEM = () -> new PemKeyCertOptions()
        .addKeyPath("tls/server-key.pem").addCertPath("tls/server-cert.pem")
        .addKeyPath("tls/host1-key.pem").addCertPath("tls/host1-cert.pem")
        .addKeyPath("tls/host2-key.pem").addCertPath("tls/host2-cert.pem")
        .addKeyPath("tls/host3-key.pem").addCertPath("tls/host3-cert.pem")
vertx-pin/zero-ke/src/main/java/io/vertx/mod/ke/cv/KeIpc.java on lines 65..77

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 50.

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

        ids.stream().map(id -> {
            final Condition condition = this.analyzer.conditionId(id);
            return this.context().delete(this.analyzer.table()).where(condition);
        }).forEach(batchOps::add);
vertx-gaia/vertx-up/src/main/jib/io/vertx/up/uca/jooq/ActionDelete.java on lines 57..60

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 50.

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

        return "ProfileGroup{" +
            "groupId='" + this.groupId + '\'' +
            ", priority=" + this.priority +
            ", role=" + this.role +
            ", reference='" + this.reference + '\'' +
vertx-gaia/vertx-co/src/main/java/io/vertx/up/atom/sch/KTimer.java on lines 125..130

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 50.

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

        return "KReference{" +
            "sourceReference=" + this.sourceReference +
            ", name='" + this.name + '\'' +
            ", source='" + this.source + '\'' +
            ", sourceField='" + this.sourceField + '\'' +
vertx-gaia/vertx-up/src/main/java/io/vertx/up/atom/worker/Mission.java on lines 372..376

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 50.

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

    static Future<JsonObject> mockAsyncJ(final Integration integration, final String file, final Supplier<Future<JsonObject>> supplier) {
        return mock(integration, () -> {
            final JsonObject mockData = Ut.ioJObject(file);
            final JsonObject normalized = Ut.valueJObject(mockData);
            return Ux.future(normalized);
vertx-pin/zero-vie/src/main/java/io/mature/extension/refine/OxMocker.java on lines 106..112

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 50.

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

                .compose(combined -> {
                    /* 元素结构:JsonArray
                      [{
                          "current" : 100001,
                          "identifier" : "ci.middleware.tuxedo",
vertx-pin/zero-vie/src/main/migrate/io/mature/extension/migration/restore/MetaReport.java on lines 66..70

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 50.

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

    public static Future<List<XLog>> pendingBatch(final Class<?> clazz, final DataAtom atom, final JsonArray data) {
        final List<XLog> logs = KoData.pending(clazz, atom, data);
        LOG.Hub.warn(Ko.class, "数据未推送:size = {0}", String.valueOf(logs.size()));
        return KoTool.logAsync(logs);
    }
vertx-pin/zero-vie/src/main/jib/io/mature/extension/uca/log/Ko.java on lines 34..38
vertx-pin/zero-vie/src/main/jib/io/mature/extension/uca/log/Ko.java on lines 72..76

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 50.

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

package io.vertx.mod.ambient.uca.darkly;

import cn.vertxup.ambient.domain.tables.pojos.XActivityRule;
import io.vertx.core.Future;
import io.vertx.core.json.JsonObject;
vertx-pin/zero-ambient/src/main/modulat/io/vertx/mod/ambient/uca/darkly/TubeApprove.java on lines 1..20

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 50.

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

                } else {
                    /*
                     * Double check to avoid issue:
                     * java.sql.SQLIntegrityConstraintViolationException: Duplicate entry 'xxx' for key 'PRIMARY'
                     */
vertx-gaia/vertx-up/src/main/web/io/vertx/up/boot/di/DiPlugin.java on lines 66..80

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 50.

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 9 locations. Consider refactoring.
Open

    private void handleAck(final Frame frame, final StompServerConnection connection) {
        final Handler<ServerFrame> handler;
        synchronized (this) {
            handler = this.ackHandler;
        }
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 226..234
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 236..244
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 246..254
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 256..264
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 266..274
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 276..284
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 286..295
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 323..331

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 49.

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 9 locations. Consider refactoring.
Open

    private void handleNack(final Frame frame, final StompServerConnection connection) {
        final Handler<ServerFrame> handler;
        synchronized (this) {
            handler = this.nackHandler;
        }
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 216..224
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 236..244
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 246..254
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 256..264
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 266..274
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 276..284
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 286..295
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 323..331

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 49.

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 9 locations. Consider refactoring.
Open

    private void handleAbort(final Frame frame, final StompServerConnection connection) {
        final Handler<ServerFrame> handler;
        synchronized (this) {
            handler = this.abortHandler;
        }
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 216..224
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 226..234
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 236..244
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 256..264
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 266..274
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 276..284
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 286..295
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 323..331

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 49.

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

            .afterAsync(response, matrix).compose(processed -> {

                /* Projection */
                DataOut.dwarfRecord(processed, matrix);

vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/acl/region/CommonCosmo.java on lines 21..34

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 49.

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 9 locations. Consider refactoring.
Open

    private void handleCommit(final Frame frame, final StompServerConnection connection) {
        final Handler<ServerFrame> handler;
        synchronized (this) {
            handler = this.commitHandler;
        }
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 216..224
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 226..234
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 236..244
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 246..254
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 266..274
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 276..284
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 286..295
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 323..331

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 49.

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 9 locations. Consider refactoring.
Open

    private void handleUnsubscribe(final Frame frame, final StompServerConnection connection) {
        final Handler<ServerFrame> handler;
        synchronized (this) {
            handler = this.unsubscribeHandler;
        }
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 216..224
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 226..234
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 236..244
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 246..254
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 256..264
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 266..274
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 286..295
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 323..331

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 49.

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 9 locations. Consider refactoring.
Open

    private void handleBegin(final Frame frame, final StompServerConnection connection) {
        final Handler<ServerFrame> handler;
        synchronized (this) {
            handler = this.beginHandler;
        }
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 216..224
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 226..234
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 246..254
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 256..264
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 266..274
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 276..284
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 286..295
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 323..331

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 49.

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

    private Batch prepareBatch(final String table, final List<DataMatrix> matrices) {
        final List<Query> batchOps = new ArrayList<>();
        matrices.stream().map(matrix -> this.stepDelete(table, matrix)).forEach(batchOps::add);
        return this.context.batch(batchOps);
    }
vertx-pin/zero-atom/src/main/modeler/io/modello/dynamic/modular/jooq/JQInsert.java on lines 47..51
vertx-pin/zero-atom/src/main/modeler/io/modello/dynamic/modular/jooq/JQUpdate.java on lines 40..44

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 49.

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 9 locations. Consider refactoring.
Open

    private void handleSubscribe(final Frame frame, final StompServerConnection connection) {
        final Handler<ServerFrame> handler;
        synchronized (this) {
            handler = this.subscribeHandler;
        }
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 216..224
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 226..234
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 236..244
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 246..254
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 256..264
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 276..284
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 286..295
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 323..331

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 49.

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 9 locations. Consider refactoring.
Open

    private void handleDisconnect(final Frame frame, final StompServerConnection connection) {
        final Handler<ServerFrame> handler;
        synchronized (this) {
            handler = this.disconnectHandler;
        }
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 216..224
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 226..234
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 236..244
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 246..254
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 256..264
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 266..274
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 276..284
vertx-ifx/zero-ifx-stomp/src/main/java/io/vertx/up/plugin/stomp/socket/ServerStompHandler.java on lines 286..295

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 49.

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

    @Override
    public Future<Envelop> after(final Envelop response, final JsonObject matrix) {
        /* Projection */
        DataOut.dwarfRecord(response, matrix);
        /* Rows */
vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/acl/region/SeekCosmo.java on lines 72..87

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 49.

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

Severity
Category
Status
Source
Language