adding final statements

This commit is contained in:
Ezequiel Bergamaschi 2014-01-26 18:18:49 -03:00 committed by Ezequiel Bergamaschi
parent 829815f9e9
commit 0c43bb4ad3
2 changed files with 8 additions and 4 deletions

View File

@ -1,10 +1,14 @@
package com.wisemapping.dao;
import com.wisemapping.model.Label;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public interface LabelManager {
void addLabel(Label label);
void addLabel(@NotNull final Label label);
void saveLabel(@NotNull final Label label);
void saveLabel(Label label);
}

View File

@ -8,12 +8,12 @@ public class LabelManagerImpl extends HibernateDaoSupport
implements LabelManager {
@Override
public void addLabel(Label label) {
public void addLabel(@NotNull final Label label) {
saveLabel(label);
}
@Override
public void saveLabel(@NotNull Label label) {
public void saveLabel(@NotNull final Label label) {
getSession().save(label);
}
}