Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (7 years ago)
Author:
Don-vip
Message:

see #8465 - use diamond operator where applicable

Location:
trunk/src/org/openstreetmap/josm/tools/template_engine
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/template_engine/Condition.java

    r6986 r7005  
    88public class Condition implements TemplateEntry {
    99
    10     private final List<TemplateEntry> entries = new ArrayList<TemplateEntry>();
     10    private final List<TemplateEntry> entries = new ArrayList<>();
    1111
    1212    public List<TemplateEntry> getEntries() {
  • trunk/src/org/openstreetmap/josm/tools/template_engine/ContextSwitchTemplate.java

    r4817 r7005  
    6666            }
    6767
    68             List<OsmPrimitive> result = new ArrayList<OsmPrimitive>();
     68            List<OsmPrimitive> result = new ArrayList<>();
    6969            for (OsmPrimitive child: children) {
    7070                for (OsmPrimitive parent: child.getReferrers(true)) {
     
    100100                parents = Collections.emptyList();
    101101            }
    102             List<OsmPrimitive> result = new ArrayList<OsmPrimitive>();
     102            List<OsmPrimitive> result = new ArrayList<>();
    103103            for (OsmPrimitive p: parents) {
    104104                if (p instanceof Way) {
     
    137137        @Override
    138138        List<OsmPrimitive> getPrimitives(OsmPrimitive root) {
    139             List<OsmPrimitive> result = new ArrayList<OsmPrimitive>();
     139            List<OsmPrimitive> result = new ArrayList<>();
    140140            for (OsmPrimitive o: lhs.getPrimitives(root)) {
    141141                if (condition == null || condition.match(o)) {
     
    168168        @Override
    169169        List<OsmPrimitive> getPrimitives(OsmPrimitive root) {
    170             List<OsmPrimitive> result = new ArrayList<OsmPrimitive>();
     170            List<OsmPrimitive> result = new ArrayList<>();
    171171            List<OsmPrimitive> lhsList = lhs.getPrimitives(root);
    172172            for (OsmPrimitive o: rhs.getPrimitives(root)) {
  • trunk/src/org/openstreetmap/josm/tools/template_engine/TemplateParser.java

    r4546 r7005  
    3939
    4040    private TemplateEntry parseExpression(Collection<TokenType> endTokens) throws ParseError {
    41         List<TemplateEntry> entries = new ArrayList<TemplateEntry>();
     41        List<TemplateEntry> entries = new ArrayList<>();
    4242        while (true) {
    4343            TemplateEntry templateEntry;
Note: See TracChangeset for help on using the changeset viewer.