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 17, 2024
1 parent 9260519 commit 5638ec1
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 336 deletions.
33 changes: 0 additions & 33 deletions src/main/java/com/prowidesoftware/swift/model/field/Field34D.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,32 +451,13 @@ public Field34D setComponent2(String component2) {
return this;
}

/**
* Set the component2 from a BigDecimal object.
* <br>
* Parses the BigDecimal into a SWIFT amount with truncated zero decimals and mandatory decimal separator.
* <ul>
* <li>Example: 1234.00 -&gt; 1234,</li>
* <li>Example: 1234 -&gt; 1234,</li>
* <li>Example: 1234.56 -&gt; 1234,56</li>
* </ul>
* @since 9.2.7
*
* @param component2 the BigDecimal with the Amount content to set
* @return the field object to enable build pattern
*/
public Field34D setComponent2(java.math.BigDecimal component2) {
setComponent(2, SwiftFormatUtils.getBigDecimal(component2));
return this;
}
/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10.0 becomes an Float)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34D setComponent2(java.lang.Number component2) {

Expand Down Expand Up @@ -508,27 +489,13 @@ public Field34D setAmount(String component2) {
return setComponent2(component2);
}

/**
* Set the Amount (component 2) from a BigDecimal object.
*
* @see #setComponent2(java.math.BigDecimal)
*
* @param component2 BigDecimal with the Amount content to set
* @return the field object to enable build pattern
* @since 9.2.7
*/
public Field34D setAmount(java.math.BigDecimal component2) {
return setComponent2(component2);
}

/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10 becomes an Integer)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34D setAmount(java.lang.Number component2) {
return setComponent2(component2);
Expand Down
33 changes: 0 additions & 33 deletions src/main/java/com/prowidesoftware/swift/model/field/Field34K.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,32 +451,13 @@ public Field34K setComponent2(String component2) {
return this;
}

/**
* Set the component2 from a BigDecimal object.
* <br>
* Parses the BigDecimal into a SWIFT amount with truncated zero decimals and mandatory decimal separator.
* <ul>
* <li>Example: 1234.00 -&gt; 1234,</li>
* <li>Example: 1234 -&gt; 1234,</li>
* <li>Example: 1234.56 -&gt; 1234,56</li>
* </ul>
* @since 9.2.7
*
* @param component2 the BigDecimal with the Amount content to set
* @return the field object to enable build pattern
*/
public Field34K setComponent2(java.math.BigDecimal component2) {
setComponent(2, SwiftFormatUtils.getBigDecimal(component2));
return this;
}
/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10.0 becomes an Float)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34K setComponent2(java.lang.Number component2) {

Expand Down Expand Up @@ -508,27 +489,13 @@ public Field34K setAmount(String component2) {
return setComponent2(component2);
}

/**
* Set the Amount (component 2) from a BigDecimal object.
*
* @see #setComponent2(java.math.BigDecimal)
*
* @param component2 BigDecimal with the Amount content to set
* @return the field object to enable build pattern
* @since 9.2.7
*/
public Field34K setAmount(java.math.BigDecimal component2) {
return setComponent2(component2);
}

/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10 becomes an Integer)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34K setAmount(java.lang.Number component2) {
return setComponent2(component2);
Expand Down
33 changes: 0 additions & 33 deletions src/main/java/com/prowidesoftware/swift/model/field/Field34L.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,32 +451,13 @@ public Field34L setComponent2(String component2) {
return this;
}

/**
* Set the component2 from a BigDecimal object.
* <br>
* Parses the BigDecimal into a SWIFT amount with truncated zero decimals and mandatory decimal separator.
* <ul>
* <li>Example: 1234.00 -&gt; 1234,</li>
* <li>Example: 1234 -&gt; 1234,</li>
* <li>Example: 1234.56 -&gt; 1234,56</li>
* </ul>
* @since 9.2.7
*
* @param component2 the BigDecimal with the Amount content to set
* @return the field object to enable build pattern
*/
public Field34L setComponent2(java.math.BigDecimal component2) {
setComponent(2, SwiftFormatUtils.getBigDecimal(component2));
return this;
}
/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10.0 becomes an Float)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34L setComponent2(java.lang.Number component2) {

Expand Down Expand Up @@ -508,27 +489,13 @@ public Field34L setAmount(String component2) {
return setComponent2(component2);
}

/**
* Set the Amount (component 2) from a BigDecimal object.
*
* @see #setComponent2(java.math.BigDecimal)
*
* @param component2 BigDecimal with the Amount content to set
* @return the field object to enable build pattern
* @since 9.2.7
*/
public Field34L setAmount(java.math.BigDecimal component2) {
return setComponent2(component2);
}

/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10 becomes an Integer)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34L setAmount(java.lang.Number component2) {
return setComponent2(component2);
Expand Down
33 changes: 0 additions & 33 deletions src/main/java/com/prowidesoftware/swift/model/field/Field34M.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,32 +451,13 @@ public Field34M setComponent2(String component2) {
return this;
}

/**
* Set the component2 from a BigDecimal object.
* <br>
* Parses the BigDecimal into a SWIFT amount with truncated zero decimals and mandatory decimal separator.
* <ul>
* <li>Example: 1234.00 -&gt; 1234,</li>
* <li>Example: 1234 -&gt; 1234,</li>
* <li>Example: 1234.56 -&gt; 1234,56</li>
* </ul>
* @since 9.2.7
*
* @param component2 the BigDecimal with the Amount content to set
* @return the field object to enable build pattern
*/
public Field34M setComponent2(java.math.BigDecimal component2) {
setComponent(2, SwiftFormatUtils.getBigDecimal(component2));
return this;
}
/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10.0 becomes an Float)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34M setComponent2(java.lang.Number component2) {

Expand Down Expand Up @@ -508,27 +489,13 @@ public Field34M setAmount(String component2) {
return setComponent2(component2);
}

/**
* Set the Amount (component 2) from a BigDecimal object.
*
* @see #setComponent2(java.math.BigDecimal)
*
* @param component2 BigDecimal with the Amount content to set
* @return the field object to enable build pattern
* @since 9.2.7
*/
public Field34M setAmount(java.math.BigDecimal component2) {
return setComponent2(component2);
}

/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10 becomes an Integer)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34M setAmount(java.lang.Number component2) {
return setComponent2(component2);
Expand Down
42 changes: 3 additions & 39 deletions src/main/java/com/prowidesoftware/swift/model/field/Field34S.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@
import com.google.gson.JsonParser;
import com.prowidesoftware.deprecation.ProwideDeprecated;
import com.prowidesoftware.deprecation.TargetYear;
import com.prowidesoftware.swift.model.*;
import com.prowidesoftware.swift.model.SwiftMessage;
import com.prowidesoftware.swift.model.SwiftTagListBlock;
import com.prowidesoftware.swift.model.Tag;
import com.prowidesoftware.swift.utils.SwiftFormatUtils;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.*;
import org.apache.commons.lang3.StringUtils;

/**
Expand Down Expand Up @@ -451,32 +448,13 @@ public Field34S setComponent2(String component2) {
return this;
}

/**
* Set the component2 from a BigDecimal object.
* <br>
* Parses the BigDecimal into a SWIFT amount with truncated zero decimals and mandatory decimal separator.
* <ul>
* <li>Example: 1234.00 -&gt; 1234,</li>
* <li>Example: 1234 -&gt; 1234,</li>
* <li>Example: 1234.56 -&gt; 1234,56</li>
* </ul>
* @since 9.2.7
*
* @param component2 the BigDecimal with the Amount content to set
* @return the field object to enable build pattern
*/
public Field34S setComponent2(java.math.BigDecimal component2) {
setComponent(2, SwiftFormatUtils.getBigDecimal(component2));
return this;
}
/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10.0 becomes an Float)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34S setComponent2(java.lang.Number component2) {

Expand Down Expand Up @@ -508,27 +486,13 @@ public Field34S setAmount(String component2) {
return setComponent2(component2);
}

/**
* Set the Amount (component 2) from a BigDecimal object.
*
* @see #setComponent2(java.math.BigDecimal)
*
* @param component2 BigDecimal with the Amount content to set
* @return the field object to enable build pattern
* @since 9.2.7
*/
public Field34S setAmount(java.math.BigDecimal component2) {
return setComponent2(component2);
}

/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10 becomes an Integer)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34S setAmount(java.lang.Number component2) {
return setComponent2(component2);
Expand Down
33 changes: 0 additions & 33 deletions src/main/java/com/prowidesoftware/swift/model/field/Field34T.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,32 +451,13 @@ public Field34T setComponent2(String component2) {
return this;
}

/**
* Set the component2 from a BigDecimal object.
* <br>
* Parses the BigDecimal into a SWIFT amount with truncated zero decimals and mandatory decimal separator.
* <ul>
* <li>Example: 1234.00 -&gt; 1234,</li>
* <li>Example: 1234 -&gt; 1234,</li>
* <li>Example: 1234.56 -&gt; 1234,56</li>
* </ul>
* @since 9.2.7
*
* @param component2 the BigDecimal with the Amount content to set
* @return the field object to enable build pattern
*/
public Field34T setComponent2(java.math.BigDecimal component2) {
setComponent(2, SwiftFormatUtils.getBigDecimal(component2));
return this;
}
/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10.0 becomes an Float)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34T setComponent2(java.lang.Number component2) {

Expand Down Expand Up @@ -508,27 +489,13 @@ public Field34T setAmount(String component2) {
return setComponent2(component2);
}

/**
* Set the Amount (component 2) from a BigDecimal object.
*
* @see #setComponent2(java.math.BigDecimal)
*
* @param component2 BigDecimal with the Amount content to set
* @return the field object to enable build pattern
* @since 9.2.7
*/
public Field34T setAmount(java.math.BigDecimal component2) {
return setComponent2(component2);
}

/**
* Alternative method setter for field's Amount (component 2) as as Number
*
* This method supports java constant value boxing for simpler coding styles (ex: 10 becomes an Integer)
*
* @param component2 the Number with the Amount content to set
* @return the field object to enable build pattern
* @see #setAmount(java.math.BigDecimal)
*/
public Field34T setAmount(java.lang.Number component2) {
return setComponent2(component2);
Expand Down
Loading

0 comments on commit 5638ec1

Please sign in to comment.