0
已修复

wrong logic in java example of Facade pattern

Ihor Bandrivchak 3 年 前 更新人: Alexander 3 年 前 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

UserEcho 的客户支持