package com.github.arteam.simplejsonrpc.client.generator;

import java.util.concurrent.atomic.AtomicLong;

/**
 * Date: 12/30/14
 * Time: 11:19 PM
 * <p/>
 * Return id from an atomic long counter
 * It's the most reliable and straightforward way to generate identifiers
 *
 * @author Artem Prigoda
 */
public class AtomicLongIdGenerator implements IdGenerator<Long> {

    private AtomicLong id = new AtomicLong(0L);

    @Override
    public Long generate() {
        return id.incrementAndGet();
    }
}

@@ -374,16 +374,22 @@
 private 
+final 
 AtomicLo
@@ -391,18 +391,23 @@
 micLong 
-id
+counter
  = new A
@@ -480,18 +480,23 @@
  return 
-id
+counter
 .increme

Improve readability of AtomicLongIdGenerator