Revert "Added as type for backward compatibility"

This reverts commit 296f9c5091.
This commit is contained in:
Marcin Grzejszczak
2018-12-17 09:24:12 +01:00
parent 296f9c5091
commit c00949a15c

View File

@@ -66,14 +66,4 @@ class FromFileProperty implements Serializable {
return this.file.bytes
}
public <T> 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}]")
}
}