Project

General

Profile

« Previous | Next » 

Revision 794be65e

Added by Andreas Müller almost 2 years ago

cleanup

View differences:

cdmlib-commons/src/test/java/eu/etaxonomy/cdm/common/UuidGenerator.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.common;
10

  
11
import java.util.UUID;
12

  
13
import org.apache.logging.log4j.LogManager;
14
import org.apache.logging.log4j.Logger;
15

  
16
/**
17
 * @author a.mueller
18
 */
19
public class UuidGenerator {
20
	private static final Logger logger = LogManager.getLogger(UuidGenerator.class);
21

  
22
	private static int n = 100;
23

  
24
	public static void main(String[] args) {
25
		if (logger.isDebugEnabled()){logger.debug("create UUIDs");}
26
		for (int i = 0; i < n; i++){
27
			System.out.println(UUID.randomUUID());
28
		}
29
	}
30
}
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.common;
10

  
11
import java.util.UUID;
12

  
13
import org.apache.logging.log4j.LogManager;
14
import org.apache.logging.log4j.Logger;
15

  
16
/**
17
 * @author a.mueller
18
 */
19
public class UuidGenerator {
20
	private static final Logger logger = LogManager.getLogger();
21

  
22
	private static int n = 100;
23

  
24
	public static void main(String[] args) {
25
		if (logger.isDebugEnabled()){logger.debug("create UUIDs");}
26
		for (int i = 0; i < n; i++){
27
			System.out.println(UUID.randomUUID());
28
		}
29
	}
30
}

Also available in: Unified diff