Skip to content

Commit

Permalink
Improve accessor type determination
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Jul 4, 2024
1 parent a0dbe02 commit 251bbb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public boolean isExpectedPrefix(final String prefix) {
public static AccessorType get(final boolean isInvoker, final IMethodBinding binding, final MethodSignature signature, final AccessorData data) {
// @Invoker
if (isInvoker) {
if (Modifier.isStatic(binding.getModifiers())) {
if (Modifier.isStatic(binding.getModifiers()) && (data.getTarget().equals("<init>") || data.getTarget().contains("/") || data.getTarget().contains("."))) {
// Okay, this should be more indepth - but its enough for now
return OBJECT_FACTORY;
}
Expand Down

0 comments on commit 251bbb0

Please sign in to comment.