0
Fixed

wrong logic in java example of Facade pattern

Ihor Bandrivchak 3 years ago updated by Alexander 3 years 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