Skip to content
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

Validator message window and report contents #439

Merged
merged 56 commits into from
Sep 6, 2022

Conversation

grafnu
Copy link
Collaborator

@grafnu grafnu commented Sep 2, 2022

Addresses multiple issues pertaining to validator. Includes a refactor that processes "recent messages" rather than just the "ast message" -- so should be more generalizable and scalable.

@grafnu
Copy link
Collaborator Author

grafnu commented Sep 5, 2022

Ok -- should fix the null file pubsub case... Can you give it a whirl and see if it fixes for you as well?

Copy link
Collaborator

@noursaidi noursaidi left a comment

Choose a reason for hiding this comment

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

Thanks, that's fixed it!

@@ -9,15 +9,15 @@
import java.util.Optional;
import java.util.regex.Pattern;

public class DeviceExceptionManager {
class DeviceExceptionManager {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a lint-based change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes -- public classes require javadoc, and there's no need for this to be public since it's only used internally.

return new File(deviceDir, String.format("%s_%s.%s", subType, subFolder, suffix));
boolean invalid = subFolder == null || "update".equals(subFolder);
return new File(deviceDir,
String.format("%s%s.%s", subType, invalid ? "" : "_" + subFolder, suffix));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion, use the string format to without additional tiny + string concat in the arguments?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated to make it, er, less ugly.

@grafnu grafnu merged commit 62fa1f1 into faucetsdn:master Sep 6, 2022
noursaidi pushed a commit to noursaidi/udmi that referenced this pull request Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants