Skip to content

Instantly share code, notes, and snippets.

Riccardo Muzzì thermz

  • Reply
  • Italy
View GitHub Profile
View wildfly-install.sh
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :20140312
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=8.0.0.Final
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
View Checked Exception consumer in Java 6
//Interface block
public interface Consumer<T> {
public T unchecked() throws Exception;
}
//unchecked static method that receive Consumer interface as a block
public static <T> T unchecked(Consumer<T> consumer){
try {
consumer.unchecked();
} catch(Exception e){
You can’t perform that action at this time.