From: <aki...@us...> - 2013-05-31 11:57:38
|
Revision: 9250 http://sourceforge.net/p/gridarta/code/9250 Author: akirschbaum Date: 2013-05-31 11:57:31 +0000 (Fri, 31 May 2013) Log Message: ----------- Add nullable annotations. Modified Paths: -------------- trunk/src/model/src/test/java/net/sf/gridarta/model/archetypetype/ArchetypeTypeSetParserTest.java Modified: trunk/src/model/src/test/java/net/sf/gridarta/model/archetypetype/ArchetypeTypeSetParserTest.java =================================================================== --- trunk/src/model/src/test/java/net/sf/gridarta/model/archetypetype/ArchetypeTypeSetParserTest.java 2013-05-31 09:02:44 UTC (rev 9249) +++ trunk/src/model/src/test/java/net/sf/gridarta/model/archetypetype/ArchetypeTypeSetParserTest.java 2013-05-31 11:57:31 UTC (rev 9250) @@ -41,11 +41,13 @@ /** * The {@link ErrorView} used for parsing. */ + @NotNull private final ErrorView errorView = new TestErrorView(); /** * The {@link ErrorViewCollector} used for parsing. */ + @NotNull private final ErrorViewCollector errorViewCollector = new ErrorViewCollector(errorView, new File("*input*")); /** @@ -458,7 +460,7 @@ * @throws ParserConfigurationException if the test fails * @throws UnsupportedEncodingException if the test fails */ - private void check(final String typesXml, final boolean expectedHasErrors, final String expectedResult) throws ParserConfigurationException, UnsupportedEncodingException { + private void check(@NotNull final String typesXml, final boolean expectedHasErrors, @NotNull final String expectedResult) throws ParserConfigurationException, UnsupportedEncodingException { final ArchetypeTypeSet archetypeTypeSet = new ArchetypeTypeSet(); final ArchetypeTypeSetParser parser = createArchetypeTypeSetParser(archetypeTypeSet); parser.loadTypesFromXML(errorViewCollector, createInputSource(typesXml)); @@ -472,7 +474,8 @@ * @return the archetype type set parser instance * @throws ParserConfigurationException if the parser cannot be created */ - private static ArchetypeTypeSetParser createArchetypeTypeSetParser(final ArchetypeTypeSet archetypeTypeSet) throws ParserConfigurationException { + @NotNull + private static ArchetypeTypeSetParser createArchetypeTypeSetParser(@NotNull final ArchetypeTypeSet archetypeTypeSet) throws ParserConfigurationException { final XmlHelper xmlHelper = new XmlHelper(); final ArchetypeAttributeFactory archetypeAttributeFactory = new TestArchetypeAttributeFactory(); final ArchetypeAttributeParser archetypeAttributeParser = new ArchetypeAttributeParser(archetypeAttributeFactory); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |