aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-channel/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-05-05 15:08:04 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-05-05 15:08:04 +0200
commitbcc445118956633eb4084581a47edbe5672cefb4 (patch)
treebb9a602d2fe81041dd27ac00766b3895ce2f993e /sonar-channel/src
parentae508ce93d67bb07ee70c2ec5290d6d093e12de4 (diff)
downloadsonarqube-bcc445118956633eb4084581a47edbe5672cefb4.tar.gz
sonarqube-bcc445118956633eb4084581a47edbe5672cefb4.zip
Reduce technical debt
Diffstat (limited to 'sonar-channel/src')
-rw-r--r--sonar-channel/src/main/java/org/sonar/channel/RegexChannel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-channel/src/main/java/org/sonar/channel/RegexChannel.java b/sonar-channel/src/main/java/org/sonar/channel/RegexChannel.java
index cf44de7f3a8..f453522d427 100644
--- a/sonar-channel/src/main/java/org/sonar/channel/RegexChannel.java
+++ b/sonar-channel/src/main/java/org/sonar/channel/RegexChannel.java
@@ -52,7 +52,7 @@ public abstract class RegexChannel<OUTPUT> extends Channel<OUTPUT> {
}
return false;
} catch (StackOverflowError e) {
- throw new RuntimeException(
+ throw new IllegalArgumentException(
"The regular expression "
+ regex
+ " has led to a stack overflow error. "