You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2013/03/27 12:01:39 UTC
svn commit: r1461509 -
/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
Author: lukaszlenart
Date: Wed Mar 27 11:01:39 2013
New Revision: 1461509
URL: http://svn.apache.org/r1461509
Log:
OGNL-234 Removes methods marked as @Deprecated
Modified:
commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java?rev=1461509&r1=1461508&r2=1461509&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java (original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java Wed Mar 27 11:01:39 2013
@@ -171,15 +171,6 @@ public class OgnlRuntime
cache.clear();
}
- /**
- * @deprecated This always returns true now since OGNL requires Java 1.5.
- * @return Always returns true.
- */
- public static boolean isJdk15()
- {
- return true;
- }
-
public static String getNumericValueGetter( Class<?> type )
{
return numericValues.get( type );
@@ -205,14 +196,6 @@ public class OgnlRuntime
OgnlRuntime.compiler = compiler;
}
- /**
- * @deprecated use getCompiler(OgnlContext) instead
- */
- public static OgnlExpressionCompiler getCompiler()
- {
- return getCompiler( null );
- }
-
public static OgnlExpressionCompiler getCompiler( OgnlContext ognlContext )
{
if ( compiler == null )
@@ -661,54 +644,6 @@ public class OgnlRuntime
return false;
}
- /**
- * @deprecated This method is no longer used.
- * @param modifiers
- * @return
- */
- public static String getModifierString( int modifiers )
- {
- String modifierString;
-
- if ( Modifier.isPublic( modifiers ) )
- {
- modifierString = "public";
- }
- else if ( Modifier.isProtected( modifiers ) )
- {
- modifierString = "protected";
- }
- else if ( Modifier.isPrivate( modifiers ) )
- {
- modifierString = "private";
- }
- else
- {
- modifierString = "";
- }
- if ( Modifier.isStatic( modifiers ) )
- {
- modifierString = "static " + modifierString;
- }
- if ( Modifier.isFinal( modifiers ) )
- {
- modifierString = "final " + modifierString;
- }
- if ( Modifier.isNative( modifiers ) )
- {
- modifierString = "native " + modifierString;
- }
- if ( Modifier.isSynchronized( modifiers ) )
- {
- modifierString = "synchronized " + modifierString;
- }
- if ( Modifier.isTransient( modifiers ) )
- {
- modifierString = "transient " + modifierString;
- }
- return modifierString;
- }
-
public static Class<?> classForName( OgnlContext context, String className )
throws ClassNotFoundException
{