Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Try to debug unrequired .changed() calls #348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

magnusulf
Copy link
Contributor

No description provided.

@magnusulf magnusulf force-pushed the lastraw branch 2 times, most recently from 7c9bb4a to 6db82dd Compare April 29, 2018 15:45
@@ -607,6 +613,7 @@ private void checkActuallyModifiedFixed(String id)
String change = Txt.implode(messages, Txt.parse("<silver> | "));
String message = Txt.parse("<b>[No Modification] %s", change);
this.getPlugin().log(message);
this.getPlugin().log(MUtil.getStackTraceString(entity.getStackTraceChanged(), true););
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 - Looks like we have one more semicolon than required on this row?

@@ -607,6 +612,7 @@ private void checkActuallyModifiedFixed(String id)
String change = Txt.implode(messages, Txt.parse("<silver> | "));
String message = Txt.parse("<b>[No Modification] %s", change);
this.getPlugin().log(message);
this.getPlugin().log(MUtil.getStackTraceString(entity.getLastStackTraceChanged(), true));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add NPE check? What if the stack trace is null?

public void changed()
{
super.changed();
if (!ConfServer.localPollingEnabled || !MassiveCoreMConf.get().warnOnLocalAlter) return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate source code? If we check for this configuration multiple times, perhaps break out a common method for it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants