Showing 36 of 231 total issues
ObjectFactory
has 244 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlRegistry
public class ObjectFactory {
private final static QName _ErrorResponse_QNAME = new QName("AnetApi/xml/v1/schema/AnetApiSchema.xsd", "ErrorResponse");
TransactionDetailsType
has 104 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "transactionDetailsType", propOrder = {
"transId",
"refTransId",
"splitTenderId",
File ObjectFactory.java
has 744 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
TransactionRequestType
has 72 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "transactionRequestType", propOrder = {
"transactionType",
"amount",
"currencyCode",
File TransactionDetailsType.java
has 483 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
File TransactionResponse.java
has 479 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
LineItemType
has 52 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "lineItemType", propOrder = {
"itemId",
"name",
"description",
TransactionResponse
has 50 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "transactionResponse", propOrder = {
"responseCode",
"rawResponseCode",
"authCode",
BatchStatisticType
has 42 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "batchStatisticType", propOrder = {
"accountType",
"chargeAmount",
"chargeCount",
OrderType
has 36 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "orderType", propOrder = {
"invoiceNumber",
"description",
"discountAmount",
TransactionSummaryType
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "transactionSummaryType", propOrder = {
"transId",
"submitTimeUTC",
"submitTimeLocal",
Method create
has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public static synchronized <T extends Serializable> T create(String xml, Class<T> classType) throws JAXBException, ParserConfigurationException, SAXException
{
T entity = null;
- Read upRead up
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 call
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
/**
* Makes a http call, using the proxy if requested, and returns apiresponse
* with error code set appropriately
* @return ANetApiResponse successful or failed response
- Read upRead up
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
SubscriptionDetail
has 32 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SubscriptionDetail", propOrder = {
"id",
"name",
"status",
File TransactionRequestType.java
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
ApiOperationBase
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public abstract class ApiOperationBase<Q extends ANetApiRequest, S extends ANetApiResponse> implements IApiOperation<Q, S> {
protected static Logger logger = LogManager.getLogger(ApiOperationBase.class);
private static Environment environment = null;
GetMerchantDetailsResponse
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"isTestMode",
"processors",
"merchantName",
SubMerchantType
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "subMerchantType", propOrder = {
"identifier",
"doingBusinessAs",
"paymentServiceProviderName",
ProfileTransOrderType
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "profileTransOrderType", propOrder = {
"customerProfileId",
"customerPaymentProfileId",
"customerShippingAddressId",
Method call
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
/**
* Makes a http call, using the proxy if requested, and returns apiresponse
* with error code set appropriately
* @return ANetApiResponse successful or failed response