diff --git a/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoDialog.java b/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoDialog.java index ad0acb26bb..a57e42f51f 100644 --- a/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoDialog.java +++ b/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoDialog.java @@ -37,7 +37,6 @@ import org.apache.hop.ui.pipeline.dialog.PipelinePreviewProgressDialog; import org.apache.hop.ui.pipeline.transform.BaseTransformDialog; import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; @@ -79,13 +78,7 @@ public String open() { PropsUi.setLook(shell); setShellImage(shell, input); - ModifyListener lsMod = - new ModifyListener() { - @Override - public void modifyText(ModifyEvent e) { - input.setChanged(); - } - }; + ModifyListener lsMod = e -> input.setChanged(); changed = input.hasChanged(); FormLayout formLayout = new FormLayout(); diff --git a/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoMeta.java b/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoMeta.java index 8429cbef3c..afbe34fcf2 100644 --- a/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoMeta.java +++ b/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoMeta.java @@ -175,11 +175,7 @@ public boolean equals(Object o) { } GetLoggingInfoMeta that = (GetLoggingInfoMeta) o; - if (!fields.equals(that.fields)) { - return false; - } - - return true; + return fields.equals(that.fields); } @Override diff --git a/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoTypes.java b/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoTypes.java index 2f5f0a6b78..48aa66d06c 100644 --- a/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoTypes.java +++ b/plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/loginfo/GetLoggingInfoTypes.java @@ -47,8 +47,7 @@ public enum GetLoggingInfoTypes { private final String code; private final String description; - private static Class PKG = - GetLoggingInfoMeta.class; // for i18n purposes, needed by Translator2!! + private static Class pkg = GetLoggingInfoMeta.class; public String lookupDescription() { return description; @@ -72,10 +71,10 @@ public static GetLoggingInfoTypes getTypeFromString(String typeStr) { } public static String lookupDescription(String i18nDescription) { - if (PKG == null) { - PKG = GetLoggingInfoMeta.class; + if (pkg == null) { + pkg = GetLoggingInfoMeta.class; } - return BaseMessages.getString(PKG, i18nDescription); + return BaseMessages.getString(pkg, i18nDescription); } GetLoggingInfoTypes(String code, String i18nDescription) {