/**
 * 
 */
package com.consoleconnect.mw.sonarqube.sample.service;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import com.consoleconnect.mw.sonarqube.sample.entity.User;

/**
 * @author dxiong
 *
 */
public class UserService {

	private Map<String, User> email2User = new HashMap<String, User>();

	public User create(String email, String password) {
		String tmp;
		if (email2User.containsKey(email)) {
			throw new IllegalArgumentException(String.format("%s already exist", email));
		}

		User user = new User(UUID.randomUUID().toString());
		user.setEmail(email);
		user.setPassword(password);

		email2User.put(email, user);

		return user;
	}
}

@@ -378,22 +378,8 @@
 ) %7B%0A
-%09%09String tmp;%0A
 %09%09if
@@ -638,16 +638,66 @@
 , user);
+%0A%09%09%0A%09%09/////%0A%09%09/////%0A%09%09////%0A%09%09while(true) %7B%0A%09%09%09%0A%09%09%7D
 %0A%0A%09%09retu

add bugs into code