/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
final class BeanValidator {
// compare references
return;
}
// check for null
throw new IllegalStateException("could not compare object with null");
}
// resolve self references
return;
}
// resolve cross references
return;
}
// resolve different implementations of the Map.Entry interface
return;
}
throw new IllegalStateException("could not compare objects with different types");
}
// validate elements of arrays
throw new IllegalStateException("could not compare arrays with different lengths");
}
try {
for (int i = 0; i < length; i++) {
}
} finally {
}
return;
}
// special case for collections: do not use equals
// validate objects using equals()
// we assume that the method equals(Object) can be called,
// if the class declares such method
return;
}
throw new IllegalStateException("the first object is not equal to the second one");
}
// validate comparable objects using compareTo()
// we assume that the method compareTo(Object) can be called,
// if the class declares such method and implements interface Comparable
return;
}
throw new IllegalStateException("the first comparable object is not equal to the second one");
}
try {
// validate values of public fields
}
}
// validate values of properties
}
}
// validate contents of maps
}
// validate contents of collections
}
} finally {
}
}
try {
}
catch (IllegalAccessException exception) {
}
}
try {
}
catch (IllegalAccessException exception) {
}
catch (InvocationTargetException exception) {
}
}
throw new IllegalStateException("could not compare collections with different sizes");
}
if (sorted) {
}
throw new IllegalStateException("one collection contains more elements than another one");
}
} else {
try {
break;
} catch (IllegalStateException exception) {
throw new IllegalStateException("one collection does not contain some elements from another one", exception);
}
}
}
}
}
}
}
return false;
}
return true;
}
throw new IllegalStateException("could not resolve cyclic reference");
}
try {
}
catch (NoSuchMethodException exception) {
}
catch (SecurityException exception) {
}
return false;
}
try {
}
catch (SecurityException exception) {
}
return FIELDS;
}
try {
}
catch (IntrospectionException exception) {
}
return DESCRIPTORS;
}
while (0 < size--) {
}
}
}
while (0 < size--) {
}
}
}