refactor: use explicit syntax (to add another parameter with next commit)
package springfox.test.contract.swaggertests
+import org.codehaus.groovy.runtime.ResourceGroovyMethods
+
trait FileAccess {
String fileContents(String fileName) {
- this.getClass().getResource("$fileName").text
+ def resource = this.getClass().getResource("$fileName")
+ return ResourceGroovyMethods.getText(resource)
}
}
\ No newline at end of file
