DATACMNS-73 - Further refactorings.

Add license headers and made properties final where possible.
This commit is contained in:
Oliver Gierke
2011-10-12 15:03:41 +02:00
parent 60d0b9c428
commit 5829ad2eb7
2 changed files with 33 additions and 5 deletions

View File

@@ -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<Object> changeSetPersister;
private ChangeSetBacked entity;
private final ChangeSetPersister<Object> changeSetPersister;
private final ChangeSetBacked entity;
private int changeSetTxStatus = -1;
public ChangeSetBackedTransactionSynchronization(ChangeSetPersister<Object> changeSetPersister, ChangeSetBacked entity) {

View File

@@ -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<String, Object> values;
private final Map<String, Object> values;
public HashMapChangeSet(Map<String, Object> values) {
this.values = values;