Author: cziegeler
Date: Tue May 27 07:41:02 2008
New Revision: 660537
URL: http://svn.apache.org/viewvc?rev=660537&view=rev
Log:
Add method for handling integer properties.
Modified:
incubator/sling/trunk/commons/osgi/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java
Modified:
incubator/sling/trunk/commons/osgi/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java
URL:
http://svn.apache.org/viewvc/incubator/sling/trunk/commons/osgi/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java?rev=660537&r1=660536&r2=660537&view=diff
==============================================================================
---
incubator/sling/trunk/commons/osgi/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java
(original)
+++
incubator/sling/trunk/commons/osgi/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java
Tue May 27 07:41:02 2008
@@ -90,7 +90,7 @@
* the property is not an <code>Integer</code> and cannot be converted to
* an <code>Integer</code> from the property's string value.
*/
- public static long toInteger(Object propValue, int defaultValue) {
+ public static int toInteger(Object propValue, int defaultValue) {
propValue = toObject(propValue);
if (propValue instanceof Integer) {
return (Integer) propValue;