0
Fixed

wrong logic in java example of Facade pattern

Ihor Bandrivchak 6 months ago updated by Alexander Shvets 6 months ago 1

https://refactoring.guru/uk/design-patterns/facade/java/example#example-0--facade-VideoConversionFacade-java

if (format.equals("mp4")) {
            destinationCodec = new OggCompressionCodec();
        } else {
            destinationCodec = new MPEG4CompressionCodec();
        }

if i'm understanding right, here must be vice versa