Project

General

Profile

« Previous | Next » 

Revision 54d7e850

Added by Andreas Kohlbecker 5 months ago

proper logging instead of system.out

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/common/FilterableAnnotationsField.java
14 14
import java.util.List;
15 15
import java.util.Optional;
16 16

  
17
import org.slf4j.Logger;
18
import org.slf4j.LoggerFactory;
17 19
import org.vaadin.viritin.FilterableListContainer;
18 20

  
19 21
import com.vaadin.data.Container;
......
48 50
 */
49 51
public class FilterableAnnotationsField extends CompositeCustomField<List<Annotation>> {
50 52

  
53
    protected static final Logger logger = LoggerFactory.getLogger(FilterableAnnotationsField.class);
54

  
51 55
    private static final long serialVersionUID = -8258550787601028813L;
52 56

  
53 57
    private CssLayout root = new CssLayout();
......
157 161
        for(Filter filter : filters){
158 162
            container.addContainerFilter(filter);
159 163
        }
160
        System.err.println(container.size());
164
        logger.debug("container.size: " + container.size());
161 165
    }
162 166

  
163 167

  
src/main/java/eu/etaxonomy/cdm/vaadin/util/DistributionStatusQuery.java
18 18
import java.util.Set;
19 19
import java.util.UUID;
20 20

  
21
import org.slf4j.Logger;
22
import org.slf4j.LoggerFactory;
21 23
import org.springframework.transaction.TransactionStatus;
22 24
import org.vaadin.addons.lazyquerycontainer.LazyQueryContainer;
23 25
import org.vaadin.addons.lazyquerycontainer.Query;
......
45 47
 * @since 16.11.2017
46 48
 */
47 49
public class DistributionStatusQuery implements Query{
50

  
51
    protected static final Logger logger = LoggerFactory.getLogger(DistributionStatusQuery.class);
52

  
48 53
    public static final String DTYPE_COLUMN = "DTYPE";
49 54
    public static final String ID_COLUMN = "ID";
50 55
    public static final String UUID_COLUMN = "UUID";
......
125 130
     */
126 131
    @Override
127 132
    public void saveItems(List<Item> addedItems, List<Item> modifiedItems, List<Item> removedItems) {
128
        System.out.println("Save requested!");
133
        logger.debug("Save requested!");
129 134
        for(Item item : modifiedItems) {
130 135
            final UUID taxonUuid = (UUID) item.getItemProperty(UUID_COLUMN).getValue();
131 136
            final Taxon taxon = (Taxon) CdmSpringContextHelper.getTaxonService().find(taxonUuid);
src/main/java/eu/etaxonomy/vaadin/ui/mainmenu/MenuBeanDiscoveryBean.java
44 44
    MenuBeanDiscoveryBean menuBeanDiscoveryBean;
45 45

  
46 46
	public MenuBeanDiscoveryBean() {
47

  
48
	    System.out.println("###########");
49 47
	}
50 48

  
51 49
	@Autowired

Also available in: Unified diff