diff --git a/README.md b/README.md index 3592232..959cfde 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Include the dependency to your project's pom.xml file: io.github.openfeign.form feign-form - 3.2.2 + 3.3.0 ... @@ -124,12 +124,12 @@ Include the dependencies to your project's pom.xml file: io.github.openfeign.form feign-form - 3.2.2 + 3.3.0 io.github.openfeign.form feign-form-spring - 3.2.2 + 3.3.0 ... diff --git a/feign-form-spring/pom.xml b/feign-form-spring/pom.xml index 161ce10..c39ea0a 100644 --- a/feign-form-spring/pom.xml +++ b/feign-form-spring/pom.xml @@ -27,7 +27,7 @@ limitations under the License. io.github.openfeign.form parent - 3.2.2 + 3.3.0 Open Feign Forms Extension for Spring @@ -54,7 +54,7 @@ limitations under the License. org.springframework.cloud spring-cloud-starter-feign - 1.3.5.RELEASE + 1.4.4.RELEASE test diff --git a/feign-form/pom.xml b/feign-form/pom.xml index f749067..6111c46 100644 --- a/feign-form/pom.xml +++ b/feign-form/pom.xml @@ -27,7 +27,7 @@ limitations under the License. io.github.openfeign.form parent - 3.2.2 + 3.3.0 Open Feign Forms Core diff --git a/feign-form/src/main/java/feign/form/FormData.java b/feign-form/src/main/java/feign/form/FormData.java index e30a83b..b704c8a 100644 --- a/feign-form/src/main/java/feign/form/FormData.java +++ b/feign-form/src/main/java/feign/form/FormData.java @@ -17,27 +17,20 @@ package feign.form; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; +import lombok.Value; /** * This object encapsulates a byte array and its associated content type. * Use if if you want to specify the content type of your provided byte array. + * + * @author Guillaume Simard + * @since 24.03.2018 */ - +@Value @SuppressFBWarnings({"EI_EXPOSE_REP", "EI_EXPOSE_REP2"}) -public final class FormData { - private final String contentType; - private final byte[] data; - - public FormData (String contentType, byte[] data) { - this.contentType = contentType; - this.data = data; - } +public class FormData { - public String getContentType () { - return contentType; - } + String contentType; - public byte[] getData () { - return data; - } + byte[] data; } diff --git a/feign-form/src/main/java/feign/form/multipart/FormDataWriter.java b/feign-form/src/main/java/feign/form/multipart/FormDataWriter.java index 07e70c7..952a225 100644 --- a/feign-form/src/main/java/feign/form/multipart/FormDataWriter.java +++ b/feign-form/src/main/java/feign/form/multipart/FormDataWriter.java @@ -20,7 +20,13 @@ import lombok.val; +/** + * + * @author Guillaume Simard + * @since 24.03.2018 + */ public class FormDataWriter extends AbstractWriter { + @Override public boolean isApplicable (Object value) { return value instanceof FormData; diff --git a/pom.xml b/pom.xml index 191453e..4e6bbe6 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ limitations under the License. io.github.openfeign.form parent - 3.2.2 + 3.3.0 pom @@ -69,7 +69,7 @@ limitations under the License. https://github.com/OpenFeign/feign-form scm:git:https://github.com/OpenFeign/feign-form.git scm:git:https://github.com/OpenFeign/feign-form.git - 3.2.2 + 3.3.0 @@ -90,7 +90,7 @@ limitations under the License. Travis - https://travis-ci.org/infobip/popout + https://travis-ci.org/OpenFeign/feign-form @@ -102,6 +102,9 @@ limitations under the License. Tomasz Juchniewicz tjuchniewicz@gmail.com + + Guillaume Simard + @@ -123,7 +126,7 @@ limitations under the License. io.github.openfeign feign-core - 9.5.1 + 9.6.0 provided @@ -139,7 +142,7 @@ limitations under the License. io.github.openfeign feign-jackson - 9.5.1 + 9.6.0 test