From b8c6b80da1cb6118167a934daa480eb381c59e0e Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 08 Jul 2015 08:06:00 +0000
Subject: [PATCH] opendj-server-legacy maven module: Enabled "NeedBraces" checkstyle rule. This brings opendj-server-legacy's checkstyle rules closer to ForgeRock's checkstyle rules.
---
opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StopMsg.java | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StopMsg.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StopMsg.java
index c03dbf0..a763c94 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StopMsg.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StopMsg.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2009 Sun Microsystems, Inc.
- * Portions copyright 2013-2014 ForgeRock AS.
+ * Portions copyright 2013-2015 ForgeRock AS.
*/
package org.opends.server.replication.protocol;
@@ -52,18 +52,16 @@
{
// First byte is the type
if (in[0] != MSG_TYPE_STOP)
- throw new DataFormatException("input is not a valid Stop message: " +
- in[0]);
+ {
+ throw new DataFormatException("input is not a valid Stop message: " + in[0]);
+ }
}
/** {@inheritDoc} */
@Override
public byte[] getBytes(short protocolVersion)
{
- return new byte[]
- {
- MSG_TYPE_STOP
- };
+ return new byte[] { MSG_TYPE_STOP };
}
/** {@inheritDoc} */
--
Gitblit v1.10.0