test_class.file: ontopia-engine/src/test/java/net/ontopia/infoset/impl/basic/AbstractLocatorTest.java
test_class.identifier: AbstractLocatorTest
test_case.body: @Test
    public void testEqualsNullArgument() {
      LocatorIF locator = createLocator();
      Assert.assertFalse("checking equality with null object", locator.equals(null));
    }
test_case.class_method_signature: AbstractLocatorTest.testEqualsNullArgument()
test_case.full_signature: @Test public void testEqualsNullArgument()
test_case.identifier: testEqualsNullArgument
test_case.invocations: createLocator assertFalse equals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEqualsNullArgument()
focal_class.file: ontopia-engine/src/main/java/net/ontopia/infoset/impl/basic/AbstractLocator.java
focal_class.identifier: AbstractLocator
focal_class.interfaces: implements LocatorIF, Serializable
focal_class.class_method_signature: AbstractLocator.equals(Object object)
focal_class.full_signature: @Override public boolean equals(Object object)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object object)
focal_class.return: boolean
focal_class.signature: boolean equals(Object object)
focal_class.class_method_signature: AbstractLocator.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: AbstractLocator.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
    public boolean equals(Object object) {
      try {
        LocatorIF locator = (LocatorIF)object;
        return getAddress().equals(locator.getAddress()) &&
  	getNotation().equalsIgnoreCase(locator.getNotation());
      } catch (ClassCastException e) {
        return false; // In case the object is not a locator
      } catch (NullPointerException e) {
        return false; // In case the object is null
      }
    }
focal_method.class_method_signature: AbstractLocator.equals(Object object)
focal_method.full_signature: @Override public boolean equals(Object object)
focal_method.identifier: equals
focal_method.invocations: equals getAddress getAddress equalsIgnoreCase getNotation getNotation
focal_method.modifiers: @Override public
focal_method.parameters: (Object object)
focal_method.return: boolean
focal_method.signature: boolean equals(Object object)