Skip to content

Commit

Permalink
Merge pull request #5494 from tkafalas/feature
Browse files Browse the repository at this point in the history
[BACKLOG-39451] Remove ehcache-core jar from build.  Causing conflict…
  • Loading branch information
ddiroma authored Jan 8, 2024
2 parents 3dbe8d2 + a6a7f56 commit 01bfb5f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 39 deletions.
6 changes: 0 additions & 6 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>${ehcache-core.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.mozilla</groupId>
<artifactId>rhino</artifactId>
Expand Down
12 changes: 0 additions & 12 deletions extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -534,18 +534,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>${ehcache-core.version}</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
* See the GNU Lesser General Public License for more details.
*
*
* Copyright (c) 2002-2023 Hitachi Vantara. All rights reserved.
* Copyright (c) 2002-2024 Hitachi Vantara. All rights reserved.
*
*/

package org.pentaho.platform.plugin.services.cache;

import net.sf.ehcache.Ehcache;
import net.sf.ehcache.management.CacheStatistics;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.dom4j.Element;
Expand Down Expand Up @@ -505,18 +506,13 @@ public long getElementCountInRegionCache( String region ) {
Ehcache ehcache = hvcache.getStorageAccess().getCache();
if ( hvcache != null ) {
try {
long memCnt = ehcache.getStatistics().getMemoryStoreObjectCount();
long discCnt = ehcache.getStatistics().getDiskStoreObjectCount();
return memCnt + discCnt;
CacheStatistics cacheStatistics = new CacheStatistics( ehcache );
return cacheStatistics.getMemoryStoreObjectCount() + cacheStatistics.getDiskStoreObjectCount();
} catch ( Exception ignored ) {
return -1;
}
} else {
return -1;
}
} else {
return -1;
}
return -1;
}

@Override
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@
<gdata-client-meta.version>1.0</gdata-client-meta.version>
<owasp.encoder.version>1.2</owasp.encoder.version>
<powermock.version>1.6.3</powermock.version>
<ehcache-core.version>2.5.1</ehcache-core.version>
<mockito-core.version>4.0.0</mockito-core.version>
<apacheds.version>1.5.5</apacheds.version>
<jcommon.version>1.0.16</jcommon.version>
Expand Down
11 changes: 0 additions & 11 deletions repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -460,17 +460,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>${ehcache-core.version}</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
Expand Down

0 comments on commit 01bfb5f

Please sign in to comment.