Skip to content

Instantly share code, notes, and snippets.

View ttinana's full-sized avatar
:octocat:
I may be slow to respond.

ttinana ttinana

:octocat:
I may be slow to respond.
View GitHub Profile
@arosini
arosini / ModelTests.java
Last active January 19, 2021 23:10
JUnit test for 100% code coverage of Lombok's @DaTa annotation
import com.google.common.reflect.ClassPath;
import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtConstructor;
import javassist.CtMethod;
import javassist.CtNewConstructor;
import javassist.CtNewMethod;
import javassist.NotFoundException;
import nl.jqno.equalsverifier.EqualsVerifier;
@snicoll
snicoll / CacheConfig.java
Last active February 17, 2018 17:48 — forked from anataliocs/CacheConfig.java
Guava cache with spring boot and clear cache method
import com.google.common.cache.CacheBuilder;
import org.springframework.cache.Cache;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.guava.GuavaCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.TimeUnit;
@Configuration
@mxro
mxro / GwtConcurrency.java
Created May 26, 2012 01:30
Default Implementation of Concurrency API in GWT
package any;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;