0
Fixed

wrong logic in java example of Facade pattern

Ihor Bandrivchak 3 lat temu Ostatnio zmodyfikowane przez Alexander 3 lat temu 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