mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 04:15:07 +00:00
Fix unused generic type in PrototypeTest
This commit is contained in:
1 parent
56ba78a5e9
commit
ed1852a789
1 file changed
+2
-2
@@ -56,7 +56,7 @@ public class PrototypeTest<P extends Prototype> {
|
|||||||
/**
|
/**
|
||||||
* The tested prototype instance
|
* The tested prototype instance
|
||||||
*/
|
*/
|
||||||
private final Prototype testedPrototype;
|
private final P testedPrototype;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The expected {@link Prototype#toString()} value
|
* The expected {@link Prototype#toString()} value
|
||||||
@@ -69,7 +69,7 @@ public class PrototypeTest<P extends Prototype> {
|
|||||||
* @param testedPrototype The tested prototype instance
|
* @param testedPrototype The tested prototype instance
|
||||||
* @param expectedToString The expected {@link Prototype#toString()} value
|
* @param expectedToString The expected {@link Prototype#toString()} value
|
||||||
*/
|
*/
|
||||||
public PrototypeTest(final Prototype testedPrototype, final String expectedToString) {
|
public PrototypeTest(final P testedPrototype, final String expectedToString) {
|
||||||
this.expectedToString = expectedToString;
|
this.expectedToString = expectedToString;
|
||||||
this.testedPrototype = testedPrototype;
|
this.testedPrototype = testedPrototype;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user