Merge branch 'release/5.34.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / src / main / java / eu / etaxonomy / cdm / api / application / CdmChangeEvent.java
index c5bec4ece13520a28a553837502546cb5bfda01a..adc10077a396cd57395b47ca4e60c4a249478378 100644 (file)
@@ -16,7 +16,6 @@ import eu.etaxonomy.cdm.model.common.CdmBase;
 /**
  * @author cmathew
  * @date 7 Apr 2015
- *
  */
 public class CdmChangeEvent {
 
@@ -28,17 +27,17 @@ public class CdmChangeEvent {
 
     private final Action action;
     private final Set<CdmBase> changedObjects;
-    private final Class sourceType;
-    private Class entityType;
+    private final Class<?> sourceType;
+    private Class<?> entityType;
     private Object source;
 
-    public CdmChangeEvent(Action action, Set<CdmBase> changedObjects, Class sourceType) {
+    public CdmChangeEvent(Action action, Set<CdmBase> changedObjects, Class<?> sourceType) {
         this.action = action;
         this.changedObjects = changedObjects;
         this.sourceType = sourceType;
     }
 
-    public CdmChangeEvent(Action action, CdmBase changedObject, Class sourceType) {
+    public CdmChangeEvent(Action action, CdmBase changedObject, Class<?> sourceType) {
         this.action = action;
         changedObjects = new HashSet<CdmBase>();
         changedObjects.add(changedObject);
@@ -55,41 +54,27 @@ public class CdmChangeEvent {
         this.source = source;
     }
 
-    /**
-     * @return the action
-     */
     public Action getAction() {
         return action;
     }
 
-    /**
-     * @return the changedObjects
-     */
     public Set<? extends CdmBase> getChangedObjects() {
         return changedObjects;
     }
 
-    /**
-     * @return the sourceType
-     */
-    public Class getSourceType() {
+    public Class<?> getSourceType() {
         return sourceType;
     }
 
-
-    /**
-     * @return the source
-     */
     public Object getSource() {
         return source;
     }
 
-    public Class getEntityType() {
+    public Class<?> getEntityType() {
         return entityType;
     }
 
     public boolean hasChanges() {
         return changedObjects != null && !changedObjects.isEmpty();
     }
-
 }