CodeNarc web console
@groovy.util.logging.Log class MyClass { def doSomething(parm) { try { if (parm != null && parm instanceof String) { return parm*2 } } catch (IOException e) { throw e } } private def logError(String message, Throwable e) { log.error(e.message, e) } }
Subscribe
to this
site
Actions ➤
Execute script
New script
Publish script
View recent scripts
Title
Author
Tags
(comma separated)
Captcha question: 9 + 8
Result
Output
Stacktrace
Recent scripts
UnusedPrivateMethod false positive
by
Marcin Erdmann
1 year ago
Covariant clone()
by
Roshan Dawrani
1 year ago
Tom-Bot
by
HamletDRC
1 year ago
with tags
robot
GroovyQuiz#8
by
HamletDRC
2 years ago
with tags
quiz
SuppressWarnings test
by
melix
2 years ago
with tags
suppresswarnings
Sloppy Logging
by
HamletDRC
2 years ago
with tags
quiz
I See Dead Code2
by
HamletDRC
2 years ago
with tags
quiz
I See Dead Code
by
HamletDRC
2 years ago
with tags
quiz
Groovy Quiz #5
by
HamletDRC
2 years ago
with tags
quiz
Effective Groovy
by
HamletDRC
2 years ago
with tags
quiz