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

Annotations to support config/counters documentation/validation #1593

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

nbradac
Copy link
Contributor

@nbradac nbradac commented Apr 23, 2024

Very much a work in progress. Much of this is still pretty rough. But I think the general approach is more or less validated (it works at least...). Biggest/current open questions (for me) are around the right way to get this integrated correctly into the build.

There's now a task that validates the aeron counters between java and C

{
final String id = matcher.group(1);

if (counterInfo.id == Integer.parseInt(id))

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
@nbradac nbradac changed the title [Java] initial work Annotations to support config/counters documentation/validation Apr 30, 2024
{
final Process process = new ProcessBuilder()
.redirectErrorStream(true)
.command(new String[] {"grep", "-r", "-n", "-E", "^" + pattern, sourceDir})

Check warning

Code scanning / CodeQL

Executing a command with a relative path Medium

Command with a relative path 'grep' is executed.
break;
}

if (configInfo.isTimeValue)

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
isTimeValue
may be null at this access as suggested by
this
null guard.
}
catch (final Exception e)
{
e.printStackTrace(System.err);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we exit this method here? If we've run into a problem is valid to continue processing.


private String message;

private ByteArrayOutputStream ba_out;
Copy link
Contributor

Choose a reason for hiding this comment

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

Variable naming convention, please use baOut

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

2 participants