Created
June 23, 2015 13:09
-
-
Save buma/1afd0e3707495f621dc8 to your computer and use it in GitHub Desktop.
Quickfix for annotations builder
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
diff --git a/src/main/java/org/opentripplanner/graph_builder/AnnotationsToHTML.java b/src/main/java/org/opentripplanner/graph_builder/AnnotationsToHTML.java | |
index fbb55ed..db16731 100644 | |
--- a/src/main/java/org/opentripplanner/graph_builder/AnnotationsToHTML.java | |
+++ b/src/main/java/org/opentripplanner/graph_builder/AnnotationsToHTML.java | |
@@ -211,7 +211,9 @@ public class AnnotationsToHTML implements GraphBuilderModule { | |
private void addAnnotation(GraphBuilderAnnotation annotation) { | |
String className = annotation.getClass().getSimpleName(); | |
- annotations.put(className, annotation.getHTMLMessage()); | |
+ if (annotations.get(className).size() < 50) { | |
+ annotations.put(className, annotation.getHTMLMessage()); | |
+ } | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment