diff --git a/bramble-api/src/main/java/org/briarproject/bramble/api/cleanup/CleanupHook.java b/bramble-api/src/main/java/org/briarproject/bramble/api/cleanup/CleanupHook.java
index 6dca7a224..a8bc6bcc6 100644
--- a/bramble-api/src/main/java/org/briarproject/bramble/api/cleanup/CleanupHook.java
+++ b/bramble-api/src/main/java/org/briarproject/bramble/api/cleanup/CleanupHook.java
@@ -21,8 +21,9 @@ public interface CleanupHook {
*
* 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
- * {@link DatabaseComponent#setCleanupTimerDuration(Transaction, MessageId, long)}
- * and {@link DatabaseComponent#startCleanupTimer(Transaction, MessageId)}).
+ * {@link DatabaseComponent#setCleanupTimerDuration(Transaction, MessageId,
+ * long)} and {@link DatabaseComponent#startCleanupTimer(Transaction,
+ * MessageId)}).
*/
void deleteMessages(Transaction txn, GroupId g,
Collection messageIds) throws DbException;
diff --git a/bramble-api/src/main/java/org/briarproject/bramble/api/cleanup/CleanupManager.java b/bramble-api/src/main/java/org/briarproject/bramble/api/cleanup/CleanupManager.java
index d416d8fed..f5d779344 100644
--- a/bramble-api/src/main/java/org/briarproject/bramble/api/cleanup/CleanupManager.java
+++ b/bramble-api/src/main/java/org/briarproject/bramble/api/cleanup/CleanupManager.java
@@ -18,8 +18,8 @@ import org.briarproject.bramble.api.sync.MessageId;
* {@link CleanupTimerStartedEvent CleanupTimerStartedEvents} broadcast by the
* {@link DatabaseComponent}.
*
- * See {@link DatabaseComponent#setCleanupTimerDuration(Transaction, MessageId, long)},
- * {@link DatabaseComponent#startCleanupTimer(Transaction, MessageId)},
+ * See {@link DatabaseComponent#setCleanupTimerDuration(Transaction, MessageId,
+ * long)}, {@link DatabaseComponent#startCleanupTimer(Transaction, MessageId)},
* {@link DatabaseComponent#stopCleanupTimer(Transaction, MessageId)}.
*/
@NotNullByDefault
diff --git a/bramble-api/src/main/java/org/briarproject/bramble/api/system/TaskScheduler.java b/bramble-api/src/main/java/org/briarproject/bramble/api/system/TaskScheduler.java
index de1b85e8a..8c7c83265 100644
--- a/bramble-api/src/main/java/org/briarproject/bramble/api/system/TaskScheduler.java
+++ b/bramble-api/src/main/java/org/briarproject/bramble/api/system/TaskScheduler.java
@@ -35,8 +35,8 @@ public interface TaskScheduler {
/**
* Cancels the task if it has not already started running. If the task
- * is {@link #scheduleWithFixedDelay(Runnable, Executor, long, long, TimeUnit) periodic},
- * all future executions of the task are cancelled.
+ * is {@link #scheduleWithFixedDelay(Runnable, Executor, long, long,
+ * TimeUnit) periodic}, all future executions of the task are cancelled.
*/
void cancel();
}
diff --git a/bramble-core/src/main/java/org/briarproject/bramble/db/Database.java b/bramble-core/src/main/java/org/briarproject/bramble/db/Database.java
index ab2376a4b..66355c30b 100644
--- a/bramble-core/src/main/java/org/briarproject/bramble/db/Database.java
+++ b/bramble-core/src/main/java/org/briarproject/bramble/db/Database.java
@@ -845,8 +845,8 @@ interface Database {
* of the given message with respect to the given contact, using the latency
* of the transport over which it was sent.
*/
- void updateExpiryTimeAndEta(T txn, ContactId c, MessageId m, long maxLatency)
- throws DbException;
+ void updateExpiryTimeAndEta(T txn, ContactId c, MessageId m,
+ long maxLatency) throws DbException;
/**
* Stores the given transport keys, deleting any keys they have replaced.
diff --git a/bramble-core/src/main/java/org/briarproject/bramble/socks/SocksSocketFactory.java b/bramble-core/src/main/java/org/briarproject/bramble/socks/SocksSocketFactory.java
index fb0b1cd91..d17301a64 100644
--- a/bramble-core/src/main/java/org/briarproject/bramble/socks/SocksSocketFactory.java
+++ b/bramble-core/src/main/java/org/briarproject/bramble/socks/SocksSocketFactory.java
@@ -22,7 +22,8 @@ class SocksSocketFactory extends SocketFactory {
@Override
public Socket createSocket() {
- return new SocksSocket(proxy, connectToProxyTimeout, extraSocketTimeout);
+ return new SocksSocket(proxy, connectToProxyTimeout,
+ extraSocketTimeout);
}
@Override
diff --git a/bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/CountryCodes.java b/bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/CountryCodes.java
index 674d9f6b2..75cad1635 100644
--- a/bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/CountryCodes.java
+++ b/bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/CountryCodes.java
@@ -81,33 +81,36 @@ class CountryCodes {
new Country("GA", "Gabonese Republic", "241", "00", ""),
new Country("GB", "United Kingdom", "44", "00", "0"),
new Country("GD", "Grenada", "1", "011", "4"),
- new Country("GE", "Georgia", "995", "8**10", "8"),
- new Country("GF", "French Guiana", "594", "00", ""),
- new Country("GH", "Ghana", "233", "00", ""),
- new Country("GI", "Gibraltar", "350", "00", ""),
- new Country("GL", "Greenland", "299", "00", ""),
- new Country("GM", "Gambia", "220", "00", ""),
- new Country("GN", "Guinea", "224", "00", "0"),
- new Country("GP", "Guadeloupe", "590", "00", ""),
- new Country("GQ", "Equatorial Guinea", "240", "00", ""),
- new Country("GR", "Greece", "30", "00", ""),
- new Country("GS", "South Georgia and the South Sandwich Islands", "995", "8**10", "8"),
- new Country("GT", "Guatemala", "502", "00", ""),
- new Country("GU", "Guam", "1", "011", "1"),
- new Country("GW", "Guinea-Bissau", "245", "00", ""),
- new Country("GY", "Guyana", "592", "001", "0"),
- new Country("HK", "Hong Kong", "852", "001", ""),
- new Country("HM", "Heard Island and McDonald Islands", "692", "00", "0"),
- new Country("HN", "Honduras", "504", "00", "0"),
- new Country("HR", "Croatia", "385", "00", "0"),
- new Country("HT", "Haiti", "509", "00", "0"),
- new Country("HU", "Hungary", "36", "00", "06"),
- new Country("ID", "Indonesia", "62", "001", "0"),
- new Country("IE", "Ireland", "353", "00", "0"),
- new Country("IL", "Israel", "972", "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("GE", "Georgia", "995", "8**10", "8"),
+ new Country("GF", "French Guiana", "594", "00", ""),
+ new Country("GH", "Ghana", "233", "00", ""),
+ new Country("GI", "Gibraltar", "350", "00", ""),
+ new Country("GL", "Greenland", "299", "00", ""),
+ new Country("GM", "Gambia", "220", "00", ""),
+ new Country("GN", "Guinea", "224", "00", "0"),
+ new Country("GP", "Guadeloupe", "590", "00", ""),
+ new Country("GQ", "Equatorial Guinea", "240", "00", ""),
+ new Country("GR", "Greece", "30", "00", ""),
+ new Country("GS", "South Georgia and the South Sandwich Islands",
+ "995", "8**10", "8"),
+ new Country("GT", "Guatemala", "502", "00", ""),
+ new Country("GU", "Guam", "1", "011", "1"),
+ new Country("GW", "Guinea-Bissau", "245", "00", ""),
+ new Country("GY", "Guyana", "592", "001", "0"),
+ new Country("HK", "Hong Kong", "852", "001", ""),
+ new Country("HM", "Heard Island and McDonald Islands",
+ "692", "00", "0"),
+ new Country("HN", "Honduras", "504", "00", "0"),
+ new Country("HR", "Croatia", "385", "00", "0"),
+ new Country("HT", "Haiti", "509", "00", "0"),
+ new Country("HU", "Hungary", "36", "00", "06"),
+ new Country("ID", "Indonesia", "62", "001", "0"),
+ new Country("IE", "Ireland", "353", "00", "0"),
+ new Country("IL", "Israel", "972", "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("IS", "Iceland", "354", "00", "0"),
new Country("IT", "Italy", "39", "00", ""),
diff --git a/bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/SerialPortImpl.java b/bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/SerialPortImpl.java
index f3e1aff06..895de31c8 100644
--- a/bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/SerialPortImpl.java
+++ b/bramble-java/src/main/java/org/briarproject/bramble/plugin/modem/SerialPortImpl.java
@@ -28,7 +28,8 @@ class SerialPortImpl implements SerialPort {
@Override
public void closePort() throws IOException {
try {
- if (!port.closePort()) throw new IOException("Failed to close port");
+ if (!port.closePort())
+ throw new IOException("Failed to close port");
} catch (SerialPortException e) {
throw new IOException(e);
}
diff --git a/briar-api/src/main/java/org/briarproject/briar/api/blog/BlogPostHeader.java b/briar-api/src/main/java/org/briarproject/briar/api/blog/BlogPostHeader.java
index 4d99b10f9..b438b9225 100644
--- a/briar-api/src/main/java/org/briarproject/briar/api/blog/BlogPostHeader.java
+++ b/briar-api/src/main/java/org/briarproject/briar/api/blog/BlogPostHeader.java
@@ -1,11 +1,11 @@
package org.briarproject.briar.api.blog;
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.sync.GroupId;
import org.briarproject.bramble.api.sync.MessageId;
import org.briarproject.briar.api.client.PostHeader;
+import org.briarproject.briar.api.identity.AuthorInfo;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
@@ -21,7 +21,8 @@ public class BlogPostHeader extends PostHeader {
public BlogPostHeader(MessageType type, GroupId groupId, MessageId id,
@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);
this.type = type;
this.groupId = groupId;
diff --git a/briar-api/src/main/java/org/briarproject/briar/api/client/PostHeader.java b/briar-api/src/main/java/org/briarproject/briar/api/client/PostHeader.java
index 9957d8dfa..cbcf2cec9 100644
--- a/briar-api/src/main/java/org/briarproject/briar/api/client/PostHeader.java
+++ b/briar-api/src/main/java/org/briarproject/briar/api/client/PostHeader.java
@@ -1,10 +1,10 @@
package org.briarproject.briar.api.client;
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.sync.MessageId;
+import org.briarproject.briar.api.identity.AuthorInfo;
+import org.briarproject.briar.api.identity.AuthorInfo.Status;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
@@ -22,7 +22,8 @@ public abstract class PostHeader {
private final boolean read;
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.parentId = parentId;
this.timestamp = timestamp;
diff --git a/briar-api/src/main/java/org/briarproject/briar/api/forum/event/ForumInvitationRequestReceivedEvent.java b/briar-api/src/main/java/org/briarproject/briar/api/forum/event/ForumInvitationRequestReceivedEvent.java
index 85084858f..f6eb7b458 100644
--- a/briar-api/src/main/java/org/briarproject/briar/api/forum/event/ForumInvitationRequestReceivedEvent.java
+++ b/briar-api/src/main/java/org/briarproject/briar/api/forum/event/ForumInvitationRequestReceivedEvent.java
@@ -13,8 +13,8 @@ import javax.annotation.concurrent.Immutable;
public class ForumInvitationRequestReceivedEvent extends
ConversationMessageReceivedEvent> {
- public ForumInvitationRequestReceivedEvent(ConversationRequest request,
- ContactId contactId) {
+ public ForumInvitationRequestReceivedEvent(
+ ConversationRequest request, ContactId contactId) {
super(request, contactId);
}
diff --git a/briar-api/src/main/java/org/briarproject/briar/api/messaging/PrivateMessage.java b/briar-api/src/main/java/org/briarproject/briar/api/messaging/PrivateMessage.java
index 23bc39dde..903187f03 100644
--- a/briar-api/src/main/java/org/briarproject/briar/api/messaging/PrivateMessage.java
+++ b/briar-api/src/main/java/org/briarproject/briar/api/messaging/PrivateMessage.java
@@ -51,8 +51,8 @@ public class PrivateMessage {
/**
* Constructor for private messages in the
- * {@link PrivateMessageFormat#TEXT_IMAGES_AUTO_DELETE TEXT_IMAGES_AUTO_DELETE}
- * format.
+ * {@link PrivateMessageFormat#TEXT_IMAGES_AUTO_DELETE
+ * TEXT_IMAGES_AUTO_DELETE} format.
*/
public PrivateMessage(Message message, boolean hasText,
List headers, long autoDeleteTimer) {
diff --git a/briar-api/src/main/java/org/briarproject/briar/api/messaging/PrivateMessageFactory.java b/briar-api/src/main/java/org/briarproject/briar/api/messaging/PrivateMessageFactory.java
index b3274a057..d5d439bfb 100644
--- a/briar-api/src/main/java/org/briarproject/briar/api/messaging/PrivateMessageFactory.java
+++ b/briar-api/src/main/java/org/briarproject/briar/api/messaging/PrivateMessageFactory.java
@@ -30,9 +30,9 @@ public interface PrivateMessageFactory {
/**
* Creates a private message in the
- * {@link PrivateMessageFormat#TEXT_IMAGES_AUTO_DELETE TEXT_IMAGES_AUTO_DELETE}
- * format. This format requires the contact to support client version 0.3
- * or higher.
+ * {@link PrivateMessageFormat#TEXT_IMAGES_AUTO_DELETE
+ * TEXT_IMAGES_AUTO_DELETE} format. This format requires the contact to
+ * support client version 0.3 or higher.
*/
PrivateMessage createPrivateMessage(GroupId groupId, long timestamp,
@Nullable String text, List headers,
diff --git a/briar-core/src/main/java/org/briarproject/briar/introduction/IntroducerProtocolEngine.java b/briar-core/src/main/java/org/briarproject/briar/introduction/IntroducerProtocolEngine.java
index e2f511675..b5857ebb3 100644
--- a/briar-core/src/main/java/org/briarproject/briar/introduction/IntroducerProtocolEngine.java
+++ b/briar-core/src/main/java/org/briarproject/briar/introduction/IntroducerProtocolEngine.java
@@ -653,8 +653,8 @@ class IntroducerProtocolEngine
/**
* Returns a timestamp for an invisible outgoing message. The timestamp is
- * later than the {@link #getSessionTimestamp(IntroducerSession, PeerSession)
- * session timestamp}.
+ * later than the {@link #getSessionTimestamp(IntroducerSession,
+ * PeerSession) session timestamp}.
*/
private long getTimestampForInvisibleMessage(IntroducerSession s,
PeerSession p) {