Polishing (forward-ported from 4.1.x)

This commit is contained in:
Juergen Hoeller
2015-02-10 23:04:12 +01:00
parent 098e60e125
commit f58abd3d9a
4 changed files with 41 additions and 43 deletions

View File

@@ -22,11 +22,10 @@ import java.util.Random;
import java.util.UUID;
/**
* An {@link org.springframework.util.IdGenerator IdGenerator} that uses
* {@link SecureRandom} for the initial seed and {@link Random} thereafter
* instead of calling {@link UUID#randomUUID()} every time as
* {@link org.springframework.util.JdkIdGenerator JdkIdGenerator} does.
* This provides a better balance between securely random id's and performance.
* An {@link IdGenerator} that uses {@link SecureRandom} for the initial seed and
* {@link Random} thereafter, instead of calling {@link UUID#randomUUID()} every
* time as {@link org.springframework.util.JdkIdGenerator JdkIdGenerator} does.
* This provides a better balance between securely random ids and performance.
*
* @author Rossen Stoyanchev
* @author Rob Winch

View File

@@ -19,11 +19,10 @@ package org.springframework.util;
import java.util.UUID;
/**
* An {@link org.springframework.util.IdGenerator IdGenerator} that calls
* {@link java.util.UUID#randomUUID()}.
* An {@link IdGenerator} that calls {@link java.util.UUID#randomUUID()}.
*
* @author Rossen Stoyanchev
* @since 4.2
* @since 4.1.5
*/
public class JdkIdGenerator implements IdGenerator {

View File

@@ -20,11 +20,10 @@ import java.util.UUID;
import java.util.concurrent.atomic.AtomicLong;
/**
* A simple {@link org.springframework.util.IdGenerator IdGenerator} that
* starts at 1 and increments by 1 with each call.
* A simple {@link IdGenerator} that starts at 1 and increments by 1 with each call.
*
* @author Rossen Stoyanchev
* @since 4.2
* @since 4.1.5
*/
public class SimpleIdGenerator implements IdGenerator {