James Moger
2014-04-17 7b5b00d147dfadbe7f455d8a1e9a00ada5984fa1
Remove @Inject annotation
1 files modified
3 ■■■■■ changed files
src/main/java/com/gitblit/utils/IdGenerator.java 3 ●●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/utils/IdGenerator.java
@@ -17,8 +17,6 @@
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;
import javax.inject.Inject;
/** Simple class to produce 4 billion keys randomly distributed. */
public class IdGenerator {
  /** Format an id created by this class as a hex string. */
@@ -34,7 +32,6 @@
  private final AtomicInteger gen;
  @Inject
  public IdGenerator() {
    gen = new AtomicInteger(new Random().nextInt());
  }