-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove redundant local variable #92
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,8 +116,7 @@ public void format(TableItem item) { | |
item.setForeground(Color.COMMENT.getSWTColor()); | ||
|
||
// Checken, ob der Auftrag einen Reminder hat oder ob es ein geclonter Auftrag ist | ||
HibiscusDBObject o = (HibiscusDBObject) l; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Durch Entfernen der lokalen Variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hallo @meigelb, Die Aussage ist "checke ob Damit der Code compiliert, ist der Downcast nicht notwendig, da die Variable public interface SepaSammelTransfer<T extends SepaSammelTransferBuchung> extends HibiscusDBObject, Terminable, Duplicatable, SepaPayment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, ich weiß auch nicht, was ich damals dort gesehen habe. Aus heutiger Sicht passt es. Vielleicht habe ich nicht erkannt, dass |
||
String uuid = MetaKey.REMINDER_UUID.get(o); | ||
String uuid = MetaKey.REMINDER_UUID.get(l); | ||
if (uuid != null) | ||
{ | ||
try | ||
|
@@ -131,7 +130,7 @@ public void format(TableItem item) { | |
Logger.error("unable to determine reminder",e); | ||
} | ||
} | ||
else if (MetaKey.REMINDER_TEMPLATE.get(o) != null) | ||
else if (MetaKey.REMINDER_TEMPLATE.get(l) != null) | ||
{ | ||
item.setImage(4,SWTUtil.getImage("edit-copy.png")); | ||
} | ||
|
This comment was marked as resolved.
Sorry, something went wrong.