lint/test/linters/groovy/groovy_good_01.groovy

12 lines
341 B
Groovy
Raw Permalink Normal View History

// disable ClassNameSameAsFilename because super-linter follows a specific
// file name for tests.
// groovylint-disable-next-line ClassNameSameAsFilename
2020-07-14 10:28:58 -04:00
class Example {
2020-11-06 17:18:48 -05:00
static void main(String[] args) {
File file = new File('E:/Example.txt')
2020-11-06 17:18:48 -05:00
println "The file ${file.absolutePath} has ${file.length()} bytes"
}
2020-07-14 10:28:58 -04:00
}