Skip to content

Commit 3120940

Browse files
committed
Fix/Suppress PMD
Related: #14
1 parent 04f7a7d commit 3120940

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

bzst-dip-java-client/src/main/java/software/xdev/bzst/dip/client/exception/TaxNumberException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public class TaxNumberException extends ConfigurationException
2323
{
2424
public TaxNumberException(final String taxNumber)
2525
{
26-
super("The taxnumber (Steueridentifikationsnummer) is not valid!");
26+
super("The taxnumber (Steueridentifikationsnummer) '" + taxNumber + "' is not valid!");
2727
}
2828
}

bzst-dip-java-client/src/main/java/software/xdev/bzst/dip/client/util/WebClientUtil.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
import javax.xml.parsers.DocumentBuilderFactory;
2525
import javax.xml.parsers.ParserConfigurationException;
2626

27-
import org.slf4j.Logger;
28-
import org.slf4j.LoggerFactory;
2927
import org.w3c.dom.Document;
3028
import org.w3c.dom.Element;
3129
import org.w3c.dom.Node;
@@ -41,7 +39,6 @@
4139
*/
4240
public final class WebClientUtil
4341
{
44-
private static final Logger LOGGER = LoggerFactory.getLogger(WebClientUtil.class);
4542
public static final String TAG_NAME_DATENTRANSFERNUMMER = "Datentransfernummer";
4643

4744
private WebClientUtil()

bzst-dip-java-client/src/main/java/software/xdev/bzst/dip/client/webclient/WebClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ public BzstDipSingleTransferResult requestTransferResult(final String dataTransf
141141
)
142142
)
143143
{
144-
final String text = new String(inputStream.readAllBytes(), StandardCharsets.UTF_8);
145-
146144
// TODO: Check text
147145
return new BzstDipSingleTransferResult(dataTransferNumber, 2);
148146

bzst-dip-java-client/src/main/java/software/xdev/bzst/dip/client/xmldocument/ReportableSellerCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ private static OrganisationPartyType createOrganisationPartyType(
338338
*/
339339
public static boolean isNULLAsString(final String checkNULLString)
340340
{
341-
return checkNULLString.equals(NULL_STRING);
341+
return NULL_STRING.equals(checkNULLString);
342342
}
343343

344344
private static OrganisationINType createIN(final String in)

bzst-dip-java-client/src/main/java/software/xdev/bzst/dip/client/xmldocument/XMLDocumentBodyCreator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ private Object createData(
133133
return dataType;
134134
}
135135

136+
@SuppressWarnings("PMD.UnusedFormalParameter") // TODO Needs to be resolved!
136137
private Object createData(
137138
final PaymentDataBodyType paymentDataBodyType) throws DatatypeConfigurationException
138139
{

bzst-dip-java-client/src/test/java/software/xdev/bzst/dip/client/signing/SigningProviderByJksTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void getPrivateKeyWrongPassword()
5656
);
5757
Assertions.assertThrows(
5858
SigningException.class,
59-
() -> signingProviderByJks.getPrivateKey()
59+
signingProviderByJks::getPrivateKey
6060
);
6161
}
6262

@@ -69,7 +69,7 @@ void getCertificateWrongPassword()
6969
);
7070
Assertions.assertThrows(
7171
SigningException.class,
72-
() -> signingProviderByJks.getCertificate()
72+
signingProviderByJks::getCertificate
7373
);
7474
}
7575
}

0 commit comments

Comments
 (0)