Fix packages

This commit is contained in:
Niels Andriesse 2021-05-18 09:29:10 +10:00
parent c9ebcc580f
commit fa205c8915
12 changed files with 6 additions and 63 deletions

View File

@ -1,13 +0,0 @@
package org.session.libsignal.exceptions;
public class InvalidMetadataMessageException extends Exception {
public InvalidMetadataMessageException(String s) {
super(s);
}
public InvalidMetadataMessageException(Exception s) {
super(s);
}
}

View File

@ -1,12 +0,0 @@
/**
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package org.session.libsignal.exceptions;
public class InvalidVersionException extends Exception {
public InvalidVersionException(String detailMessage) {
super(detailMessage);
}
}

View File

@ -1,22 +0,0 @@
package org.session.libsignal.exceptions;
public abstract class ProtocolException extends Exception {
private final String sender;
private final int senderDevice;
public ProtocolException(Exception e, String sender, int senderDevice) {
super(e);
this.sender = sender;
this.senderDevice = senderDevice;
}
public String getSender() {
return sender;
}
public int getSenderDevice() {
return senderDevice;
}
}

View File

@ -1,8 +0,0 @@
package org.session.libsignal.exceptions;
public class ProtocolInvalidMessageException extends ProtocolException {
public ProtocolInvalidMessageException(InvalidMessageException e, String sender, int senderDevice) {
super(e, sender, senderDevice);
}
}

View File

@ -1,6 +1,5 @@
package org.session.libsignal.streams;
import org.session.libsignal.service.internal.util.Util;
import java.io.FilterInputStream;

View File

@ -1,6 +1,5 @@
package org.session.libsignal.streams;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;

View File

@ -1,4 +1,4 @@
package org.session.libsignal.service.loki.utilities
package org.session.libsignal.utilities
import org.session.libsignal.crypto.IdentityKeyPair
import org.session.libsignal.crypto.ecc.ECKeyPair

View File

@ -1,4 +1,4 @@
package org.session.libsignal.service.loki.utilities
package org.session.libsignal.utilities
fun Any.prettifiedDescription(): String {
if (this is List<*>) { return prettifiedDescription() }

View File

@ -1,4 +1,4 @@
package org.session.libsignal.service.loki.utilities
package org.session.libsignal.utilities
import kotlin.reflect.KProperty1
import kotlin.reflect.full.memberProperties

View File

@ -1,4 +1,4 @@
package org.session.libsignal.service.loki.utilities
package org.session.libsignal.utilities
import nl.komponents.kovenant.Promise
import nl.komponents.kovenant.deferred

View File

@ -1,4 +1,4 @@
package org.session.libsignal.service.loki.utilities
package org.session.libsignal.utilities
import org.session.libsignal.utilities.Hex

View File

@ -1,4 +1,4 @@
package org.session.libsignal.service.loki.utilities
package org.session.libsignal.utilities
object PublicKeyValidation {