commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlmonte...@apache.org
Subject svn commit: r1529172 - /commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/gauges/Gauge.java
Date Fri, 04 Oct 2013 14:44:26 GMT
Author: jlmonteiro
Date: Fri Oct  4 14:44:26 2013
New Revision: 1529172

URL: http://svn.apache.org/r1529172
Log:
Trim package entry to makes it possible to use identation in web.xml

Modified:
    commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/gauges/Gauge.java

Modified: commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/gauges/Gauge.java
URL: http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/gauges/Gauge.java?rev=1529172&r1=1529171&r2=1529172&view=diff
==============================================================================
--- commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/gauges/Gauge.java
(original)
+++ commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/gauges/Gauge.java
Fri Oct  4 14:44:26 2013
@@ -48,7 +48,7 @@ public interface Gauge {
             if (!excludeParent || gaugeClass.getClassLoader() == classLoader) {
                 if (prefixes != null) {
                     for (final String p : prefixes) {
-                        if (!gaugeClass.getName().startsWith(p)) {
+                        if (!gaugeClass.getName().startsWith(p.trim())) {
                             return;
                         }
                     }



Mime
View raw message