geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [geode] 02/02: Fix spotless format
Date Fri, 17 Nov 2017 18:44:59 GMT
This is an automated email from the ASF dual-hosted git repository.

klund pushed a commit to branch feature/GEODE-3781
in repository https://gitbox.apache.org/repos/asf/geode.git

commit f40cef0f6a4ecdfac6bface6cb3dd3c0b8aae91f
Author: Kirk Lund <klund@apache.org>
AuthorDate: Fri Nov 17 10:44:35 2017 -0800

    Fix spotless format
---
 .../apache/geode/connectors/jdbc/internal/ConnectionManager.java | 9 +++++----
 .../org/apache/geode/connectors/jdbc/internal/SqlHandler.java    | 3 ++-
 .../geode/connectors/jdbc/internal/xml/ElementTypeTest.java      | 3 ++-
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/ConnectionManager.java
b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/ConnectionManager.java
index 462c51c..d382112 100644
--- a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/ConnectionManager.java
+++ b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/ConnectionManager.java
@@ -58,7 +58,7 @@ class ConnectionManager {
   }
 
   <K> List<ColumnValue> getColumnToValueList(ConnectionConfiguration config,
-                                         RegionMapping regionMapping, K key, PdxInstance
value, Operation operation) {
+      RegionMapping regionMapping, K key, PdxInstance value, Operation operation) {
     String keyColumnName = getKeyColumnName(config, regionMapping.getTableName());
     ColumnValue keyColumnValue = new ColumnValue(true, keyColumnName, key);
 
@@ -76,7 +76,8 @@ class ConnectionManager {
   }
 
   String getKeyColumnName(ConnectionConfiguration connectionConfig, String tableName) {
-    return tableToPrimaryKeyMap.computeIfAbsent(tableName, k -> computeKeyColumnName(connectionConfig,
k));
+    return tableToPrimaryKeyMap.computeIfAbsent(tableName,
+        k -> computeKeyColumnName(connectionConfig, k));
   }
 
   ConnectionConfiguration getConnectionConfig(String connectionConfigName) {
@@ -84,7 +85,7 @@ class ConnectionManager {
   }
 
   PreparedStatement getPreparedStatement(Connection connection, List<ColumnValue> columnList,
-                                         String tableName, Operation operation, int pdxTypeId)
{
+      String tableName, Operation operation, int pdxTypeId) {
     PreparedStatementCache statementCache = preparedStatementCache.get();
 
     if (statementCache == null) {
@@ -114,7 +115,7 @@ class ConnectionManager {
   }
 
   private List<ColumnValue> createColumnValueList(RegionMapping regionMapping, PdxInstance
value,
-                                     String keyColumnName) {
+      String keyColumnName) {
     List<ColumnValue> result = new ArrayList<>();
     for (String fieldName : value.getFieldNames()) {
       String columnName = regionMapping.getColumnNameForField(fieldName);
diff --git a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/SqlHandler.java
b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/SqlHandler.java
index c61a9db..b73698c 100644
--- a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/SqlHandler.java
+++ b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/SqlHandler.java
@@ -57,7 +57,8 @@ public class SqlHandler {
     return executeReadStatement(statement, columnList, factory, regionMapping, keyColumnName);
   }
 
-  private <K, V> PdxInstanceFactory getPdxInstanceFactory(Region<K, V> region,
RegionMapping regionMapping) {
+  private <K, V> PdxInstanceFactory getPdxInstanceFactory(Region<K, V> region,
+      RegionMapping regionMapping) {
     InternalCache cache = (InternalCache) region.getRegionService();
     String valueClassName = regionMapping.getPdxClassName();
     PdxInstanceFactory factory;
diff --git a/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/internal/xml/ElementTypeTest.java
b/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/internal/xml/ElementTypeTest.java
index cca2bec..8c290b7 100644
--- a/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/internal/xml/ElementTypeTest.java
+++ b/geode-connectors/src/test/java/org/apache/geode/connectors/jdbc/internal/xml/ElementTypeTest.java
@@ -75,7 +75,8 @@ public class ElementTypeTest {
 
   @Test
   public void gettingElementTypeThatDoesNotExistThrowsException() {
-    assertThatThrownBy(() -> ElementType.getTypeFromName("non-existant element")).isInstanceOf(IllegalArgumentException.class);
+    assertThatThrownBy(() -> ElementType.getTypeFromName("non-existant element"))
+        .isInstanceOf(IllegalArgumentException.class);
   }
 
   @Test

-- 
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <commits@geode.apache.org>.

Mime
View raw message