Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD15510087 for ; Sun, 27 Oct 2013 20:31:56 +0000 (UTC) Received: (qmail 45026 invoked by uid 500); 27 Oct 2013 20:31:53 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 44933 invoked by uid 500); 27 Oct 2013 20:31:53 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 44926 invoked by uid 99); 27 Oct 2013 20:31:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Oct 2013 20:31:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Oct 2013 20:31:51 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C034823888A6; Sun, 27 Oct 2013 20:31:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1536195 - /commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/TestBean.java Date: Sun, 27 Oct 2013 20:31:31 -0000 To: commits@commons.apache.org From: oheger@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131027203131.C034823888A6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: oheger Date: Sun Oct 27 20:31:31 2013 New Revision: 1536195 URL: http://svn.apache.org/r1536195 Log: Fixed raw type warnings in TestBean class. Modified: commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/TestBean.java Modified: commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/TestBean.java URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/TestBean.java?rev=1536195&r1=1536194&r2=1536195&view=diff ============================================================================== --- commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/TestBean.java (original) +++ commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/TestBean.java Sun Oct 27 20:31:31 2013 @@ -19,11 +19,11 @@ package org.apache.commons.beanutils; +import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.io.Serializable; /** @@ -93,7 +93,7 @@ public class TestBean implements Seriali setStringProperty(stringProperty); } - public TestBean(List listIndexed) { + public TestBean(List listIndexed) { this.listIndexed = listIndexed; } @@ -269,9 +269,9 @@ public class TestBean implements Seriali /** * A List property accessed as an indexed property. */ - private List listIndexed = new ArrayList(); + private List listIndexed = new ArrayList(); - public List getListIndexed() { + public List getListIndexed() { return (listIndexed); } @@ -293,22 +293,22 @@ public class TestBean implements Seriali /** * A mapped property with only a getter and setter for a Map. */ - private Map mapProperty = null; + private Map mapProperty = null; - public Map getMapProperty() { + public Map getMapProperty() { // Create the map the very first time if (mapProperty == null) { - mapProperty = new HashMap(); + mapProperty = new HashMap(); mapProperty.put("First Key", "First Value"); mapProperty.put("Second Key", "Second Value"); } return (mapProperty); } - public void setMapProperty(Map mapProperty) { + public void setMapProperty(Map mapProperty) { // Create the map the very first time if (mapProperty == null) { - mapProperty = new HashMap(); + mapProperty = new HashMap(); mapProperty.put("First Key", "First Value"); mapProperty.put("Second Key", "Second Value"); } @@ -319,12 +319,12 @@ public class TestBean implements Seriali /** * A mapped property that has String keys and Object values. */ - private HashMap mappedObjects = null; + private HashMap mappedObjects = null; public Object getMappedObjects(String key) { // Create the map the very first time if (mappedObjects == null) { - mappedObjects = new HashMap(); + mappedObjects = new HashMap(); mappedObjects.put("First Key", "First Value"); mappedObjects.put("Second Key", "Second Value"); } @@ -334,7 +334,7 @@ public class TestBean implements Seriali public void setMappedObjects(String key, Object value) { // Create the map the very first time if (mappedObjects == null) { - mappedObjects = new HashMap(); + mappedObjects = new HashMap(); mappedObjects.put("First Key", "First Value"); mappedObjects.put("Second Key", "Second Value"); } @@ -345,22 +345,22 @@ public class TestBean implements Seriali /** * A mapped property that has String keys and String values. */ - private HashMap mappedProperty = null; + private HashMap mappedProperty = null; public String getMappedProperty(String key) { // Create the map the very first time if (mappedProperty == null) { - mappedProperty = new HashMap(); + mappedProperty = new HashMap(); mappedProperty.put("First Key", "First Value"); mappedProperty.put("Second Key", "Second Value"); } - return ((String) mappedProperty.get(key)); + return (mappedProperty.get(key)); } public void setMappedProperty(String key, String value) { // Create the map the very first time if (mappedProperty == null) { - mappedProperty = new HashMap(); + mappedProperty = new HashMap(); mappedProperty.put("First Key", "First Value"); mappedProperty.put("Second Key", "Second Value"); } @@ -371,21 +371,21 @@ public class TestBean implements Seriali /** * A mapped property that has String keys and int values. */ - private HashMap mappedIntProperty = null; + private HashMap mappedIntProperty = null; public int getMappedIntProperty(String key) { // Create the map the very first time if (mappedIntProperty == null) { - mappedIntProperty = new HashMap(); - mappedIntProperty.put("One", new Integer(1)); - mappedIntProperty.put("Two", new Integer(2)); + mappedIntProperty = new HashMap(); + mappedIntProperty.put("One", 1); + mappedIntProperty.put("Two", 2); } - Integer x = (Integer) mappedIntProperty.get(key); + Integer x = mappedIntProperty.get(key); return ((x == null) ? 0 : x.intValue()); } public void setMappedIntProperty(String key, int value) { - mappedIntProperty.put(key, new Integer(value)); + mappedIntProperty.put(key, value); }