Skip to content

Instantly share code, notes, and snippets.

View craigotis's full-sized avatar

Craig Otis craigotis

View GitHub Profile
import java.util.Map;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.SpelParseException;
import org.springframework.expression.spel.standard.SpelExpressionParser;
public class AposTest {
public static void main(String[] args) {
// Parse of {NormalValue:'INGREDIENT', 'Apostro''Value':'INGREDIENT'} failed with: EL1043E:(pos 12): Unexpected token. Expected 'rcurly(})' but was 'colon(:)'
tryParse("{NormalValue:'INGREDIENT', 'Apostro''Value':'INGREDIENT'}", "'Apostro''Value'");
// Parse of {NormalValue:'INGREDIENT', ApostroValue:'INGREDIENT'} failed with: EL1043E:(pos 12): Unexpected token. Expected 'rcurly(})' but was 'colon(:)'
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
public class GenericsTest {
public class Shape {}
public class Circle extends Shape {}
public class Sphere extends Circle {}
public class ShapeDescriber<T extends Shape> {
public void describe(T s) {}
}