LEMUBIT/PayantAndroid

View on GitHub

Showing 12 of 61 total issues

PayantApiService has 25 methods (exceeds 20 allowed). Consider refactoring.
Open

public interface PayantApiService {

    /**
     * Save new Client information found in {@code PayantClient}.
     *

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

        public static void editProduct(String productID, PayantProduct payantProduct, final OnEditPayantProductListener onEditPayantProductListener) {
            Call<PayantAddProductInfo> payantEditProductInfoCall = payantApiService.editProduct(Headers.contentType(), Headers.authorization(), productID, payantProduct);
            payantEditProductInfoCall.enqueue(new Callback<PayantAddProductInfo>() {
                @Override
                public void onResponse(Call<PayantAddProductInfo> call, Response<PayantAddProductInfo> response) {
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 94..113
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 89..106
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 165..182
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 191..208
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 217..234

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

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

    package com.lemubit.lemuel.androidpayant.operations.product.networkResponse;
    
    import com.lemubit.lemuel.androidpayant.operations.product.networkResponse.model.ProductData;
    import com.lemubit.lemuel.androidpayant.utils.StatusString;
    
    
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/networkResponse/PayantClientInfo.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/networkResponse/PayantInvoiceHistoryInfo.java on lines 1..41
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/networkResponse/PayantInvoiceInfo.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/networkResponse/PayantPaymentHistoryInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/networkResponse/PayantPaymentInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/networkResponse/PayantProductInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/networkResponse/PayantProductInfoList.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletInfoList.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletWithdrawBulkInfo.java on lines 1..35
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletWithdrawInfo.java on lines 1..38

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

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

    package com.lemubit.lemuel.androidpayant.operations.product.networkResponse;
    
    import com.lemubit.lemuel.androidpayant.operations.product.networkResponse.model.ProductDataWithDeleteDate;
    import com.lemubit.lemuel.androidpayant.utils.StatusString;
    
    
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/networkResponse/PayantClientInfo.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/networkResponse/PayantInvoiceHistoryInfo.java on lines 1..41
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/networkResponse/PayantInvoiceInfo.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/networkResponse/PayantPaymentHistoryInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/networkResponse/PayantPaymentInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/networkResponse/PayantAddProductInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/networkResponse/PayantProductInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletInfoList.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletWithdrawBulkInfo.java on lines 1..35
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletWithdrawInfo.java on lines 1..38

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

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

    package com.lemubit.lemuel.androidpayant.operations.product.networkResponse;
    
    import com.lemubit.lemuel.androidpayant.operations.product.networkResponse.model.ProductDataWithDeleteDate;
    import com.lemubit.lemuel.androidpayant.utils.StatusString;
    
    
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/networkResponse/PayantClientInfo.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/networkResponse/PayantInvoiceHistoryInfo.java on lines 1..41
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/networkResponse/PayantInvoiceInfo.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/networkResponse/PayantPaymentHistoryInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/networkResponse/PayantPaymentInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/networkResponse/PayantAddProductInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/networkResponse/PayantProductInfoList.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletInfo.java on lines 1..38
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletInfoList.java on lines 1..40
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletWithdrawBulkInfo.java on lines 1..35
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/networkResponse/PayantWalletWithdrawInfo.java on lines 1..38

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

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

        public static void getProduct(String productID, final OnGetPayantProductListener onGetPayantProductListener) {
            Call<PayantProductInfo> payantAddProductInfoWIthDeleteDateCall = payantApiService.getProduct(Headers.contentType(), Headers.authorization(), productID);
    
            payantAddProductInfoWIthDeleteDateCall.enqueue(new Callback<PayantProductInfo>() {
                @Override
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 32..52
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 62..83
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 122..140
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 33..53
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 63..81
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 90..108
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 116..133
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 141..159
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 28..46
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 54..72
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 81..100
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/PayantProductManager.java on lines 27..44
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/PayantProductManager.java on lines 117..136
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 35..53
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 61..80
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 139..156

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

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

        public static void addPayantProduct(PayantProduct payantProduct, final OnProductAddedListener onProductAddedListener) {
            Call<PayantAddProductInfo> payantAddProductInfoCall = payantApiService.addNewProduct(Headers.contentType(), Headers.authorization(), payantProduct);
            payantAddProductInfoCall.enqueue(new Callback<PayantAddProductInfo>() {
                @Override
                public void onResponse(Call<PayantAddProductInfo> call, Response<PayantAddProductInfo> response) {
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 32..52
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 62..83
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 122..140
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 33..53
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 63..81
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 90..108
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 116..133
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 141..159
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 28..46
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 54..72
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 81..100
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/PayantProductManager.java on lines 50..68
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/PayantProductManager.java on lines 117..136
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 35..53
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 61..80
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 139..156

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

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

        public static void deleteProduct(String productID, final OnDeletePayantProductListener onDeletePayantProductListener) {
            Call<OperationStatus> operationStatusCall = payantApiService.deleteProduct(Headers.contentType(), Headers.authorization(), productID);
    
            operationStatusCall.enqueue(new Callback<OperationStatus>() {
                @Override
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 32..52
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 62..83
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/clients/PayantClientManager.java on lines 122..140
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 33..53
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 63..81
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 90..108
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 116..133
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/PayantInvoiceManager.java on lines 141..159
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 28..46
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 54..72
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/payments/PayantPaymentManager.java on lines 81..100
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/PayantProductManager.java on lines 27..44
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/PayantProductManager.java on lines 50..68
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 35..53
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 61..80
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 139..156

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

    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 getProducts(final OnGetAllPayantProductsListener onGetAllPayantProductsListener) {
            Call<PayantProductInfoList> payantGetAllProductsInfoCall = payantApiService.getAllProduct(Headers.contentType(), Headers.authorization());
    
            payantGetAllProductsInfoCall.enqueue(new Callback<PayantProductInfoList>() {
                @Override
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/wallets/PayantWalletManager.java on lines 113..131

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

    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 getPayantWalletList(final OnGetPayantWalletsListListener onGetPayantWalletsListListener) {
            Call<PayantWalletInfoList> payantWalletInfoListCall = payantApiService.getWallets(Headers.contentType(), Headers.authorization());
    
            payantWalletInfoListCall.enqueue(new Callback<PayantWalletInfoList>() {
                @Override
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/PayantProductManager.java on lines 97..115

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

    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 PayantInvoice(PayantClient client, String clientId, String dueDate, String feeBearer, List<PayantInvoiceItem> items) {
            this.client = client;
            this.client_id = clientId;
            this.due_date = dueDate;
            this.fee_bearer = feeBearer;
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/product/model/PayantProduct.java on lines 27..33

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

    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 PayantProduct(String name, String description, String unitCost, String type, String status) {
            this.name = name;
            this.description = description;
            this.unit_cost = unitCost;
            this.type = type;
    app/src/main/java/com/lemubit/lemuel/androidpayant/operations/invoices/model/PayantInvoice.java on lines 52..58

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

    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