~hjd/ubuntu/wily/xmlgraphics-commons/debian-merged

« back to all changes in this revision

Viewing changes to src/java/org/apache/xmlgraphics/image/loader/XMLNamespaceEnabledImageFlavor.java

  • Committer: Hans Joachim Desserud
  • Date: 2015-11-11 18:22:53 UTC
  • mfrom: (9.1.5 sid)
  • Revision ID: hans_joachim_desserud-20151111182253-zwi0frfm97j0wddn
  * Merge from Debian unstable.  Remaining changes:
    - d/control: Drop dependencies required for unit testing as they
      include libmockito-java which would pull maven into main, disable unit
      test execution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id: XMLNamespaceEnabledImageFlavor.java 734638 2009-01-15 09:19:32Z jeremias $ */
 
18
/* $Id: XMLNamespaceEnabledImageFlavor.java 1681698 2015-05-26 07:49:35Z ssteiner $ */
19
19
 
20
20
package org.apache.xmlgraphics.image.loader;
21
21
 
45
45
        return this.namespace;
46
46
    }
47
47
 
 
48
    @Override
 
49
    public boolean equals(Object o) {
 
50
        if (this == o) { return true; }
 
51
        if (o == null || getClass() != o.getClass()) { return false; }
 
52
        if (!super.equals(o)) { return false; }
 
53
 
 
54
        XMLNamespaceEnabledImageFlavor that = (XMLNamespaceEnabledImageFlavor) o;
 
55
 
 
56
        if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) { return false; }
 
57
 
 
58
        return true;
 
59
    }
 
60
 
 
61
    @Override
 
62
    public int hashCode() {
 
63
        int result = super.hashCode();
 
64
        result = 31 * result + (namespace != null ? namespace.hashCode() : 0);
 
65
        return result;
 
66
    }
48
67
}