All changes in this commit are discarded:
array.length
by a variable in loop condition are not retained.Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r20599:20970 https://svn.osgeo.org/geotools/trunk/modules/library/coverage/src/main/java/org/geotools/coverage/CategoryList.java
Revision 20599 | Revision 20970 |
---|---|
/* * Geotools 2 - OpenSource mapping toolkit * (C) 2003, Geotools Project Management Committee (PMC) * (C) 2001, Institut de Recherche pour le Développement * * This library is free software; you can redistribute it and/or |
/* * GeoTools - OpenSource mapping toolkit * http://geotools.org * (C) 2003-2006, Geotools Project Management Committee (PMC) * (C) 2001, Institut de Recherche pour le Développement * * This library is free software; you can redistribute it and/or |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * * This package contains documentation from OpenGIS specifications. * OpenGIS consortium's work is fully acknowledged here. */ |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * This package contains documentation from OpenGIS specifications. * OpenGIS consortium's work is fully acknowledged here. */ |
final boolean isGeophysics = (this instanceof GeophysicsCategoryList);
assert (inverse != null) == isGeophysics;
this.categories = categories = (Category[]) categories.clone();
for (int i=0; i<categories.length; i++) {
categories[i] = categories[i].geophysics(isGeophysics);
}
Arrays.sort(categories, this); |
final boolean isGeophysics = (this instanceof GeophysicsCategoryList); assert (inverse != null) == isGeophysics; this.categories = categories = (Category[]) categories.clone(); final int categoriesLength=categories.length; for (int i=0; i<categoriesLength; i++) { categories[i] = categories[i].geophysics(isGeophysics); } Arrays.sort(categories, this); |
range1.getMinValue(), range1.getMaxValue(),
range2.getMinValue(), range2.getMaxValue()
};
for (int j=0; j<args.length; j++) {
if (args[j] instanceof Number) {
final float value = ((Number) args[j]).floatValue();
if (Float.isNaN(value)) { |
range1.getMinValue(), range1.getMaxValue(), range2.getMinValue(), range2.getMaxValue() }; final int argsLength=args.length; for (int j=0; j<argsLength; j++) { if (args[j] instanceof Number) { final float value = ((Number) args[j]).floatValue(); if (Float.isNaN(value)) { |
*/
Category nodata = Category.NODATA;
final long nodataBits = Double.doubleToRawLongBits(Double.NaN);
for (int i=categories.length; --i>=0;) {
final Category candidate = categories[i];
final double value = candidate.geophysics(true).minimum;
if (Double.isNaN(value)) {
nodata = candidate; |
*/ Category nodata = Category.NODATA; final long nodataBits = Double.doubleToRawLongBits(Double.NaN); for (int i=categoriesLength; --i>=0;) { final Category candidate = categories[i]; //////// // // final String candidateName=candidate.getName().toString().trim(); final String noDataName=Vocabulary.formatInternational(VocabularyKeys.NODATA).toString().trim(); if(candidateName.equalsIgnoreCase(noDataName)){ nodata = candidate; break; } // // //////// final double value = candidate.geophysics(true).minimum; if (Double.isNaN(value)) { nodata = candidate; |
*/
double range = 0;
Category main = null;
for (int i=categories.length; --i>=0;) {
final Category candidate = categories[i];
if (candidate.isQuantitative()) {
final Category candidatePeer = candidate.geophysics(false);
final double candidateRange = candidatePeer.maximum - candidatePeer.minimum; |
*/ double range = 0; Category main = null; for (int i=categoriesLength; --i>=0;) { final Category candidate = categories[i]; //////// // // final String candidateName=candidate.getName().toString().trim(); final String noDataName=Vocabulary.formatInternational(VocabularyKeys.NODATA).toString().trim(); if(candidateName.equalsIgnoreCase(noDataName)){ nodata = candidate; continue; } // // //////// if (candidate.isQuantitative()) { final Category candidatePeer = candidate.geophysics(false); final double candidateRange = candidatePeer.maximum - candidatePeer.minimum; |
*/
Category overflowFallback = null;
if (searchNearest) {
for (int i=categories.length; --i>=0;) {
final Category category = categories[i];
if (!Double.isNaN(category.maximum)) {
overflowFallback = category; |
*/
Category overflowFallback = null;
if (searchNearest) {
for (int i=categoriesLength; --i>=0;) {
final Category category = categories[i];
if (!Double.isNaN(category.maximum)) {
overflowFallback = category; |