(Object o)
| 25 | } |
| 26 | |
| 27 | @Override |
| 28 | public boolean equals(Object o) { |
| 29 | if (this == o) return true; |
| 30 | if (o == null || getClass() != o.getClass()) return false; |
| 31 | |
| 32 | APIItem item = (APIItem) o; |
| 33 | |
| 34 | if (item.getMethod() == null) { |
| 35 | if (this.method == null) { |
| 36 | if (item.getPath().equalsIgnoreCase(this.path)) { |
| 37 | return true; |
| 38 | } |
| 39 | |
| 40 | return false; |
| 41 | } else { |
| 42 | return false; |
| 43 | } |
| 44 | } else { |
| 45 | if (this.method == null) { |
| 46 | return false; |
| 47 | } else { |
| 48 | if (item.getMethod().equalsIgnoreCase(this.method) && item.getPath().equalsIgnoreCase(this.path)) { |
| 49 | return true; |
| 50 | } |
| 51 | |
| 52 | return false; |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | } |
no outgoing calls
no test coverage detected