issue #333 snapshot version fixed

This commit is contained in:
Crossy147 2016-02-16 00:05:28 +01:00
parent 8fabc861b3
commit 2fa705ab59
2 changed files with 40 additions and 13 deletions

View File

@ -1,21 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <!--
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> The MIT License
<parent> Copyright (c) 2014 Ilkka Seppälä
<artifactId>java-design-patterns</artifactId>
<groupId>com.iluwatar</groupId> Permission is hereby granted, free of charge, to any person obtaining a copy
<version>1.10.0-SNAPSHOT</version> of this software and associated documentation files (the "Software"), to deal
</parent> in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.iluwatar</groupId>
<artifactId>java-design-patterns</artifactId>
<version>1.11.0-SNAPSHOT</version>
</parent>
<artifactId>factory-kit</artifactId>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<artifactId>factory-kit</artifactId>
</project> </project>

View File

@ -3,7 +3,7 @@ package com.iluwatar.factorykit;
import java.util.function.Supplier; import java.util.function.Supplier;
/** /**
* Functional interface that allows adding builder with name to the factory * Functional interface that allows adding builder with name to the factory.
*/ */
public interface Builder { public interface Builder {
void add(WeaponType name, Supplier<Weapon> supplier); void add(WeaponType name, Supplier<Weapon> supplier);