@@ -600,7 +600,8 @@ public class ProjectHelperImpl extends ProjectHelper { | |||||
private static void handleElement(ProjectHelperImpl helperImpl, DocumentHandler parent, | private static void handleElement(ProjectHelperImpl helperImpl, DocumentHandler parent, | ||||
Target target, String elementName, AttributeList attrs) throws SAXParseException { | Target target, String elementName, AttributeList attrs) throws SAXParseException { | ||||
if (elementName.equals("description")) { | if (elementName.equals("description")) { | ||||
new DescriptionHandler(helperImpl, parent); | |||||
// created for side effect | |||||
new DescriptionHandler(helperImpl, parent); //NOSONAR | |||||
} else if (helperImpl.project.getDataTypeDefinitions().get(elementName) != null) { | } else if (helperImpl.project.getDataTypeDefinitions().get(elementName) != null) { | ||||
new DataTypeHandler(helperImpl, parent, target).init(elementName, attrs); | new DataTypeHandler(helperImpl, parent, target).init(elementName, attrs); | ||||
} else { | } else { | ||||
@@ -2026,7 +2026,8 @@ public class Javadoc extends Task { | |||||
// is the href a valid URL | // is the href a valid URL | ||||
try { | try { | ||||
final URL base = new URL("file://."); | final URL base = new URL("file://."); | ||||
new URL(base, la.getHref()); | |||||
// created for the side effect of throwing a MalformedURLException | |||||
new URL(base, la.getHref()); //NOSONAR | |||||
link = la.getHref(); | link = la.getHref(); | ||||
} catch (final MalformedURLException mue) { | } catch (final MalformedURLException mue) { | ||||
// ok - just skip | // ok - just skip | ||||
@@ -183,7 +183,9 @@ public class MacroDef extends AntlibDefinition { | |||||
ret.setTaskName("sequential"); | ret.setTaskName("sequential"); | ||||
ret.setNamespace(""); | ret.setNamespace(""); | ||||
ret.setQName("sequential"); | ret.setQName("sequential"); | ||||
new RuntimeConfigurable(ret, "sequential"); | |||||
// stores RuntimeConfigurable as "RuntimeConfigurableWrapper" | |||||
// in ret as side effect | |||||
new RuntimeConfigurable(ret, "sequential"); //NOSONAR | |||||
final int size = nestedSequential.getNested().size(); | final int size = nestedSequential.getNested().size(); | ||||
for (int i = 0; i < size; ++i) { | for (int i = 0; i < size; ++i) { | ||||
UnknownElement e = | UnknownElement e = | ||||
@@ -78,7 +78,8 @@ public class AntVersion extends Task implements Condition { | |||||
} | } | ||||
if (atLeast != null) { | if (atLeast != null) { | ||||
try { | try { | ||||
new DeweyDecimal(atLeast); | |||||
// only created for side effect | |||||
new DeweyDecimal(atLeast); //NOSONAR | |||||
} catch (NumberFormatException e) { | } catch (NumberFormatException e) { | ||||
throw new BuildException( | throw new BuildException( | ||||
"The 'atleast' attribute is not a Dewey Decimal eg 1.1.0 : " | "The 'atleast' attribute is not a Dewey Decimal eg 1.1.0 : " | ||||
@@ -86,7 +87,8 @@ public class AntVersion extends Task implements Condition { | |||||
} | } | ||||
} else { | } else { | ||||
try { | try { | ||||
new DeweyDecimal(exactly); | |||||
// only created for side effect | |||||
new DeweyDecimal(exactly); //NOSONAR | |||||
} catch (NumberFormatException e) { | } catch (NumberFormatException e) { | ||||
throw new BuildException( | throw new BuildException( | ||||
"The 'exactly' attribute is not a Dewey Decimal eg 1.1.0 : " | "The 'exactly' attribute is not a Dewey Decimal eg 1.1.0 : " | ||||
@@ -42,7 +42,7 @@ public class AncestorAnalyzer extends AbstractAnalyzer { | |||||
public AncestorAnalyzer() { | public AncestorAnalyzer() { | ||||
// force BCEL classes to load now | // force BCEL classes to load now | ||||
try { | try { | ||||
new ClassParser("force"); | |||||
new ClassParser("force"); //NOSONAR | |||||
} catch (Exception e) { | } catch (Exception e) { | ||||
// all released versions of BCEL may throw an IOException | // all released versions of BCEL may throw an IOException | ||||
// here, but BCEL's trunk does no longer declare to do so | // here, but BCEL's trunk does no longer declare to do so | ||||
@@ -41,7 +41,7 @@ public class FullAnalyzer extends AbstractAnalyzer { | |||||
public FullAnalyzer() { | public FullAnalyzer() { | ||||
// force BCEL classes to load now | // force BCEL classes to load now | ||||
try { | try { | ||||
new ClassParser("force"); | |||||
new ClassParser("force"); //NOSONAR | |||||
} catch (Exception e) { | } catch (Exception e) { | ||||
// all released versions of BCEL may throw an IOException | // all released versions of BCEL may throw an IOException | ||||
// here, but BCEL's trunk does no longer declare to do so | // here, but BCEL's trunk does no longer declare to do so | ||||