Skip to content

Instantly share code, notes, and snippets.

@timw
timw / loggrowth.py
Created July 12, 2016 22:19
Measuring log file growth with datadog/dogstream
from datetime import datetime
from dogstream import common
import logging
import os
import time
METRIC_NAME_COUNT = "log.growth_lines"
METRIC_NAME_CHARS = "log.growth_chars"
EOL_SIZE = len(os.linesep)
diff --git a/jersey/jersey-server/src/main/java/com/sun/jersey/server/impl/modelapi/annotation/IntrospectionModeller.java b/jersey/jersey-server/src/main/java/com/sun/jersey/server/impl/modelapi/annotation/IntrospectionModeller.java
index a141559..62c82e6 100644
--- a/jersey/jersey-server/src/main/java/com/sun/jersey/server/impl/modelapi/annotation/IntrospectionModeller.java
+++ b/jersey/jersey-server/src/main/java/com/sun/jersey/server/impl/modelapi/annotation/IntrospectionModeller.java
@@ -591,8 +591,8 @@ public class IntrospectionModeller {
} else if (DefaultValue.class == annotation.annotationType()) {
paramDefault = ((DefaultValue) annotation).value();
} else {
- // lets only clear things down if we've not found a ANOT_HELPER_MAP annotation already
- if (paramAnnotation == null) {