You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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;
}
}
The text was updated successfully, but these errors were encountered:
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;
}
The text was updated successfully, but these errors were encountered: