Rewrap some lines.

This commit is contained in:
akwizgran
2021-11-04 15:49:44 +00:00
parent f4d885b647
commit 3a13adcffb
13 changed files with 59 additions and 51 deletions

View File

@@ -21,8 +21,9 @@ public interface CleanupHook {
* <p> * <p>
* The callee is not required to delete the messages, but the hook won't be * The callee is not required to delete the messages, but the hook won't be
* called again for these messages unless another cleanup timer is set (see * called again for these messages unless another cleanup timer is set (see
* {@link DatabaseComponent#setCleanupTimerDuration(Transaction, MessageId, long)} * {@link DatabaseComponent#setCleanupTimerDuration(Transaction, MessageId,
* and {@link DatabaseComponent#startCleanupTimer(Transaction, MessageId)}). * long)} and {@link DatabaseComponent#startCleanupTimer(Transaction,
* MessageId)}).
*/ */
void deleteMessages(Transaction txn, GroupId g, void deleteMessages(Transaction txn, GroupId g,
Collection<MessageId> messageIds) throws DbException; Collection<MessageId> messageIds) throws DbException;

View File

@@ -18,8 +18,8 @@ import org.briarproject.bramble.api.sync.MessageId;
* {@link CleanupTimerStartedEvent CleanupTimerStartedEvents} broadcast by the * {@link CleanupTimerStartedEvent CleanupTimerStartedEvents} broadcast by the
* {@link DatabaseComponent}. * {@link DatabaseComponent}.
* <p> * <p>
* See {@link DatabaseComponent#setCleanupTimerDuration(Transaction, MessageId, long)}, * See {@link DatabaseComponent#setCleanupTimerDuration(Transaction, MessageId,
* {@link DatabaseComponent#startCleanupTimer(Transaction, MessageId)}, * long)}, {@link DatabaseComponent#startCleanupTimer(Transaction, MessageId)},
* {@link DatabaseComponent#stopCleanupTimer(Transaction, MessageId)}. * {@link DatabaseComponent#stopCleanupTimer(Transaction, MessageId)}.
*/ */
@NotNullByDefault @NotNullByDefault

View File

@@ -35,8 +35,8 @@ public interface TaskScheduler {
/** /**
* Cancels the task if it has not already started running. If the task * Cancels the task if it has not already started running. If the task
* is {@link #scheduleWithFixedDelay(Runnable, Executor, long, long, TimeUnit) periodic}, * is {@link #scheduleWithFixedDelay(Runnable, Executor, long, long,
* all future executions of the task are cancelled. * TimeUnit) periodic}, all future executions of the task are cancelled.
*/ */
void cancel(); void cancel();
} }

View File

@@ -845,8 +845,8 @@ interface Database<T> {
* of the given message with respect to the given contact, using the latency * of the given message with respect to the given contact, using the latency
* of the transport over which it was sent. * of the transport over which it was sent.
*/ */
void updateExpiryTimeAndEta(T txn, ContactId c, MessageId m, long maxLatency) void updateExpiryTimeAndEta(T txn, ContactId c, MessageId m,
throws DbException; long maxLatency) throws DbException;
/** /**
* Stores the given transport keys, deleting any keys they have replaced. * Stores the given transport keys, deleting any keys they have replaced.

View File

@@ -22,7 +22,8 @@ class SocksSocketFactory extends SocketFactory {
@Override @Override
public Socket createSocket() { public Socket createSocket() {
return new SocksSocket(proxy, connectToProxyTimeout, extraSocketTimeout); return new SocksSocket(proxy, connectToProxyTimeout,
extraSocketTimeout);
} }
@Override @Override

View File

@@ -81,33 +81,36 @@ class CountryCodes {
new Country("GA", "Gabonese Republic", "241", "00", ""), new Country("GA", "Gabonese Republic", "241", "00", ""),
new Country("GB", "United Kingdom", "44", "00", "0"), new Country("GB", "United Kingdom", "44", "00", "0"),
new Country("GD", "Grenada", "1", "011", "4"), new Country("GD", "Grenada", "1", "011", "4"),
new Country("GE", "Georgia", "995", "8**10", "8"), new Country("GE", "Georgia", "995", "8**10", "8"),
new Country("GF", "French Guiana", "594", "00", ""), new Country("GF", "French Guiana", "594", "00", ""),
new Country("GH", "Ghana", "233", "00", ""), new Country("GH", "Ghana", "233", "00", ""),
new Country("GI", "Gibraltar", "350", "00", ""), new Country("GI", "Gibraltar", "350", "00", ""),
new Country("GL", "Greenland", "299", "00", ""), new Country("GL", "Greenland", "299", "00", ""),
new Country("GM", "Gambia", "220", "00", ""), new Country("GM", "Gambia", "220", "00", ""),
new Country("GN", "Guinea", "224", "00", "0"), new Country("GN", "Guinea", "224", "00", "0"),
new Country("GP", "Guadeloupe", "590", "00", ""), new Country("GP", "Guadeloupe", "590", "00", ""),
new Country("GQ", "Equatorial Guinea", "240", "00", ""), new Country("GQ", "Equatorial Guinea", "240", "00", ""),
new Country("GR", "Greece", "30", "00", ""), new Country("GR", "Greece", "30", "00", ""),
new Country("GS", "South Georgia and the South Sandwich Islands", "995", "8**10", "8"), new Country("GS", "South Georgia and the South Sandwich Islands",
new Country("GT", "Guatemala", "502", "00", ""), "995", "8**10", "8"),
new Country("GU", "Guam", "1", "011", "1"), new Country("GT", "Guatemala", "502", "00", ""),
new Country("GW", "Guinea-Bissau", "245", "00", ""), new Country("GU", "Guam", "1", "011", "1"),
new Country("GY", "Guyana", "592", "001", "0"), new Country("GW", "Guinea-Bissau", "245", "00", ""),
new Country("HK", "Hong Kong", "852", "001", ""), new Country("GY", "Guyana", "592", "001", "0"),
new Country("HM", "Heard Island and McDonald Islands", "692", "00", "0"), new Country("HK", "Hong Kong", "852", "001", ""),
new Country("HN", "Honduras", "504", "00", "0"), new Country("HM", "Heard Island and McDonald Islands",
new Country("HR", "Croatia", "385", "00", "0"), "692", "00", "0"),
new Country("HT", "Haiti", "509", "00", "0"), new Country("HN", "Honduras", "504", "00", "0"),
new Country("HU", "Hungary", "36", "00", "06"), new Country("HR", "Croatia", "385", "00", "0"),
new Country("ID", "Indonesia", "62", "001", "0"), new Country("HT", "Haiti", "509", "00", "0"),
new Country("IE", "Ireland", "353", "00", "0"), new Country("HU", "Hungary", "36", "00", "06"),
new Country("IL", "Israel", "972", "00", "0"), new Country("ID", "Indonesia", "62", "001", "0"),
new Country("IN", "India", "91", "00", "0"), new Country("IE", "Ireland", "353", "00", "0"),
new Country("IO", "British Indian Ocean Territory", "246", "00", ""), new Country("IL", "Israel", "972", "00", "0"),
new Country("IQ", "Iraq", "964", "00", "0"), new Country("IN", "India", "91", "00", "0"),
new Country("IO", "British Indian Ocean Territory", "246", "00",
""),
new Country("IQ", "Iraq", "964", "00", "0"),
new Country("IR", "Iran", "98", "00", "0"), new Country("IR", "Iran", "98", "00", "0"),
new Country("IS", "Iceland", "354", "00", "0"), new Country("IS", "Iceland", "354", "00", "0"),
new Country("IT", "Italy", "39", "00", ""), new Country("IT", "Italy", "39", "00", ""),

View File

@@ -28,7 +28,8 @@ class SerialPortImpl implements SerialPort {
@Override @Override
public void closePort() throws IOException { public void closePort() throws IOException {
try { try {
if (!port.closePort()) throw new IOException("Failed to close port"); if (!port.closePort())
throw new IOException("Failed to close port");
} catch (SerialPortException e) { } catch (SerialPortException e) {
throw new IOException(e); throw new IOException(e);
} }

View File

@@ -1,11 +1,11 @@
package org.briarproject.briar.api.blog; package org.briarproject.briar.api.blog;
import org.briarproject.bramble.api.identity.Author; import org.briarproject.bramble.api.identity.Author;
import org.briarproject.briar.api.identity.AuthorInfo;
import org.briarproject.bramble.api.nullsafety.NotNullByDefault; import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
import org.briarproject.bramble.api.sync.GroupId; import org.briarproject.bramble.api.sync.GroupId;
import org.briarproject.bramble.api.sync.MessageId; import org.briarproject.bramble.api.sync.MessageId;
import org.briarproject.briar.api.client.PostHeader; import org.briarproject.briar.api.client.PostHeader;
import org.briarproject.briar.api.identity.AuthorInfo;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable; import javax.annotation.concurrent.Immutable;
@@ -21,7 +21,8 @@ public class BlogPostHeader extends PostHeader {
public BlogPostHeader(MessageType type, GroupId groupId, MessageId id, public BlogPostHeader(MessageType type, GroupId groupId, MessageId id,
@Nullable MessageId parentId, long timestamp, long timeReceived, @Nullable MessageId parentId, long timestamp, long timeReceived,
Author author, AuthorInfo authorInfo, boolean rssFeed, boolean read) { Author author, AuthorInfo authorInfo, boolean rssFeed,
boolean read) {
super(id, parentId, timestamp, author, authorInfo, read); super(id, parentId, timestamp, author, authorInfo, read);
this.type = type; this.type = type;
this.groupId = groupId; this.groupId = groupId;

View File

@@ -1,10 +1,10 @@
package org.briarproject.briar.api.client; package org.briarproject.briar.api.client;
import org.briarproject.bramble.api.identity.Author; import org.briarproject.bramble.api.identity.Author;
import org.briarproject.briar.api.identity.AuthorInfo;
import org.briarproject.briar.api.identity.AuthorInfo.Status;
import org.briarproject.bramble.api.nullsafety.NotNullByDefault; import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
import org.briarproject.bramble.api.sync.MessageId; import org.briarproject.bramble.api.sync.MessageId;
import org.briarproject.briar.api.identity.AuthorInfo;
import org.briarproject.briar.api.identity.AuthorInfo.Status;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable; import javax.annotation.concurrent.Immutable;
@@ -22,7 +22,8 @@ public abstract class PostHeader {
private final boolean read; private final boolean read;
public PostHeader(MessageId id, @Nullable MessageId parentId, public PostHeader(MessageId id, @Nullable MessageId parentId,
long timestamp, Author author, AuthorInfo authorInfo, boolean read) { long timestamp, Author author, AuthorInfo authorInfo,
boolean read) {
this.id = id; this.id = id;
this.parentId = parentId; this.parentId = parentId;
this.timestamp = timestamp; this.timestamp = timestamp;

View File

@@ -13,8 +13,8 @@ import javax.annotation.concurrent.Immutable;
public class ForumInvitationRequestReceivedEvent extends public class ForumInvitationRequestReceivedEvent extends
ConversationMessageReceivedEvent<ConversationRequest<Forum>> { ConversationMessageReceivedEvent<ConversationRequest<Forum>> {
public ForumInvitationRequestReceivedEvent(ConversationRequest<Forum> request, public ForumInvitationRequestReceivedEvent(
ContactId contactId) { ConversationRequest<Forum> request, ContactId contactId) {
super(request, contactId); super(request, contactId);
} }

View File

@@ -51,8 +51,8 @@ public class PrivateMessage {
/** /**
* Constructor for private messages in the * Constructor for private messages in the
* {@link PrivateMessageFormat#TEXT_IMAGES_AUTO_DELETE TEXT_IMAGES_AUTO_DELETE} * {@link PrivateMessageFormat#TEXT_IMAGES_AUTO_DELETE
* format. * TEXT_IMAGES_AUTO_DELETE} format.
*/ */
public PrivateMessage(Message message, boolean hasText, public PrivateMessage(Message message, boolean hasText,
List<AttachmentHeader> headers, long autoDeleteTimer) { List<AttachmentHeader> headers, long autoDeleteTimer) {

View File

@@ -30,9 +30,9 @@ public interface PrivateMessageFactory {
/** /**
* Creates a private message in the * Creates a private message in the
* {@link PrivateMessageFormat#TEXT_IMAGES_AUTO_DELETE TEXT_IMAGES_AUTO_DELETE} * {@link PrivateMessageFormat#TEXT_IMAGES_AUTO_DELETE
* format. This format requires the contact to support client version 0.3 * TEXT_IMAGES_AUTO_DELETE} format. This format requires the contact to
* or higher. * support client version 0.3 or higher.
*/ */
PrivateMessage createPrivateMessage(GroupId groupId, long timestamp, PrivateMessage createPrivateMessage(GroupId groupId, long timestamp,
@Nullable String text, List<AttachmentHeader> headers, @Nullable String text, List<AttachmentHeader> headers,

View File

@@ -653,8 +653,8 @@ class IntroducerProtocolEngine
/** /**
* Returns a timestamp for an invisible outgoing message. The timestamp is * Returns a timestamp for an invisible outgoing message. The timestamp is
* later than the {@link #getSessionTimestamp(IntroducerSession, PeerSession) * later than the {@link #getSessionTimestamp(IntroducerSession,
* session timestamp}. * PeerSession) session timestamp}.
*/ */
private long getTimestampForInvisibleMessage(IntroducerSession s, private long getTimestampForInvisibleMessage(IntroducerSession s,
PeerSession p) { PeerSession p) {