Skip to content

Commit

Permalink
sonarqube fixes. issue #54.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Oct 12, 2023
1 parent b2ff78f commit d7274bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ You should also get your employer (if you work as a programmer) or school,
*
* Infos: Reine Information, kein Handlungsbedarf
*
* I101 - Zusatzoption: PDF -> PDFA Konvertierung
* I101 - Zusatzoption: PDF nach PDFA Konvertierung
*
* I501 - API-Status: OK
*
Expand Down
20 changes: 12 additions & 8 deletions j-lawyer-fax/src/com/jdimension/jlawyer/fax/utils/Base64.java
Original file line number Diff line number Diff line change
Expand Up @@ -690,11 +690,12 @@ public String encode(byte[] bin) {
return encode(bin,0,bin.length);
}
/**
* Encode an array of bytes as Base64.
* It will be broken into lines if the line length is not 0. If broken into lines,
* the last line is not terminated with a line separator.
*
* param ba The byte array to encode.
* Encode an array of bytes as Base64.It will be broken into lines if the line length is not 0.If broken into lines,
the last line is not terminated with a line separator.
* @param bin The byte array to encode.
* @param str
* @param len
* @return
*/
public String encode(byte[] bin, int str, int len) {
int ol; // output length
Expand Down Expand Up @@ -762,9 +763,12 @@ public byte[] decode(String b64) {
}

/**
* Decode a Base64 string to an array of bytes.
* The string must have a length evenly divisible by 4 (not counting line separators and other
* ignorable characters, like whitespace).
* Decode a Base64 string to an array of bytes.The string must have a length evenly divisible by 4 (not counting line separators and other
ignorable characters, like whitespace).
* @param b64
* @param str
* @param len
* @return
*/
public byte[] decode(String b64, int str, int len) {
byte[] ba; // target byte array
Expand Down

0 comments on commit d7274bb

Please sign in to comment.