Polishing (forward-ported from 4.1.x)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user