package com.github.youribonnaffe.gradle.format;

import java.util.function.Function;

/**
 * Test class.
 */
public class Java8Test {
	/**
	 * Test method.
	 */
	public void doStuff() throws Exception {
		Function<String, Integer> example = Integer::parseInt;
		example.andThen(val -> {
			return val + 2;
		} );
		SimpleEnum val = SimpleEnum.A;
		switch (val) {
			case A:
				break;
			case B:
				break;
			case C:
				break;
			default:
				throw new Exception();
		}
	}

	/** Test enum
	* with weirdly formatted javadoc
	* which IndentStep should not change
	*/
	public enum SimpleEnum {
		A, B, C;
	}
}