diff artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Datacage.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 5077fc1ace1c
children 0a5239a1e46e
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Datacage.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Datacage.java	Thu Jan 18 20:12:01 2018 +0100
@@ -262,7 +262,8 @@
             final String  collectionName,
             final Date    collectionCreated
         ) {
-            Integer c = getId(collections, collectionId, SQL_COLLECTION_BY_GID);
+            Integer c = getId(
+                collections, collectionId, SQL_COLLECTION_BY_GID);
 
             if (c != null) {
                 return c;
@@ -285,9 +286,10 @@
                     stmnt.setString(2, collectionId);
                     stmnt.setInt   (3, ownerId);
                     setString(stmnt, 4, collectionName);
-                    Timestamp timestamp = new Timestamp(collectionCreated != null
-                        ? collectionCreated.getTime()
-                        : System.currentTimeMillis());
+                    Timestamp timestamp =
+                        new Timestamp(collectionCreated != null
+                            ? collectionCreated.getTime()
+                            : System.currentTimeMillis());
                     stmnt.setTimestamp(5, timestamp);
                     stmnt.execute();
                     conn.commit();
@@ -504,7 +506,8 @@
         }
 
         if (!(artifact instanceof D4EArtifact)) {
-            log.warn("need D4EArtifact here (have " + artifact.getClass() + ")");
+            log.warn("need D4EArtifact here (have "
+                + artifact.getClass() + ")");
             return;
         }
 
@@ -551,7 +554,8 @@
     ) {
         log.debug("storedArtifact");
         if (!(artifact instanceof D4EArtifact)) {
-            log.warn("need D4EArtifact here but have a " + artifact.getClass());
+            log.warn("need D4EArtifact here but have a "
+                + artifact.getClass());
             return;
         }
 
@@ -905,7 +909,8 @@
         };
 
         if (!exec.runWrite()) {
-            log.error("storing state of artifact failed ("+artifactId+","+artifact.getCurrentStateId()+")");
+            log.error("storing state of artifact failed ("
+                + artifactId + "," + artifact.getCurrentStateId() + ")");
         }
     }
 

http://dive4elements.wald.intevation.org