Changeset 9371 in josm for trunk/src/org/openstreetmap/josm/gui/progress
- Timestamp:
- 2016-01-09T23:20:37+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/progress/ProgressTaskId.java
r8846 r9371 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.progress; 3 4 import java.util.Objects; 3 5 4 6 public class ProgressTaskId { … … 16 18 @Override 17 19 public int hashCode() { 18 return id.hashCode();20 return Objects.hash(id); 19 21 } 20 22 21 23 @Override 22 24 public boolean equals(Object obj) { 23 if (this == obj) 24 return true; 25 if (obj == null) 26 return false; 27 if (getClass() != obj.getClass()) 28 return false; 29 ProgressTaskId other = (ProgressTaskId) obj; 30 return other.id.equals(id); 25 if (this == obj) return true; 26 if (obj == null || getClass() != obj.getClass()) return false; 27 ProgressTaskId that = (ProgressTaskId) obj; 28 return Objects.equals(id, that.id); 31 29 } 32 30 }
Note:
See TracChangeset
for help on using the changeset viewer.