You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2022/01/29 11:01:20 UTC

[hop] branch 2.0.0 updated: HOP-3711 CheckSumMetaTest.testSerialization fails randomly

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch 2.0.0
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/2.0.0 by this push:
     new 1bc717b  HOP-3711 CheckSumMetaTest.testSerialization fails randomly
     new 4bdebac  Merge pull request #1304 from pscigala/HOP-3711
1bc717b is described below

commit 1bc717b0466bfa1e5ff61f3790f899010cf91e16
Author: pscigala <pr...@gmail.com>
AuthorDate: Sat Jan 29 00:37:54 2022 +0100

    HOP-3711 CheckSumMetaTest.testSerialization fails randomly
    
    Setting code to 'NONE' in CheckSumMeta.CheckSumType#NONE fixes the the problem with empty transform and passes validation in tests.
---
 .../java/org/apache/hop/pipeline/transforms/checksum/CheckSumMeta.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/transforms/checksum/src/main/java/org/apache/hop/pipeline/transforms/checksum/CheckSumMeta.java b/plugins/transforms/checksum/src/main/java/org/apache/hop/pipeline/transforms/checksum/CheckSumMeta.java
index b5dd378..f247c01 100644
--- a/plugins/transforms/checksum/src/main/java/org/apache/hop/pipeline/transforms/checksum/CheckSumMeta.java
+++ b/plugins/transforms/checksum/src/main/java/org/apache/hop/pipeline/transforms/checksum/CheckSumMeta.java
@@ -56,7 +56,7 @@ public class CheckSumMeta extends BaseTransformMeta
   private static final Class<?> PKG = CheckSumMeta.class; // For Translator
 
   public enum CheckSumType implements IEnumHasCode {
-    NONE("", ""),
+    NONE("NONE", ""),
     CRC32("CRC32", BaseMessages.getString(PKG, "CheckSumMeta.Type.CRC32")),
     ADLER32("ADLER32", BaseMessages.getString(PKG, "CheckSumMeta.Type.ADLER32")),
     MD5("MD5", BaseMessages.getString(PKG, "CheckSumMeta.Type.MD5")),