This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo; | |
import static java.lang.invoke.MethodHandles.catchException; | |
import static java.lang.invoke.MethodHandles.publicLookup; | |
import static java.lang.invoke.MethodType.methodType; | |
public class Foo { | |
public void sayHello(String name) throws RuntimeException { | |
System.out.println("hello " + name); | |
throw new RuntimeException("boom!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo; | |
import static java.util.EnumSet.of; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.ClosedChannelException; | |
import java.nio.channels.FileChannel; | |
import java.nio.channels.ReadableByteChannel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static org.hamcrest.MatcherAssert.assertThat; | |
import static org.hamcrest.Matchers.both; | |
import static org.hamcrest.Matchers.greaterThan; | |
import static org.hamcrest.Matchers.lessThan; | |
import org.junit.Test; | |
public class AllOfTest { | |
@Test | |
public void doesPrintMismatch() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uk.co.datumedge.blog.hamcrest; | |
import static org.hamcrest.MatcherAssert.assertThat; | |
import static org.hamcrest.Matchers.both; | |
import static org.hamcrest.Matchers.equalTo; | |
import static org.hamcrest.Matchers.greaterThanOrEqualTo; | |
import static org.hamcrest.Matchers.lessThan; | |
import javax.ws.rs.core.Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<scm> | |
<connection>scm:git:git://github.com/hertzsprung/redis-launcher.git</connection> | |
<developerConnection>scm:git:[email protected]:hertzsprung/redis-launcher.git</developerConnection> | |
<url>http://github.com/hertzsprung/redis-launcher</url> | |
</scm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.2.2</version> | |
<configuration> | |
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments> | |
</configuration> | |
</plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<distributionManagement> | |
<snapshotRepository> | |
<id>sonatype-nexus-snapshots</id> | |
<name>Sonatype Nexus snapshot repository</name> | |
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | |
</snapshotRepository> | |
<repository> | |
<id>sonatype-nexus-staging</id> | |
<name>Sonatype Nexus release repository</name> | |
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>release-sign-artifacts</id> | |
<activation> | |
<property> | |
<name>performRelease</name> | |
<value>true</value> | |
</property> | |
</activation> | |
<build> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<servers> | |
<server> | |
<id>sonatype-nexus-snapshots</id> | |
<username>myusername</username> | |
<password>mypassword</password> | |
</server> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button.addActionListener(new ActionListener() { | |
public void actionPerformed(ActionEvent e) { | |
ui.dazzle(e.getModifiers()); | |
} | |
}); |
OlderNewer