Skip to content

Conversation

@tmihalac
Copy link

No description provided.

Signed-off-by: Theodor Mihalache <tmihalac@tmihalac-thinkpadp1gen7.rmtusfl.csb>
Signed-off-by: Theodor Mihalache <tmihalac@tmihalac-thinkpadp1gen7.rmtusfl.csb>
@tmihalac tmihalac requested a review from zvigrinberg December 28, 2025 08:00
Signed-off-by: Theodor Mihalache <tmihalac@tmihalac-thinkpadp1gen7.rmtusfl.csb>
Copy link
Collaborator

@zvigrinberg zvigrinberg left a comment

Choose a reason for hiding this comment

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

@tmihalac Great job.
just 2 minor comments.
Please handle, and we'll merge it.
Thanks.

"native","strictfp","default","transient","volatile","sealed"
# 'non-sealed' is two tokens; irrelevant for methods here
}
JAVA_ANNOTATION_SYMBOL = '@'
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tmihalac Why not reusing it by importing it from

?

Copy link
Author

Choose a reason for hiding this comment

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

right


elif state == LINE:
nl = s.find("\n", i)
nl = find("\n", i)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tmihalac This is not clear at all and very confusing , you're using here ( and in more places in the code) a local variable of the top level function is_java_type which containing an object' method ( in this case it's find method of a string), i would recommend granting to this variable a better name like find_in_source and refactor it accordingly ( to understand it in the code review , this alone took me few minutes), as the name find is too general and can be ambiguous easily.


def is_ws(ch: str) -> bool:
return ch <= " " and ch in " \t\r\n\f\v"
find = s.find
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tmihalac

Suggested change
find = s.find
find_in_source = s.find

Signed-off-by: Theodor Mihalache <tmihalac@tmihalac-thinkpadp1gen7.rmtusfl.csb>
Signed-off-by: Theodor Mihalache <tmihalac@tmihalac-thinkpadp1gen7.rmtusfl.csb>
@tmihalac tmihalac requested a review from zvigrinberg December 29, 2025 08:50
@tmihalac
Copy link
Author

/retest vulnerability-analysis-on-pr

Copy link
Collaborator

@zvigrinberg zvigrinberg left a comment

Choose a reason for hiding this comment

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

LGTM Approved.

@tmihalac tmihalac merged commit f5f57dc into RHEcosystemAppEng:main Dec 29, 2025
1 check passed
TamarW0 pushed a commit that referenced this pull request Dec 29, 2025
* Added constructor support to java transitive search

Signed-off-by: Theodor Mihalache <tmihalac@tmihalac-thinkpadp1gen7.rmtusfl.csb>
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.

2 participants