-
Notifications
You must be signed in to change notification settings - Fork 49
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
Conversation
Ok -- should fix the null file pubsub case... Can you give it a whirl and see if it fixes for you as well? |
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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.