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 org.sample; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.Scope; | |
import org.openjdk.jmh.annotations.Setup; |
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 cara; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectOutputStream; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; |
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 code.puzzles; | |
public class WebServiceClient { | |
private final Webservice webservice = new Webservice(); | |
public <T> T getResource(RequestKey<T> key) throws WebserviceException { | |
T resource = null; | |
try { | |
resource = webservice.get(key); | |
} catch (RuntimeException e) { |
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.jruby.plugins</groupId> | |
<artifactId>jruby-rake-plugin</artifactId> | |
<version>1.2.0</version> | |
<executions> | |
<!-- gem installation done in multiples steps because it does not work with more than 1 gem and giving a version at the same time --> | |
<execution> | |
<id>install-gems step 1</id> | |
<phase>process-resources</phase> | |
<goals> |