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 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(:)' |
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 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; |
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
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) {} | |
} | |