equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
283 |
283 |
284 /** |
284 /** |
285 * Checks two MBeanServerPermission objects for equality. Checks that |
285 * Checks two MBeanServerPermission objects for equality. Checks that |
286 * <i>obj</i> is an MBeanServerPermission, and represents the same |
286 * <i>obj</i> is an MBeanServerPermission, and represents the same |
287 * list of allowable actions as this object. |
287 * list of allowable actions as this object. |
288 * <P> |
288 * |
289 * @param obj the object we are testing for equality with this object. |
289 * @param obj the object we are testing for equality with this object. |
290 * @return true if the objects are equal. |
290 * @return true if the objects are equal. |
291 */ |
291 */ |
292 public boolean equals(Object obj) { |
292 public boolean equals(Object obj) { |
293 if (obj == this) |
293 if (obj == this) |