From e3db6241f6e92796437c2815f75a23d3dd611735 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 10 Aug 2019 21:49:01 +0200 Subject: [PATCH] [apex] Sort trigger usages --- .../java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java index b82ef4fed8..1e313d66d5 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java @@ -35,6 +35,6 @@ public class ASTUserTrigger extends ApexRootNode { } public String getUsages() { - return node.getUsages().stream().map(TriggerUsage::name).collect(Collectors.joining(",")); + return node.getUsages().stream().map(TriggerUsage::name).sorted().collect(Collectors.joining(",")); } }