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

Fix for Guice Wrapped Class #18

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

vsgamb
Copy link
Contributor

@vsgamb vsgamb commented Dec 19, 2024

No description provided.

@@ -80,6 +81,11 @@ private Map<DataAdapterKey<?>, Field> buildCacheOfMutableFields() {

@SuppressWarnings("rawtypes")
public static String getEmittedDataName(Class<? extends DataAdapterBizlogic> clazz) {
if (clazz.getName().contains(BytecodeGen.ENHANCER_BY_GUICE_MARKER)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's also mention why this change was needed in comments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the comment

@Override
public Object invoke(MethodInvocation invocation) throws Throwable {
// Log method details before invocation
System.out.println("Before test method invocation");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this log lines?

@@ -0,0 +1,96 @@
package flipkart.tef.bizlogics;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add copyright header (check peer class files)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@@ -80,6 +81,11 @@ private Map<DataAdapterKey<?>, Field> buildCacheOfMutableFields() {

@SuppressWarnings("rawtypes")
public static String getEmittedDataName(Class<? extends DataAdapterBizlogic> clazz) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you check once if this method really has to be public? If not, can we make it private and run the test via reflection, or make it package private atleast.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its been used in FlowBuilder also.

Copy link
Collaborator

@bageshwar bageshwar left a comment

Choose a reason for hiding this comment

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

LGTM

@bageshwar bageshwar merged commit 0f6461e into flipkart-incubator:main Dec 20, 2024
1 check passed
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