You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by kt...@apache.org on 2018/12/05 18:46:30 UTC
[accumulo] branch master updated: Running the build formatted some
code
This is an automated email from the ASF dual-hosted git repository.
kturner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/master by this push:
new bb654e5 Running the build formatted some code
bb654e5 is described below
commit bb654e5b8cc695bbe2e0ae461565aa871792ba1d
Author: Keith Turner <kt...@apache.org>
AuthorDate: Wed Dec 5 13:46:08 2018 -0500
Running the build formatted some code
---
.../main/java/org/apache/accumulo/core/conf/ClientProperty.java | 3 ++-
.../java/org/apache/accumulo/core/client/ClientPropertiesTest.java | 7 ++++---
.../accumulo/hadoopImpl/mapreduce/OutputFormatBuilderImpl.java | 3 ++-
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/core/src/main/java/org/apache/accumulo/core/conf/ClientProperty.java b/core/src/main/java/org/apache/accumulo/core/conf/ClientProperty.java
index 546db89..83d3e42 100644
--- a/core/src/main/java/org/apache/accumulo/core/conf/ClientProperty.java
+++ b/core/src/main/java/org/apache/accumulo/core/conf/ClientProperty.java
@@ -320,7 +320,8 @@ public enum ClientProperty {
}
/**
- * @throws IllegalArgumentException if Properties does not contain all required
+ * @throws IllegalArgumentException
+ * if Properties does not contain all required
*/
public static void validate(Properties properties) {
validate(properties, true);
diff --git a/core/src/test/java/org/apache/accumulo/core/client/ClientPropertiesTest.java b/core/src/test/java/org/apache/accumulo/core/client/ClientPropertiesTest.java
index a83eefc..1b432fd 100644
--- a/core/src/test/java/org/apache/accumulo/core/client/ClientPropertiesTest.java
+++ b/core/src/test/java/org/apache/accumulo/core/client/ClientPropertiesTest.java
@@ -29,15 +29,16 @@ public class ClientPropertiesTest {
@Test
public void testBasic() {
- Properties props1 = Accumulo.newClientProperties().to("inst1", "zoo1")
- .as("user1", "pass1").build();
+ Properties props1 = Accumulo.newClientProperties().to("inst1", "zoo1").as("user1", "pass1")
+ .build();
assertEquals("inst1", ClientProperty.INSTANCE_NAME.getValue(props1));
assertEquals("zoo1", ClientProperty.INSTANCE_ZOOKEEPERS.getValue(props1));
assertEquals("user1", ClientProperty.AUTH_PRINCIPAL.getValue(props1));
assertEquals("password", ClientProperty.AUTH_TYPE.getValue(props1));
assertEquals("pass1", ClientProperty.AUTH_TOKEN.getValue(props1));
- Properties props2 = Accumulo.newClientProperties().from(props1).as("user2", Paths.get("/path2")).build();
+ Properties props2 = Accumulo.newClientProperties().from(props1).as("user2", Paths.get("/path2"))
+ .build();
assertEquals("inst1", ClientProperty.INSTANCE_NAME.getValue(props1));
assertEquals("zoo1", ClientProperty.INSTANCE_ZOOKEEPERS.getValue(props1));
assertEquals("user2", ClientProperty.AUTH_PRINCIPAL.getValue(props1));
diff --git a/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapreduce/OutputFormatBuilderImpl.java b/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapreduce/OutputFormatBuilderImpl.java
index a0e760e..defe67f 100644
--- a/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapreduce/OutputFormatBuilderImpl.java
+++ b/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapreduce/OutputFormatBuilderImpl.java
@@ -41,7 +41,8 @@ public class OutputFormatBuilderImpl<T>
@Override
public OutputFormatBuilder.OutputOptions<T> clientProperties(Properties clientProperties) {
- this.clientInfo = ClientInfo.from(Objects.requireNonNull(clientProperties, "ClientInfo must not be null"));
+ this.clientInfo = ClientInfo
+ .from(Objects.requireNonNull(clientProperties, "ClientInfo must not be null"));
return this;
}