Revert "Added as type for backward compatibility"
This reverts commit 296f9c5091.
This commit is contained in:
@@ -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}]")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user