Skip to content

Instantly share code, notes, and snippets.

@buma
Created June 23, 2015 13:09
Show Gist options
  • Save buma/1afd0e3707495f621dc8 to your computer and use it in GitHub Desktop.
Save buma/1afd0e3707495f621dc8 to your computer and use it in GitHub Desktop.
Quickfix for annotations builder
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