Skip to content

Instantly share code, notes, and snippets.

View ferstl's full-sized avatar

Stefan Ferstl ferstl

  • Zürich, Switzerland
View GitHub Profile
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.stream.Collectors;
import org.junit.Test;
import static org.hamcrest.Matchers.hasItem;
import static org.junit.Assert.assertThat;
// http://stackoverflow.com/questions/31633579/eclipse-mars-4-5-stuck-building-workspace
public class GenericsTest {
@ferstl
ferstl / CRepair.java
Created May 17, 2015 12:39
StackOverflow 30283508
package javassist;
import java.io.IOException;
public class CRepair {
public static void main(String[] args) throws NotFoundException, CannotCompileException, IOException {
ClassPool pool = ClassPool.getDefault();
CtClass ctClass = pool.get("javassist.RemoveMethod");
@ferstl
ferstl / StringUtil.txt
Created July 10, 2012 20:10
A hacky shell script that counts all libraries on Maven Central containing a specific Java class
activemq:activemq
ant:ant-optional
ant:ant-trax
ant:optional
aptconvert:aptconvert
biz.neustar:browsermob-proxy
bsh:bsh
cactus:cactus
cactus:cactus.core.framework.uberjar.javaEE.12
cactus:cactus.core.framework.uberjar.javaEE.13