mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-06-26 14:34:53 +02:00
Document ProtectedRegion's comparable behavior.
ProtectedRegion's compareTo is inconsistent with equals when comparing regions across managers.
This commit is contained in:
parent
0cb84927a3
commit
c860fce299
|
@ -46,6 +46,10 @@
|
||||||
* against it.
|
* against it.
|
||||||
*
|
*
|
||||||
* <p>Instances can be modified and access from several threads at a time.</p>
|
* <p>Instances can be modified and access from several threads at a time.</p>
|
||||||
|
*
|
||||||
|
* Note: this class has a natural ordering that is inconsistent with equals.
|
||||||
|
* Regions with identical ids (and also the same priority) may exist in different managers (or no manager at all),
|
||||||
|
* so care should be taken when comparing regions that have not been obtained from a single manager.
|
||||||
*/
|
*/
|
||||||
public abstract class ProtectedRegion implements ChangeTracked, Comparable<ProtectedRegion> {
|
public abstract class ProtectedRegion implements ChangeTracked, Comparable<ProtectedRegion> {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user