mirror of
https://github.com/corda/corda.git
synced 2025-01-31 08:25:50 +00:00
Merged in rog-additional-compiler-warning-fixes (pull request #502)
Fixed an additional 2 compiler warnings.
This commit is contained in:
commit
31dd93523b
@ -129,6 +129,7 @@ public class Base58 {
|
||||
*
|
||||
* @param input the base58-encoded string to decode (which should include the checksum)
|
||||
* @throws AddressFormatException if the input is not base 58 or the checksum does not validate.
|
||||
* @return the original data bytes less the last 4 bytes (the checksum).
|
||||
*/
|
||||
public static byte[] decodeChecked(String input) throws AddressFormatException {
|
||||
byte[] decoded = decode(input);
|
||||
|
@ -147,7 +147,7 @@ inline fun <reified P : ProtocolLogic<*>> AbstractNode.initiateSingleShotProtoco
|
||||
|
||||
val subscriber = object : Subscriber<Change>() {
|
||||
override fun onNext(change: Change) {
|
||||
if (change.logic is P && change.addOrRemove == ADD) {
|
||||
if (change.addOrRemove == ADD) {
|
||||
unsubscribe()
|
||||
future.set(change.logic as P)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user