Skip to content

Commit

Permalink
Minor Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hansva committed Nov 11, 2024
1 parent 3c9a587 commit 601ffcd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit 601ffcd

Please sign in to comment.