You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by bb...@apache.org on 2017/04/07 13:58:26 UTC

nifi git commit: Fixing checkstyle error in FlowSnippetDTO

Repository: nifi
Updated Branches:
  refs/heads/master c7ecaba23 -> 6a75ab174


Fixing checkstyle error in FlowSnippetDTO


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/6a75ab17
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/6a75ab17
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/6a75ab17

Branch: refs/heads/master
Commit: 6a75ab1740397ae5247f9bd302182cc846a8a2bd
Parents: c7ecaba
Author: Bryan Bende <bb...@apache.org>
Authored: Fri Apr 7 09:58:15 2017 -0400
Committer: Bryan Bende <bb...@apache.org>
Committed: Fri Apr 7 09:58:15 2017 -0400

----------------------------------------------------------------------
 .../org/apache/nifi/web/api/dto/FlowSnippetDTO.java | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/6a75ab17/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowSnippetDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowSnippetDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowSnippetDTO.java
index 1328bfd..79d94eb 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowSnippetDTO.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowSnippetDTO.java
@@ -198,12 +198,12 @@ public class FlowSnippetDTO {
         components.addAll(dtos);
         return components;
     }
-    
-	private long generateMsb(String id) {
-		UUID temp = UUID.nameUUIDFromBytes(id.getBytes(StandardCharsets.UTF_8));
-		long msb = temp.getMostSignificantBits();
-		return msb;
-	}
+
+    private long generateMsb(String id) {
+        UUID temp = UUID.nameUUIDFromBytes(id.getBytes(StandardCharsets.UTF_8));
+        long msb = temp.getMostSignificantBits();
+        return msb;
+    }
 
     private void removeInstanceIdentifierIfNecessary(Set<? extends ComponentDTO> componentDtos) {
         if (this.newTemplate) {
@@ -242,7 +242,7 @@ public class FlowSnippetDTO {
 
                     ConnectableDTO cdto = connectionDTO.getSource();
                     if (!cdto.getType().equals("REMOTE_INPUT_PORT") && !cdto.getType().equals("REMOTE_OUTPUT_PORT")) {
-                    	id = new UUID(this.generateMsb(cdto.getId()), 0);
+                        id = new UUID(this.generateMsb(cdto.getId()), 0);
                         cdto.setId(id.toString());
                     }
 
@@ -251,7 +251,7 @@ public class FlowSnippetDTO {
 
                     cdto = connectionDTO.getDestination();
                     if (!cdto.getType().equals("REMOTE_INPUT_PORT") && !cdto.getType().equals("REMOTE_OUTPUT_PORT")) {
-                    	id = new UUID(this.generateMsb(cdto.getId()), 0);
+                        id = new UUID(this.generateMsb(cdto.getId()), 0);
                         cdto.setId(id.toString());
                     }