Skip to content

Instantly share code, notes, and snippets.

@cgdecker
cgdecker / gist:1288226
Created October 14, 2011 20:22
Some regexes to use for cleaning up useless Javadoc.
Javadoc @param line with the name of the parameter and nothing else... replace with nothing
[ ]*\* @param [a-zA-Z0-9_$]+[ ]*\n
Javadoc @return line with nothing after the @return... replace with nothing
[ ]*\* @return[ ]*\n
Javadoc @throws line with nothing but the exception type after @throws... replace with nothing
[ ]*\* @throws [a-zA-Z0-9_]*[ ]*\n
Javadoc blank line followed by the Javadoc ending line... replace with just the ending line
Multimap<String, String> multimap = Multimaps.newMultimap(
new TreeMap<String, Collection<String>>(),
new Supplier<List<String>>() {
@Override public List<String> get() {
return new ArrayList<String>(); // could use Lists.newArrayList()
}
});
del *
cp -r ../../jdbc-persist/site/* .
git add .
git add -u
git commit -m "Auto-update site"
List<Person> people = ...
Iterable<Person> bobs = filter(people, compose(equalTo("Bob"),
Names.GET));
public enum Type {
Select,
TypeA,
TypeB,
TypeC;
}
Started by user cgdecker
Checkout:workspace / E:\Colin\.hudson\jobs\temp\workspace - hudson.remoting.LocalChannel@692769e1
Using strategy: Default
Checkout:workspace / E:\Colin\.hudson\jobs\temp\workspace - hudson.remoting.LocalChannel@692769e1
GitAPI created
Cloning the remote Git repository
Cloning repository origin
$ git clone -o origin git@github.com:cgdecker/jdbc-persist.git E:\Colin\.hudson\jobs\temp\workspace
ERROR: Error cloning remote repo 'origin' : Could not clone git@github.com:cgdecker/jdbc-persist.git
ERROR: Cause: Error performing git clone -o origin git@github.com:cgdecker/jdbc-persist.git E:\Colin\.hudson\jobs\temp\workspace