diff --git a/spring-data-commons-core/src/main/java/org/springframework/data/crossstore/ChangeSetBackedTransactionSynchronization.java b/spring-data-commons-core/src/main/java/org/springframework/data/crossstore/ChangeSetBackedTransactionSynchronization.java index 13d394f1e..3cc5cd3cc 100644 --- a/spring-data-commons-core/src/main/java/org/springframework/data/crossstore/ChangeSetBackedTransactionSynchronization.java +++ b/spring-data-commons-core/src/main/java/org/springframework/data/crossstore/ChangeSetBackedTransactionSynchronization.java @@ -1,3 +1,18 @@ +/* + * Copyright 2011 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.springframework.data.crossstore; import org.apache.commons.logging.Log; @@ -8,10 +23,8 @@ public class ChangeSetBackedTransactionSynchronization implements TransactionSyn protected final Log log = LogFactory.getLog(getClass()); - private ChangeSetPersister changeSetPersister; - - private ChangeSetBacked entity; - + private final ChangeSetPersister changeSetPersister; + private final ChangeSetBacked entity; private int changeSetTxStatus = -1; public ChangeSetBackedTransactionSynchronization(ChangeSetPersister changeSetPersister, ChangeSetBacked entity) { diff --git a/spring-data-commons-core/src/main/java/org/springframework/data/crossstore/HashMapChangeSet.java b/spring-data-commons-core/src/main/java/org/springframework/data/crossstore/HashMapChangeSet.java index 7a88807bd..694cef704 100644 --- a/spring-data-commons-core/src/main/java/org/springframework/data/crossstore/HashMapChangeSet.java +++ b/spring-data-commons-core/src/main/java/org/springframework/data/crossstore/HashMapChangeSet.java @@ -1,3 +1,18 @@ +/* + * Copyright 2011 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.springframework.data.crossstore; import java.util.Collections; @@ -14,7 +29,7 @@ import org.springframework.core.convert.ConversionService; */ public class HashMapChangeSet implements ChangeSet { - private Map values; + private final Map values; public HashMapChangeSet(Map values) { this.values = values;