Merge pull request #12969 from ulisseslima/bael-5851_quick-fix_factory-pattern-generics
bael-5851 - quick fix - Factory Pattern with Generics in Java
This commit is contained in:
commit
0dc391445f
patterns-modules/design-patterns-creational/src
main/java/com/baeldung/factorygeneric
test/java/com/baeldung/factorygeneric
@ -1,4 +1,4 @@
|
||||
package com.baeldung.factoryGeneric;
|
||||
package com.baeldung.factorygeneric;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.baeldung.factoryGeneric;
|
||||
package com.baeldung.factorygeneric;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
2
patterns-modules/design-patterns-creational/src/main/java/com/baeldung/factorygeneric/Notifier.java
2
patterns-modules/design-patterns-creational/src/main/java/com/baeldung/factorygeneric/Notifier.java
@ -1,4 +1,4 @@
|
||||
package com.baeldung.factoryGeneric;
|
||||
package com.baeldung.factorygeneric;
|
||||
|
||||
public interface Notifier<T> {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.baeldung.factoryGeneric;
|
||||
package com.baeldung.factorygeneric;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.baeldung.factoryGeneric;
|
||||
package com.baeldung.factorygeneric;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.baeldung.factoryGeneric;
|
||||
package com.baeldung.factorygeneric;
|
||||
|
||||
public class StringNotifier implements Notifier<String> {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.baeldung.factoryGeneric;
|
||||
package com.baeldung.factorygeneric;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
Loading…
x
Reference in New Issue
Block a user