sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1457741 [2/2] - in /sis/ip-review: ./ rev/10796/ rev/20874/ rev/24868/ rev/24897/ rev/24925/ rev/24965/ rev/24990/
Date Mon, 18 Mar 2013 12:45:30 GMT
Added: sis/ip-review/rev/24990/DefaultResolution.xhtml
URL: http://svn.apache.org/viewvc/sis/ip-review/rev/24990/DefaultResolution.xhtml?rev=1457741&view=auto
==============================================================================
--- sis/ip-review/rev/24990/DefaultResolution.xhtml (added)
+++ sis/ip-review/rev/24990/DefaultResolution.xhtml Mon Mar 18 12:45:29 2013
@@ -0,0 +1,117 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="UTF-8"/>
+    <title>DefaultResolution changes for revisions 24972:24990</title>
+    <style type="text/css" media="all">
+      @import url("../../reports.css");
+    </style>
+  </head>
+  <body>
+    <div>
+      <h1>DefaultResolution changes for revisions 24972:24990</h1>
+
+<p>Replacement of <code>Number</code> type by <code>Double</code>.
+This change has been forced by a GeoAPI change. Reverting this change causes a compilation
failure,
+which is resolved by restoring the <code>Double</code> values as required by
GeoAPI interfaces. So
+rewriting this contribution produces identical result regarding this aspect.</p>
+
+<p>The "<cite>Values greater than 1…</cite>" comment has been removed,
and the <code>hashCode()</code>
+implementation from this contribution has been removed too.</p>
+
+<p><b>Command line:</b></p>
+<blockquote><code>svn diff --extensions "--unified --ignore-space-change --ignore-all-space
--ignore-eol-style" -r24972:24990 http://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/identification/ResolutionImpl.java</code></blockquote>
+<table class="changes">
+<tr><th>Revision 24972</th><th>Revision 24990</th></tr>
+<tr><td><pre> * Only one of {@linkplain #getEquivalentScale equivalent
scale} and
+ * {@linkplain #getDistance ground sample distance} may be provided.
+ */
+<span class="del">private double distance;</span>
+
+/**
+ * Constructs an initially empty Resolution.</pre></td>
+<td><pre> * Only one of {@linkplain #getEquivalentScale equivalent scale} and
+ * {@linkplain #getDistance ground sample distance} may be provided.
+ */
+<span class="add">private Double distance;</span>
+
+/**
+ * Constructs an initially empty Resolution.</pre></td></tr>
+<tr><td><pre>/**
+ * Set the level of detail expressed as the scale of a comparable hardcopy map or chart.
+ */
+public synchronized void setEquivalentScale(final double newValue) {
+    checkWritePermission();</pre></td>
+<td><pre>/**
+ * Set the level of detail expressed as the scale of a comparable hardcopy map or chart.
+<span class="add"> *</span>
+<span class="add"> * Values greater than 1 will be stored as (1 / newValue), values
less than one will be stored as is.</span>
+ */
+public synchronized void setEquivalentScale(final double newValue) {
+    checkWritePermission();</pre></td></tr>
+<tr><td><pre>}
+
+/**
+ * Ground sample distance.
+ * Only one of {@linkplain #getEquivalentScale equivalent scale} and
+ * {@linkplain #getDistance ground sample distance} may be provided.
+ */
+<span class="del">public double getDistance() {</span>
+    return distance;
+}
+
+/**
+ * Set the ground sample distance.
+ */
+<span class="del">public synchronized void setDistance(final double newValue) {</span>
+    checkWritePermission();
+    distance = newValue;
+}</pre></td>
+<td><pre>}
+
+/**
+<span class="add"> * Set the level of detail expressed as the scale of a comparable
hardcopy map or chart.</span>
+<span class="add"> */</span>
+<span class="add">public synchronized void setEquivalentScale(final RepresentativeFraction
newValue) {</span>
+<span class="add">    checkWritePermission();</span>
+<span class="add">    equivalentScale = newValue;</span>
+<span class="add">}</span>
+<span class="add"></span>
+<span class="add">/**</span>
+ * Ground sample distance.
+ * Only one of {@linkplain #getEquivalentScale equivalent scale} and
+ * {@linkplain #getDistance ground sample distance} may be provided.
+ */
+<span class="add">public Double getDistance() {</span>
+    return distance;
+}
+
+/**
+ * Set the ground sample distance.
+ */
+<span class="add">public synchronized void setDistance(final Double newValue) {</span>
+    checkWritePermission();
+    distance = newValue;
+}</pre></td></tr>
+<tr><td><pre> */
+public synchronized int hashCode() {
+    int code = (int)serialVersionUID;
+    code ^= (int)equivalentScale.hashCode();
+<span class="del">    code ^= (int)distance;</span>
+    return code;
+}</pre></td>
+<td><pre> */
+public synchronized int hashCode() {
+    int code = (int)serialVersionUID;
+<span class="add">    if (equivalentScale != null) {</span>
+    code ^= (int)equivalentScale.hashCode();
+<span class="add">    }</span>
+<span class="add">    if (distance != null) {</span>
+<span class="add">        code ^= distance.intValue();</span>
+<span class="add">    }</span>
+    return code;
+}</pre></td></tr>
+</table>
+    </div>
+  </body>
+</html>

Propchange: sis/ip-review/rev/24990/DefaultResolution.xhtml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sis/ip-review/rev/24990/DefaultResolution.xhtml
------------------------------------------------------------------------------
    svn:mime-type = text/html



Mime
View raw message