From c00949a15c92630bbd4502322b39de829ad03141 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Mon, 17 Dec 2018 09:24:12 +0100 Subject: [PATCH] Revert "Added as type for backward compatibility" This reverts commit 296f9c5091bd62c39ceb81ac8c2e067a4a078aae. --- .../contract/spec/internal/FromFileProperty.groovy | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/internal/FromFileProperty.groovy b/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/internal/FromFileProperty.groovy index 593dd19f1a..b3416238cc 100644 --- a/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/internal/FromFileProperty.groovy +++ b/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/internal/FromFileProperty.groovy @@ -66,14 +66,4 @@ class FromFileProperty implements Serializable { return this.file.bytes } - public T asType(T type) { - switch (type) { - case String: - return (T) asString() - case byte[]: - return (T) asBytes() - } - throw new UnsupportedOperationException("Can't cast to type [${type}]") - } - }