Exemple #1
0
 private static <S> void deserializeProperties(
     ArtifactProperties<S> artifactProperties, ArtifactPropertiesState propertiesState) {
   final Element options = propertiesState.getOptions();
   if (artifactProperties == null || options == null) {
     return;
   }
   final S state = artifactProperties.getState();
   if (state != null) {
     XmlSerializer.deserializeInto(state, options);
     artifactProperties.loadState(state);
   }
 }
 public static <S> void copyProperties(ArtifactProperties<?> from, ArtifactProperties<S> to) {
   //noinspection unchecked
   to.loadState((S) from.getState());
 }