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

Incorrect expression (COPY_PASTE_ERROR) in RowConverter.java: 345 #55

Open
StrongestNumber9 opened this issue Jun 24, 2024 · 1 comment
Labels
bug Something isn't working Coverity Issues found by coverity

Comments

@StrongestNumber9
Copy link
Contributor

Describe the bug

 *** CID 1594357:  Incorrect expression  (COPY_PASTE_ERROR)
/src/main/java/com/teragrep/pth_06/task/s3/RowConverter.java: 345 in com.teragrep.pth_06.task.s3.RowConverter.eventToSource()()
339             else {
340                 source_hostname = new byte[]{};
341             }
342     
343     
344             Fragment sourceSourceFragment = rfc5424Frame.structuredData.getValue(eventNodeSourceSource);
>>>     CID 1594357:  Incorrect expression  (COPY_PASTE_ERROR)
>>>     "sourceHostnameFragment" in "sourceHostnameFragment.isStub" looks like a copy-paste error.
345             if (sourceHostnameFragment.isStub) {
346                 sourceSourceFragment = rfc5424Frame.structuredData.getValue(eventNodeRelaySource);
347             }
348     
349             byte[] source_source;
350             if (!sourceSourceFragment.isStub) {

Software version

3.0.1

@StrongestNumber9
Copy link
Contributor Author

See also #54 as it is very copypastey codeblock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Coverity Issues found by coverity
Projects
None yet
Development

No branches or pull requests

1 participant