You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/09/01 07:44:52 UTC
[isis] 01/02: ISIS-2861: remove comments
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
commit 8f8dc98be1fd01c61c4ad43d567eb57669f8f193
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Sep 1 09:42:33 2021 +0200
ISIS-2861: remove comments
---
.../java/org/apache/isis/applib/ViewModel.java | 52 ----------------------
1 file changed, 52 deletions(-)
diff --git a/api/applib/src/main/java/org/apache/isis/applib/ViewModel.java b/api/applib/src/main/java/org/apache/isis/applib/ViewModel.java
index e80d66f..ca19cf3 100644
--- a/api/applib/src/main/java/org/apache/isis/applib/ViewModel.java
+++ b/api/applib/src/main/java/org/apache/isis/applib/ViewModel.java
@@ -52,56 +52,4 @@ public interface ViewModel {
@Programmatic
void viewModelInit(String memento);
-// /**
-// * Cloneable view models can in effect appear to be editable; the viewer can build a new view model from a
-// * view model whose state has been edited.
-// */
-// public interface Cloneable {
-// /**
-// *
-// * @return a copy of this object - injection points are automatically resolved by the framework
-// */
-// @Programmatic
-// Object copy();
-// }
-//
-// /**
-// * Specialization of {@link ViewModel.Cloneable},
-// * that utilizes Java serialization to in-memory create ViewModel clones.
-// * @since 2.0
-// */
-// public interface CloneableViaSerialization
-// extends
-// Cloneable,
-// Serializable {
-// @Override
-// @Programmatic
-// default Object copy() {
-// val bytes = _Serializables.write(this);
-// val copy = _Serializables.read(this.getClass(), bytes);
-// return copy;
-// }
-// }
-//
-// /**
-// * Specialization of {@link ViewModel.Cloneable},
-// * that utilizes {@link ViewModel}'s mementos to in-memory create ViewModel clones.
-// * @since 2.0
-// */
-// public interface CloneableViaMemento
-// extends
-// Cloneable,
-// ViewModel {
-// @Override
-// @Programmatic
-// @SneakyThrows
-// default Object copy() {
-// val memento = this.viewModelMemento();
-// val copy = this.getClass().getDeclaredConstructor().newInstance();
-// copy.viewModelInit(memento);
-// return copy;
-// }
-// }
-
-
}