--- tests/tools/harness/org/apache/harmony/harness/plugins/TestHandler.java 2007-10-26 13:44:25.585997700 +0400 +++ tests/tools/harness/org/apache/harmony/harness/plugins/TestHandler.java 2007-09-26 16:36:19.424706200 +0400 @@ -14,10 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -/** - * @author A.Tyuryushkin - * @version $Revision: 1.15 $ - */ package org.apache.harmony.harness.plugins; import java.io.CharArrayWriter; @@ -37,7 +33,7 @@ public class TestHandler extends DefaultHandler { private final String classID = "TestHandler"; - + private TestIR theTestIR; private String keyName = ""; private String keyValue = ""; @@ -285,12 +281,6 @@ + "The attribute 'ID' of element 'Runner' of test " + theTestIR.getTestID() + " is empty"); } - if (theTestIR.getProperty("date-of-creation") == null - || theTestIR.getProperty("date-of-creation").trim() == "") { - log.add(Level.INFO, methodLogPrefix - + "The attribute 'date-of-creation' of the test '" - + theTestIR.getTestID() + "' is absent or empty"); - } if (theTestIR.getProperty("Description") == null || theTestIR.getProperty("Description").trim() == "") { log.add(Level.INFO, methodLogPrefix @@ -317,19 +307,12 @@ + "The element 'Copyright' of the test '" + theTestIR.getTestID() + "' is empty"); } - if (theTestIR.getProperty((Object) "authors") == null - || ((ArrayList) theTestIR - .getProperty((Object) "authors")).size() <= 0) { - log.add(Level.INFO, methodLogPrefix - + "The element 'Author' of the test '" - + theTestIR.getTestID() + "' is empty"); - } else { + final ArrayList authors = (ArrayList) theTestIR + .getProperty((Object) "authors"); + if (authors != null && authors.size() > 0) { boolean empty = false; - for (int i = 0; i < ((ArrayList) theTestIR - .getProperty((Object) "authors")).size(); i++) { - if (((String) ((ArrayList) theTestIR - .getProperty((Object) "authors")).get(i)) - .trim() == "") + for (int i = 0; i < authors.size(); i++) { + if (((String) authors.get(i)).trim() == "") empty = true; } if (empty)