switch (topTag.state)
{
case Tag.STATE_WROTE_STAG:
case Tag.STATE_WROTE_ATTR:
xw.write(">");
// we fall through here since we have just finished writing out a tag,
// and we want to pretty indent the new tag on a new line.
//$FALL-THROUGH$
case Tag.STATE_WROTE_CHILD:
xw.newline();
xw.indent(topTag.level + 1);
break;
default:
throw new XmlWriteException("writeSTag: " + name + " state=" + topTag.state);
}
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/91467c56-e040-43bf-a3bc-dae0fce741e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
switch (topTag.state)
{
case Tag.STATE_WROTE_STAG:
case Tag.STATE_WROTE_ATTR:
xw.write(">");
case Tag.STATE_WROTE_CHILD:
xw.newline();
xw.indent(topTag.level + 1);
break;
default:
throw new XmlWriteException("writeSTag: " + name + " state=" + topTag.state);
}
This comment is Eclipse specific. While we could think about supporting such cases to not raise an issue in this case, we think it is not the best approach to have some incitation towards cluttering the code with tool specific comment to shutdown warnings and rather enforce the use of marking issues as won't fix in SonarQube UI. This is the same idea behind not enforcing usages of // NOSONARThe tool should not be intrusive to the code.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/16646dde-cefe-480c-aefd-8c373d1226ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Senior Developer
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/c7b85b47-a636-4944-ab1f-d69598591723%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am now closing this topic. To be clear : we are not going to implement a tool specific comment which was introduced to deal with old version of Java. Given your feedback and the lack of demand for it I am neither creating a ticket for supporting @SuppressWarning("fallthrough") as there seems to be no interest for it.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/25745b78-b718-4075-b11c-14a352b56f5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.