package au.gov.ga.geodesy.igssitelog.support.marshalling.moxy;

/**
 * When marshalling composite null objects, generate empty XML sub-elements (in combination with {@link NullPolicySessionEventListener}.
 */
public abstract class MandatoryCompositeAdapter<T> extends OptionalCompositeAdapter<T> {

    @Override
    @SuppressWarnings("unchecked")
    public Object marshal(Object object) throws Exception {
        return object == null ? getDomainClass().newInstance() : object;
    }

    protected abstract Class<T> getDomainClass();
}

@@ -310,43 +310,8 @@
 ide%0A
-    @SuppressWarnings(%22unchecked%22)%0A
     
@@ -317,22 +317,17 @@
  public 
-Object
+T
  marshal
@@ -331,14 +331,9 @@
 hal(
-Object
+T
  obj

Use generic T argument