Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #260: Commons BeanUtils2 #488

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/pom-common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@
<optional>false</optional>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<groupId>com.melloware</groupId>
<artifactId>commons-beanutils2</artifactId>
<version>${commons-beanutils.version}</version>
<scope>compile</scope>
<optional>false</optional>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.beanutils.NestedNullException;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.beanutils2.NestedNullException;
import org.apache.commons.beanutils2.PropertyUtils;

import net.sf.jasperreports.annotations.properties.Property;
import net.sf.jasperreports.annotations.properties.PropertyScope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.util.Locale;
import java.util.TimeZone;

import org.apache.commons.beanutils.locale.LocaleConvertUtilsBean;
import org.apache.commons.beanutils2.locale.LocaleConvertUtilsBean;

import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.JRException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.util.Locale;
import java.util.TimeZone;

import org.apache.commons.beanutils.locale.converters.DateLocaleConverter;
import org.apache.commons.beanutils2.locale.converters.DateLocaleConverter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

Expand Down
7 changes: 0 additions & 7 deletions ext/hibernate-j2ee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@
<scope>compile</scope>
<optional>false</optional>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons-beanutils.version}</version>
<scope>compile</scope>
<optional>false</optional>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-data-adapters</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.beanutils.PropertyUtils;
import org.hibernate.type.Type;

import net.sf.jasperreports.engine.JRDataSource;
Expand Down Expand Up @@ -159,7 +158,7 @@ protected FieldReader getFieldReaderSingleReturn(Map<String,Integer> aliasesMap,
else
{
@SuppressWarnings("deprecation")
int firstNestedIdx = fieldMapping.indexOf(PropertyUtils.NESTED_DELIM);
int firstNestedIdx = fieldMapping.indexOf(".");

if (firstNestedIdx >= 0 && aliasesMap.containsKey(fieldMapping.substring(0, firstNestedIdx)))
{
Expand Down Expand Up @@ -188,7 +187,7 @@ protected FieldReader getFieldReader(Type[] returnTypes, Map<String,Integer> ali
if (fieldIdx == null)
{
@SuppressWarnings("deprecation")
int firstNestedIdx = fieldMapping.indexOf(PropertyUtils.NESTED_DELIM);
int firstNestedIdx = fieldMapping.indexOf(".");

if (firstNestedIdx < 0)
{
Expand Down
7 changes: 0 additions & 7 deletions ext/hibernate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@
<scope>compile</scope>
<optional>false</optional>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons-beanutils.version}</version>
<scope>compile</scope>
<optional>false</optional>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-data-adapters</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import java.util.ListIterator;
import java.util.Map;

import org.apache.commons.beanutils.PropertyUtils;

import jakarta.persistence.Tuple;
import jakarta.persistence.TupleElement;
import net.sf.jasperreports.engine.JRDataSource;
Expand Down Expand Up @@ -157,7 +155,7 @@ protected FieldReader getFieldReaderSingleReturn(Map<String,Integer> aliasesMap,
else
{
@SuppressWarnings("deprecation")
int firstNestedIdx = fieldMapping.indexOf(PropertyUtils.NESTED_DELIM);
int firstNestedIdx = fieldMapping.indexOf(".");

if (firstNestedIdx >= 0 && aliasesMap.containsKey(fieldMapping.substring(0, firstNestedIdx)))
{
Expand All @@ -179,7 +177,7 @@ protected FieldReader getFieldReader(List<TupleElement<?>> elements, Map<String,
if (fieldIdx == null)
{
@SuppressWarnings("deprecation")
int firstNestedIdx = fieldMapping.indexOf(PropertyUtils.NESTED_DELIM);
int firstNestedIdx = fieldMapping.indexOf(".");

if (firstNestedIdx < 0)
{
Expand Down
2 changes: 1 addition & 1 deletion pom-parent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<antlr.version>2.7.7</antlr.version>
<batik.version>1.17</batik.version>
<castor.version>1.4.1</castor.version>
<commons-beanutils.version>1.9.4</commons-beanutils.version>
<commons-beanutils.version>2.0.0</commons-beanutils.version>
<commons-collections4.version>4.4</commons-collections4.version>
<commons-logging.version>1.3.0</commons-logging.version>
<hsqldb.version>2.7.2</hsqldb.version>
Expand Down