-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
@@ -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)) { |
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.
Let's also mention why this change was needed in comments
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.
Added the comment
@Override | ||
public Object invoke(MethodInvocation invocation) throws Throwable { | ||
// Log method details before invocation | ||
System.out.println("Before test method invocation"); |
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.
Do we need this log lines?
@@ -0,0 +1,96 @@ | |||
package flipkart.tef.bizlogics; |
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.
Add copyright header (check peer class files)
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.
Added
@@ -80,6 +81,11 @@ private Map<DataAdapterKey<?>, Field> buildCacheOfMutableFields() { | |||
|
|||
@SuppressWarnings("rawtypes") | |||
public static String getEmittedDataName(Class<? extends DataAdapterBizlogic> clazz) { |
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 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.
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.
Its been used in FlowBuilder also.
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
No description provided.