aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-squid
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-08-28 14:49:38 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-08-28 14:49:38 +0200
commit9324c65fc550b13cb5593f2f958e34d246f7c42b (patch)
tree31876ed424cba6d7f3065532e8e321c67369afb2 /sonar-squid
parente0b09631fe4041cfceac233532c9ff84efefb2b0 (diff)
downloadsonarqube-9324c65fc550b13cb5593f2f958e34d246f7c42b.tar.gz
sonarqube-9324c65fc550b13cb5593f2f958e34d246f7c42b.zip
Fix quality flaws
Diffstat (limited to 'sonar-squid')
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java3
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java b/sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java
index 86d50b66421..44da56e117b 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java
@@ -55,6 +55,7 @@ public class LiteralValueHandler extends LineContextHandler {
@Override
boolean matchWithEndOfLine(Line line, StringBuilder pendingLine) {
- return true; //see http://jira.codehaus.org/browse/SONAR-1555
+ //see http://jira.codehaus.org/browse/SONAR-1555
+ return true;
}
}
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java b/sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java
index 0fb92a49738..c430fbaccfc 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java
@@ -60,7 +60,8 @@ public class StringArrayReader extends Reader {
content.append("\r\n");
break;
default:
- throw new IllegalStateException(); // should never happen
+ // should never happen
+ throw new IllegalStateException();
}
}
}