mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-09 00:43:23 +01:00
adding final statements
This commit is contained in:
parent
829815f9e9
commit
0c43bb4ad3
@ -1,10 +1,14 @@
|
|||||||
package com.wisemapping.dao;
|
package com.wisemapping.dao;
|
||||||
|
|
||||||
import com.wisemapping.model.Label;
|
import com.wisemapping.model.Label;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface LabelManager {
|
public interface LabelManager {
|
||||||
|
|
||||||
void addLabel(Label label);
|
void addLabel(@NotNull final Label label);
|
||||||
|
|
||||||
|
void saveLabel(@NotNull final Label label);
|
||||||
|
|
||||||
void saveLabel(Label label);
|
|
||||||
}
|
}
|
||||||
|
@ -8,12 +8,12 @@ public class LabelManagerImpl extends HibernateDaoSupport
|
|||||||
implements LabelManager {
|
implements LabelManager {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addLabel(Label label) {
|
public void addLabel(@NotNull final Label label) {
|
||||||
saveLabel(label);
|
saveLabel(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void saveLabel(@NotNull Label label) {
|
public void saveLabel(@NotNull final Label label) {
|
||||||
getSession().save(label);
|
getSession().save(label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user