-
Notifications
You must be signed in to change notification settings - Fork 186
Header nullability #1395
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
Header nullability #1395
Conversation
MauriceVanVeen
left a comment
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.
LGTM
| t = System.nanoTime() - t; | ||
| System.out.println("Time: " + t / 1000 / 1000.0 +"ms, Op/sec: "+(max*1_000_000_000L/t)); | ||
| } | ||
| // @Test |
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.
Can the commented out code be removed?
| go-version: '1.21.4' | ||
| - name: Install Nats Server | ||
| run: | | ||
| pkill -9 nats-server 2>/dev/null || true |
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.
I originally thought the problem was servers were being left around, and had been meaning to add this anyway.
| cp main ~/.local/bin/nats-server | ||
| cd .. | ||
| rm -rf nats-server | ||
| git checkout tags/v2.11.8 -b release |
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.
Right now I need to run against 2.11.8 instead of head of main. Really need to figure out how to just get the latest release. The scripts in use elsewhere are unreliable.
| cd .. | ||
| rm -rf nats-server | ||
| git checkout tags/v2.11.8 -b release | ||
| go build -o ~/.local/bin/nats-server |
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.
Reflects not from Neil on simplifying the building and placing the nats-server
|
|
||
| ```bash | ||
| nats-server --conf src/test/resources/tls.conf | ||
| nats-server --config src/test/resources/tls.conf |
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.
This had been wrong a long time.
| private final Map<String, Integer> lengthMap; | ||
| private final boolean readOnly; | ||
| private byte @Nullable [] serialized; | ||
| private byte[] serialized; |
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.
The Nullable was added from a user's PR but is not really necessary.
| * @param dest the byte array to write to | ||
| * @return the length of the header | ||
| */ | ||
| @SuppressWarnings("deprecation") |
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.
I moved this to comments closer to the lines of code.
| private void assertKeyIgnoreCaseContainsValues(Headers headers, List<String> keys, List<String> values) { | ||
| for (String k : keys) { | ||
| List<String> hVals = headers.getIgnoreCase(k); | ||
| assertNotNull(hVals); |
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.
pretty much all of the test changes where to check for null as the new annotation shows up with warnings from IntelliJ
No description provided.