gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: address warnings


From: gnunet
Subject: [libeufin] branch master updated: address warnings
Date: Fri, 24 Jan 2020 16:24:33 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new b2acd88  address warnings
b2acd88 is described below

commit b2acd88e5962ef522bc53d7993c8708d67e6d308
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jan 24 16:24:26 2020 +0100

    address warnings
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt                  | 2 +-
 .../src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt    | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index a8e84f9..91dd561 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -135,7 +135,7 @@ open class IntIdTableWithAmount : IntIdTable() {
                 throw BadAmount(value)
             }
 
-            if ((value as BigDecimal).compareTo(BigDecimal.ZERO) == 0) {
+            if (value.compareTo(BigDecimal.ZERO) == 0) {
                 LOGGER.error("Cannot have transactions of ZERO amount")
                 throw BadAmount(value)
             }
diff --git 
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index 7921ef4..c872504 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -282,7 +282,6 @@ private fun ApplicationCall.handleEbicsC52(header: 
EbicsRequest.Header): ByteArr
 
     val userId = header.static.userID!!
     val od = header.static.orderDetails ?: throw Exception("Need 
'OrderDetails'")
-    val op = od.orderParams ?: throw Exception("Need 'StandardOrderParams'")
 
     val subscriber = transaction {
         EbicsSubscriberEntity.find {
@@ -744,8 +743,6 @@ suspend fun ApplicationCall.ebicsweb() {
                         val transactionID = 
EbicsOrderUtil.generateTransactionId()
                         val orderType =
                             
requestObject.header.static.orderDetails?.orderType ?: throw 
EbicsInvalidRequestError()
-                        val partnerID = staticHeader.partnerID ?: throw 
EbicsInvalidRequestError()
-                        val userID = staticHeader.userID ?: throw 
EbicsInvalidRequestError()
                         if (staticHeader.numSegments == null) {
                             println("handling initialization for order type 
$orderType")
                             val response = when (orderType) {
@@ -866,8 +863,6 @@ suspend fun ApplicationCall.ebicsweb() {
                                     throw EbicsInvalidRequestError()
                                 }
 
-                                val customCanon = unzippedData.filter { it != 
'\r'.toByte() && it != '\n'.toByte() && it != (26).toByte()}.toByteArray()
-
                                 for (sig in sigs) {
                                     if (sig.signatureAlgorithm == "A006") {
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]