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

Factory detection bug. #13

Open
sadeghjafari5528 opened this issue Jul 12, 2022 · 0 comments
Open

Factory detection bug. #13

sadeghjafari5528 opened this issue Jul 12, 2022 · 0 comments
Assignees

Comments

@sadeghjafari5528
Copy link
Collaborator

In the following example factory can not detected.
if we remove "implements Y" this can detect factory but if we keep it this algorithm can not detect factory pattern in this example.

example:

package com.products;
import com.functions.DecodedImage;

class X
{

}

interface Y
{

}

class GifReader extends X implements Y{
private DecodedImage decodedImage;

public GifReader(String image, int size) {
    this.decodedImage = new DecodedImage(image);
}

public DecodedImage getDecodeImage() {
    return decodedImage;
}

public int getEncodeImage() {
    return 0;
}

}

@sadeghjafari5528 sadeghjafari5528 self-assigned this Jul 12, 2022
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

No branches or pull requests

1 participant