Skip to content

Commit

Permalink
CU-86b14j4e0_check-code-security-reports-at-GitHub-for-all-repos
Browse files Browse the repository at this point in the history
  • Loading branch information
ptorres-prowide committed Sep 16, 2024
1 parent 4ed9e60 commit 89ac5b7
Show file tree
Hide file tree
Showing 697 changed files with 5,061 additions and 3,544 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dependencies {
compileOnly 'javax.xml.bind:jaxb-api:2.3.1'
compileOnly 'javax.validation:validation-api:2.0.1.Final'

testImplementation 'javax.validation:validation-api:2.0.1.Final'
testImplementation 'javax.persistence:javax.persistence-api:2.2'
testImplementation('org.junit.jupiter:junit-jupiter:5.8.2')
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.22.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 101");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 102");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 103");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 104");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 105");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 106");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 107");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 108");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,9 @@ public String getValueDisplay(int component, Locale locale) {
return f.format(cal.getTime());
}
}
if (component == 3) {
//default format (as is)
return getComponent(3);
}
return null;
// This is the last component, return directly without `if`
//default format (as is)
return getComponent(3);
}

/**
Expand Down Expand Up @@ -571,6 +569,7 @@ public Field109 setMIR(String component3) {
*
* @return the list of converted components (a Calendar object or null)
*/
@Override
public List<Calendar> dates() {
return DateResolver.dates(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 110");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 111");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 113");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 114");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 115");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 116");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 117");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 118");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public String getValueDisplay(int component, Locale locale) {
if (component < 1 || component > 1) {
throw new IllegalArgumentException("invalid component number " + component + " for field 119");
}
if (component == 1) {
//default format (as is)
return getComponent(1);
}
return null;
//default format (as is)
return getComponent(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,9 @@ public String getValueDisplay(int component, Locale locale) {
//default format (as is)
return getComponent(1);
}
if (component == 2) {
//default format (as is)
return getComponent(2);
}
return null;
// This is the last component, return directly without `if`
//default format (as is)
return getComponent(2);
}

/**
Expand Down Expand Up @@ -510,26 +508,32 @@ public Field11A setCurrency(java.util.Currency component2) {
}


@Override
public List<String> currencyStrings() {
return CurrencyResolver.currencyStrings(this);
}

@Override
public List<Currency> currencies() {
return CurrencyResolver.currencies(this);
}

@Override
public Currency currency() {
return CurrencyResolver.resolveCurrency(this);
}

@Override
public String currencyString() {
return CurrencyResolver.resolveCurrencyString(this);
}

@Override
public void initializeCurrencies(String cur) {
CurrencyResolver.resolveSetCurrency(this, cur);
}

@Override
public void initializeCurrencies(Currency cur) {
CurrencyResolver.resolveSetCurrency(this, cur);
}
Expand All @@ -541,6 +545,7 @@ public void initializeCurrencies(Currency cur) {
*
* @return DSS component value or null if the DSS is not set or not available for this field.
*/
@Override
public String getDSS() {
return null;
}
Expand All @@ -551,6 +556,7 @@ public String getDSS() {
* @see #getDSS()
* @return true if DSS is present, false otherwise.
*/
@Override
public boolean isDSSPresent() {
return false;
}
Expand All @@ -565,6 +571,7 @@ public boolean isDSSPresent() {
*
* @return for generic fields returns the value of the conditional qualifier or null if not set or not applicable for this field.
*/
@Override
public String getConditionalQualifier() {
return getComponent(CONDITIONAL_QUALIFIER);
}
Expand Down
Loading

0 comments on commit 89ac5b7

Please sign in to comment.