Commit bb5073e8 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

blank line separation is enforced

parent f1504613
......@@ -121,13 +121,13 @@
<module name="FallThrough"/>
<module name="UpperEll"/>
<module name="ModifierOrder"/>
<!-- <module name="EmptyLineSeparator">
<module name="EmptyLineSeparator">
<property name="tokens"
value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
<property name="allowNoEmptyLineBetweenFields" value="true"/>
</module>
<module name="SeparatorWrap">
<!-- <module name="SeparatorWrap">
<property name="id" value="SeparatorWrapDot"/>
<property name="tokens" value="DOT"/>
<property name="option" value="nl"/>
......
......@@ -167,7 +167,7 @@ public class XmlParserTest extends CommonTestFunctions {
}
}
;
Element el = new Tmp();
root.appendChild(el);
assertNotNull(XmlParser.nodeToString(root, true));
......
......@@ -41,6 +41,7 @@ public class ListComparatorTest {
this.x = x;
}
}
class DataComparator implements Comparator<Data> {
@Override
public int compare(Data o1, Data o2) {
......
......@@ -31,6 +31,7 @@ public class SetComparatorTest {
this.x = x;
}
}
class DataComparator implements Comparator<Data> {
@Override
public int compare(Data o1, Data o2) {
......
......@@ -56,6 +56,7 @@ public class CommonXmlParser {
}
public static Set<MiriamRelationType> RELATION_TYPES_SUPPORTED_BY_CELL_DESIGNER;
{
RELATION_TYPES_SUPPORTED_BY_CELL_DESIGNER = new HashSet<>();
RELATION_TYPES_SUPPORTED_BY_CELL_DESIGNER.addAll(Arrays.asList(MiriamRelationType.values()));
......
/**
* Default constructor.
*
* @param colorExtractor
* Object that helps to convert {@link ColorSchema} values into colors
* when drawing {@link Species}
*/
package lcsb.mapviewer.converter.graphics.bioEntity.element.species;
import java.awt.Color;
......
......@@ -75,6 +75,7 @@ public class ColorSchemaReader {
private static final int MIN_GV_RED_VALUE = 128;
private static Map<String, Class<? extends BioEntity>> speciesMapping;
static {
speciesMapping = new HashMap<>();
speciesMapping.put("protein", Protein.class);
......
......@@ -25,6 +25,7 @@ public class UnknownReducedModulationReaction extends Reaction implements Simple
protected UnknownReducedModulationReaction() {
super();
}
public UnknownReducedModulationReaction(String elementId) {
super(elementId);
}
......
......@@ -39,7 +39,7 @@ public class LayerComparatorTest extends ModelTestFunctions {
class Tmp extends Layer {
private static final long serialVersionUID = 1L;
}
;
Tmp layer1 = new Tmp();
Tmp layer2 = new Tmp();
......
......@@ -41,6 +41,7 @@ public class StateParserTest extends WikipathwaysTestFunctions {
public void testIsModificationPosition() throws Exception {
assertTrue(parser.isModificationPosition("P102"));
}
@Test
public void testIsNotModificationPosition() throws Exception {
assertFalse(parser.isModificationPosition("PP102"));
......
......@@ -61,6 +61,7 @@ public class ApplicationContextLoaderTest {
private UserDao userDao;
}
Tmp obj = new Tmp();
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(SpringPersistTestConfig.class);
ApplicationContextLoader.setApplicationContext(ctx);
......
......@@ -17,6 +17,7 @@ public abstract class PersistTestFunctions extends PersistTestFunctionsNoTransac
@Autowired
protected UserDao userDao;
protected User createUser() {
User user = new User();
user.setName("John");
......
......@@ -80,6 +80,7 @@ public interface ICommentService {
void removeCommentsForModel(ModelData model);
Comment getCommentById(String projectId, String commentId);
Comment getCommentById(String projectId, Integer commentId);
User getOwnerByCommentId(String projectId, String commentId);
......
......@@ -20,6 +20,7 @@ public interface IUserService {
void deleteUser(User user);
User getUserByLogin(String login);
User getUserByLogin(String login, boolean loadLazy);
List<User> getUsers(boolean loadLazy);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment