This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new d478c79 Method name change: setter method shall have the "set"
prefix, not "get". Error identified by Jean-Marc Bourdaret.
https://issues.apache.org/jira/browse/SIS-503
d478c79 is described below
commit d478c796063f622e499dfadc553aaa4c29c8571d
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Thu Nov 19 23:22:20 2020 +0100
Method name change: setter method shall have the "set" prefix, not "get".
Error identified by Jean-Marc Bourdaret.
https://issues.apache.org/jira/browse/SIS-503
---
.../iso/constraint/DefaultReleasability.java | 30 +++++++++++++++++++---
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git
a/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/constraint/DefaultReleasability.java
b/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/constraint/DefaultReleasability.java
index ed7bbdd..880d3e5 100644
---
a/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/constraint/DefaultReleasability.java
+++
b/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/constraint/DefaultReleasability.java
@@ -40,7 +40,7 @@ import org.apache.sis.metadata.iso.ISOMetadata;
* </ul>
*
* @author Martin Desruisseaux (Geomatys)
- * @version 1.0
+ * @version 1.1
* @since 0.5
* @module
*/
@@ -136,11 +136,23 @@ public class DefaultReleasability extends ISOMetadata
implements Releasability {
*
* @param newValues the new parties.
*/
- public void getAddressees(final Collection<? extends Responsibility>
newValues) {
+ public void setAddressees(final Collection<? extends Responsibility>
newValues) {
addressees = writeCollection(newValues, addressees,
Responsibility.class);
}
/**
+ * Sets the parties to which the release statement applies.
+ *
+ * @param newValues the new parties.
+ *
+ * @deprecated Renamed {@link #setAddressees(Collection)}.
+ */
+ @Deprecated
+ public void getAddressees(final Collection<? extends Responsibility>
newValues) {
+ setAddressees(newValues);
+ }
+
+ /**
* Returns the release statement.
*
* @return release statement, or {@code null} if none.
@@ -177,7 +189,19 @@ public class DefaultReleasability extends ISOMetadata
implements Releasability {
*
* @param newValues the new components.
*/
- public void getDisseminationConstraints(final Collection<? extends
Restriction> newValues) {
+ public void setDisseminationConstraints(final Collection<? extends
Restriction> newValues) {
disseminationConstraints = writeCollection(newValues,
disseminationConstraints, Restriction.class);
}
+
+ /**
+ * Sets the components in determining releasability.
+ *
+ * @param newValues the new components.
+ *
+ * @deprecated Renamed {@link #setDisseminationConstraints(Collection)}.
+ */
+ @Deprecated
+ public void getDisseminationConstraints(final Collection<? extends
Restriction> newValues) {
+ setDisseminationConstraints(newValues);
+ }
}